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 Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted November 8, 2017 MVP 2022 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.