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

2024 State of Technology Report: PLCs and PACs

Programmable logic controllers (PLCs) and programmable automation controllers (PACs) are the brains of the machine in many regards. They have evolved over the years.This new State...

2024 State of Technology Report: Packaging Equipment

Special considerations and requirements make packaging equipment an interesting vertical market unto itself. This new State of Technology Report from the editors of ...

High Sensitivity Accelerometers to Monitor Traffic and Railroad Vibration for Semiconductor Manufacturing

This paper examines highly sensitive piezoelectric sensors for precise vibration measurement which is critical in semiconductor production to prevent quality and yield issues....

Simulation for Automation Guide

How digital twin solutions are expanding the capabilities of plant engineers.