Stop Conveyor When a Box Is Present at the Input
Learn how to add a monitoring thread that pauses the conveyor when the input sensor detects a box
Context
This article explains how to prevent boxes from pushing against each other at the infeed by automatically stopping the conveyor when the input sensor detects a box.
Stopping the conveyor also helps reduce energy consumption when it is not needed.
Information
1. Prepare the conveyor state
-
In the BeforeStart section, set the conveyor to Off at initialization.
2. Add a monitoring thread
-
Create a new Thread in the program tree.
-
Inside the thread, add an If statement that checks the input sensor.
3. Define conveyor behavior
-
If the input sensor detects no box, set:
-
Set conveyor = On
-
-
If the input sensor detects a box, set:
-
Set conveyor = Off
-
-
4. Synchronize with the main program
-
At the end of the thread, insert the command
sync()
. -
This keeps the monitoring thread aligned with the main program execution.
Conclusion
By adding this monitoring thread, the conveyor runs only when needed and automatically pauses when a box is detected at the input.
This setup avoids collisions between boxes and helps save energy during palletizing.
Updated: August 2025