Skip to content
Adaptive AgroTech NetworkUniversity of Southern Denmark · SDU Drone Center
Cover for PLC Five-Box Batch Counter | Edge Detection & Conveyor Stop

Video by Adaptive AgroTech. If the embedded player is unavailable, open the original video ↗.

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.

Understand the concept

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.
Pause & think

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.