Robby Posted November 4, 2017 Report Share Posted November 4, 2017 Hello all, I have an 11 bit absolute rotary encoder that outputs in gray code. Here is datasheet on it: https://cdn.automationdirect.com/static/specs/encodermda.pdf This is needed for determining the position of the shaft on an engine. I am fairly new to Unitronics and Visilogic. I have a V700 with the V200-18-E3XB snap on. I have looked at other answers on this topic and have created a ladder diagram based on this format: http://www.plcdev.com/using_ladder_logic_for_gray_code_conversion However, I am still stuck when it comes to getting the binary to decimal and then being able to read the position output from the encoder on the HMI. I am a college student working on my senior capstone. Any and all help is appreciated. Thanks, Robby Link to comment Share on other sites More sharing options...
MVP 2023 Joe Tauser Posted November 8, 2017 MVP 2023 Report Share Posted November 8, 2017 If the binary value output from your conversion code is working you can use the Vector - > Bits to Numeric function. Post your code so we can have a look. Joe T. 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