1660253252323 Binarycodegray

How to convert Gray Code to a decimal for position feedback

April 13, 2021
Change system configurations to ease the process

A Control Design reader writes: What automated hardware or software is available for converting Gray Code from older encoders into a decimal for position feedback? What types of affordable options are there for replacing those encoders with something more modern?

Replace vs. keep

The challenge when upgrading machines is always, “What can I replace vs. what can I keep?” When converting a machine to new components, the answer depends on your overall requirements. Are you willing to make changes to your system configuration, or are you planning on keeping things as exact as possible? In either case, we offer functions and tools to make this process easier. 

Our PLCs are capable of receiving binary data (Gray Code) as a digital input. In this case, the number of bits determines the number of inputs required. For example, a 4-bit encoder requires four digital inputs. The PLC has a specific function that will then interpret and process this data for whatever purpose. In a case where an encoder needs to be directly connected to the servo amplifier, we would ask to upgrade the encoder to a compatible protocol such as Mitsubishi Serial, Biss-C, EnDat 2.2, or A/B phase differential line driver.

DAN ZACHACKI / senior product marketing engineer / Mitsubishi Electric

About the Author

Anna Townshend | Managing Editor

Anna Townshend has been a writer and journalist for 20 years. Previously, she was the editor of Marina Dock Age and International Dredging Review, until she joined Endeavor Business Media in June 2020. She is the managing editor of Control Design and Plant Services.

Sponsored Recommendations

2025 State of Technology Report: HMIs, IPCs and Enclosures

Industrial manufacturing equipment often relies on human-machine interfaces, industrial PCs and enclosures to ensure system reliability and optimal performance. These components...

Custom Encoder Created for Large Rotational Applications

Large rotational applications like MRI machines, excavators, mobile equipment, forklifts and stagecraft require precise motion feedback for optimal performance, safety and efficiency...

See How One Company Customized Motion Feedback for Material Handling Applications

Encoders can be used in material handling on sorters, conveyors, in automated storage retrieval systems, on mobile equipment, automated mobile robots and more. See how one company...

Absolute vs Incremental Encoders: Which One Does Your System Need?

The right encoder makes all the difference. Incremental encoders are perfect for tracking speed and direction in dynamic motion. Absolute encoders? They remember exact positioning...