Modern warehouses rely on fast conveyors, sorting gates, scanners, motors, and robots that must act at the right place and the right time. A rotary encoder attached to a roller or motor shaft converts rotation into electrical pulses that reveal position, speed, and direction. A programmable logic controller, or PLC, reads those signals and uses them to control the warehouse equipment.
This feedback loop helps packages move accurately through sorting, routing, and handling systems.
Understanding Logistics & Warehouse Systems: Rotary Encoders and PLCs
Many industrial encoders use two pulse channels called A and B. Their pulses are slightly offset in time. The order of the pulses tells the control system which way the shaft is turning.
This matters when a conveyor can reverse to clear a jam or position a tote again. Some encoders include a third signal called an index pulse.
It occurs once per full turn and gives the machine a repeatable reference point. Without a reference, a pulse count shows movement relative to a starting point but cannot confirm the true physical location after power is lost.
Pulse counts need careful conversion before they become useful distances. The roller circumference determines how far the belt should move in one turn. A larger roller moves more belt for every rotation.
A higher encoder resolution divides that movement into smaller pieces, which improves position detail. Real systems are less perfect than the calculation. Belts can stretch, rollers can wear, and a package can slip on the surface.
A conveyor may therefore use a photoelectric sensor at a known point to correct its estimated position. This is called homing or recalibration.
Students should notice the difference between measured shaft rotation and actual package motion. They are often close, but they are not always identical.
A PLC must respond quickly enough for the equipment speed. A normal PLC program repeatedly reads inputs, processes its instructions, then refreshes outputs. Very fast encoder pulses can arrive between ordinary input checks.
For this reason, many PLC systems use high speed counter modules. These modules count pulses independently, so fewer pulses are missed. The program can use the count to trigger a diverter gate at the right conveyor location.
It can slow a motor when a gap between cartons becomes too small. Timing matters because an output command takes a short time to reach a motor or pneumatic valve. Engineers allow for this delay by sending the command before the package reaches the physical action point.
Feedback makes warehouse motion more reliable, but it does not remove the need for safety checks. A controller can compare the expected encoder count with the count that actually arrives. If the motor is commanded to run but the count stays still, the belt may be jammed or a coupling may have failed.
If counts rise when the motor should be stopped, a load may be pushing the belt. The PLC can stop the system and report a fault. When learning this topic, trace one package through the process.
Start with the motor turning, follow the encoder pulses into the counter, then follow the PLC decision to a gate or drive. This chain connects electrical signals with visible movement.
Key Facts
- Encoder pulse count per revolution is called PPR, and angle per pulse = 360 degrees / PPR.
- If an encoder has PPR pulses per revolution and rotates at f revolutions per second, pulse frequency = PPR x f.
- Conveyor speed can be found from v = pi d N, where d is roller diameter and N is rotations per second.
- Distance traveled per encoder pulse = pi d / PPR for a roller directly driving the belt.
- A PLC scan cycle usually follows input read, logic solve, output update.
- Closed-loop control compares measured motion to desired motion, then adjusts outputs to reduce error.
Vocabulary
- Rotary encoder
- A sensor that converts shaft rotation into electrical signals that represent position, speed, or direction.
- PLC
- A programmable logic controller is an industrial computer that reads inputs, runs control logic, and switches outputs.
- PPR
- Pulses per revolution is the number of signal pulses an encoder produces during one full shaft rotation.
- Quadrature signal
- A pair of encoder signals offset in phase so a controller can determine both motion amount and direction.
- Actuator
- A device such as a motor, gate, solenoid, alarm, or robot joint that performs a physical action when controlled.
Common Mistakes to Avoid
- Using motor RPM as belt speed without checking roller diameter is wrong because linear conveyor speed depends on circumference, v = pi d N.
- Ignoring encoder resolution is wrong because low PPR creates larger distance steps and can make sorting gates trigger too early or too late.
- Wiring only one encoder channel when direction matters is wrong because a single pulse train gives speed and count but not reliable direction.
- Assuming the PLC output changes instantly is wrong because input filtering, scan time, communication delays, and actuator response all add timing delay.
Practice Questions
- 1 A conveyor roller has diameter 0.10 m and turns at 5 revolutions per second. What is the belt speed in m/s?
- 2 A rotary encoder has 1024 PPR and is mounted on a roller with diameter 0.08 m. How far does the belt move per pulse?
- 3 A package must be diverted by a sorting gate exactly 1.2 m after passing a sensor. Explain how encoder feedback and PLC logic can trigger the gate more accurately than using only a fixed time delay.