kapil Posted May 25, 2012 Report Share Posted May 25, 2012 Hello, i am new to unitronics and i want to read the absolute encoder having gray code, 9bit, 512steps/rev. single turn. of the make Pepperl + Fuchs. so can i do it oplc? i have V130-33-TR20 model. if possible pl. give example of program. Link to comment Share on other sites More sharing options...
MVP 2023 Joe Tauser Posted May 27, 2012 MVP 2023 Report Share Posted May 27, 2012 Unitronics does not have a native Gray code conversion block. I did some searching and found some examples of converting Gray code to binary- http://www.plcdev.com/using_ladder_logic_for_gray_code_conversion Once you've got the code in binary format you can use an MB->MI block to get the number. Joe T. Link to comment Share on other sites More sharing options...
kapil Posted May 28, 2012 Author Report Share Posted May 28, 2012 Dear sir, thanks for the useful link. I tried it at my level making the ladder relative to that but it does not work. so I attached my ladder to this i would be grateful to you if you guide me. I have mentioned the type and make of encoder in ladder. it is a 9bit encoder and there are 512 steps/ revolution. thanks. kapil Test Absolute encoder.vlp Link to comment Share on other sites More sharing options...
MVP 2014 Simon Posted May 29, 2012 MVP 2014 Report Share Posted May 29, 2012 Here's one I prepared earlier, for 13-bit code. Hopefully it is clear enough to understand how to use for 9-bit. Gray Code V280.vlp Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now