In the previous lesson you learned how the machine works and what the input and output components are. In this lesson, I'm going to start writing a PLC program that would be able to control the machine in the best possible way.
The PLC program that I'm going to write is going to address three main parts of the sequence as follows:
1. Running motor 1
2. Counting the small red boxes passing in front of sensor 1
3. Turning on the "full" signal lamp, shutting down motor 1 and running motor 2 all at the same time