ENCODERS IN INDUSTRIAL AUTOMATION
A Deep Dive into Encoders for Industrial Automation
Core Types of Encoders
Incremental Encoders: These provide a series of pulses that indicate relative movement. They typically have three main output lines: A phase, B phase (for direction), and Z phase (index pulse for reference).
Absolute Encoders: These provide a unique position value for every point in a rotation, meaning they retain the exact position even after a power loss without needing a homing sequence.
Rotary vs. Linear: Rotary encoders measure shaft rotation, while linear encoders measure movement along a straight path.

Integration with PLC Systems:
To effectively use an encoder with a PLC, several technical steps are required:
Wiring: The encoder’s signal lines (A, B, Z) must be connected to the PLC’s high-speed input terminals. High-speed inputs are necessary to capture rapid pulse streams that standard inputs might miss.
High-Speed Counters (HSC): PLCs use specialized software “counters” to process these fast signals. For example, in Siemens S7-300 systems, functions like SFB47 are used to manage encoder data.

Direction Logic: The PLC interprets the phase relationship between the A and B signals (quadrature) to determine if the shaft is moving clockwise or counter-clockwise.
In the world of industrial automation, a Programmable Logic Controller (PLC) is the brain, making thousands of decisions per second. But even the smartest brain is useless without accurate “senses.”

Whether it’s a high-speed packaging line or a precision CNC machine, encoders provide the critical feedback a PLC needs to understand position, speed, and direction. If you want to eliminate “drift” in your production and hit 99.9% accuracy, mastering the PLC-Encoder loop is non-negotiable.

                                                           

1. Why the PLC Needs an Encoder
A PLC can tell a motor to “spin,” but it can’t inherently know if the motor actually moved—or by how much. This is called Open-Loop control. By adding an encoder, you create a Closed-Loop system.

The Benefits include:

Position Verification: Ensuring a robotic arm stopped at the exact millimeter.

Speed Synchronization: Keeping two separate conveyor belts moving at the exact same rate to prevent pile-ups.

Stall Detection: The PLC can instantly shut down a system if it detects a motor is powered but the encoder shows zero movement, preventing mechanical damage.

2. Choosing the Right Tool: Incremental vs. Absolute

Feature Incremental Encoder Absolute Encoder
How it works Generates pulses as it moves. Provides a unique digital “code” for every position.
Power Loss Loses position; requires “homing” on restart. Retains position; no homing required.
PLC Wiring Simple (High-Speed Counter inputs). Complex (Requires SSI, Profinet, or EtherCAT).
Cost Budget-friendly. Premium.

Use Incremental for simple speed control. Use Absolute for safety-critical applications or heavy machinery where “homing” every morning is a waste of time.

3. The Technical Bridge: High-Speed Counters (HSC)
Standard PLC inputs are often too slow to read encoder pulses. If your encoder spins at 3000 RPM and outputs 1024 pulses per revolution, a standard input will miss 90% of the data.

To fix this, automation engineers use High-Speed Counter (HSC) modules. These are specialized hardware built into the PLC that “catch” pulses independently of the PLC’s scan cycle.

Key Takeaway: If your encoder pulses are skipping or your measurements are inconsistent, check if your PLC input frequency rating matches your encoder’s output.

4. Common Troubleshooting “Gotchas”
Even the best hardware can fail. Here’s what to look for when your PLC-Encoder loop goes haywire:

Electrical Noise (EMI): Encoders send tiny electrical signals. If they run next to a high-voltage motor cable, the PLC will see “ghost pulses.” Solution: Always use shielded twisted-pair cables.

Mechanical Misalignment: A slight wobble in the shaft coupling can lead to “jitter” in the data.

The “Z-Pulse” Issue: If your homing sequence isn’t working, check your Index (Z) pulse wiring. This is the single pulse per revolution the PLC uses to find “Zero.”

Conclusion:

Building for the Future as we move toward Industry 4.0, encoders are becoming smarter. We are seeing a shift from simple wiring to smart communication protocols like IO-Link and Profinet, which allow the PLC to monitor encoder “health” and predict failures before they happen.

 

📞 Contact us for a quote: +91 95853 24571

📧 Email: sales@quasarmechatronics.com

🌐 Visit: www.quasarmechatronics.com

💼 www.linkedin.com/in/quasar-mechatronics