I need to set up two short conveyors to serve as timing and separating mechanisms for 'dough pieces'. The separation of the dough pieces should be triggered by sensors (photoeyes). These sensors must be able to detect when separation isn't needed (when there's enough distance between the pieces). When separation is required, the first conveyor will stop to facilitate it. How can I program the sensors to signal the motor to halt the conveyor for the appropriate duration when necessary? I am really knew to flexsim, and I'm pretty unsure on how to proceed. Attached is a picture for reference. Thanks!