PLC Five-Box Batch Counter | Edge Detection & Conveyor Stop
A PLC can count one rising edge per box and request a conveyor stop when the fifth box is detected.
The key idea
A box may cover the sensor during many PLC scans. Remembering the prior sensor state turns that sustained signal into a single event, while conveyor travel after the stop request affects the final position.
What to remember
- Count the transition into detection once per box.
- Reset the batch counter at a defined point before starting another batch.
Check your understanding
Why would counting every scan while the sensor is high overcount boxes?
Show the explanation
One box can hold the sensor high for multiple scans.