Stop Conveyor When a Box Is Present at the Input

This article explains how to modify your palletizing program to stop the input conveyor when a box is detected by the input sensor.

Stopping the conveyor can be useful to:

  • Prevent other boxes from pushing against the one being picked.
  • Save energy by stopping the conveyor when it's not needed.

Implementation

To achieve this, you can add a thread in your palletizing program to continuously monitor the input sensor.

  1. When a box is detected, the thread stops the conveyor.

  • At the end of the thread, the script command sync() is executed to synchronize the thread execution with the main program.