Three position selector switches usually have one input and two outputs. The use of the terms input and output may be confusing but they should not be confused with inputs and outputs of PLC's. The term input refers to the power portion of the contacts that the switch contain while the outputs refer to the "feedback" or allowed power flow supplied by the contacts to indicate the selected position.
To use this switch, you need to connect a 24 volts power to the input and then wire the other ends to inputs of the PLC digital input module.
Previously, I wrote code for controlling the signal lamps and also running the motor in the clockwise direction. In this lesson, I’m going to write code for running the motor in the counter clockwise direction.
In addition to sensor number 2, I have sensors at the two ends of the conveyer belt. As I previously said, I want sensor number 1 to count the number of empty bottles and sensor number 3 to count the number of filled bottles.
After implementing the safety conditions, the PLC program is now complete and I can begin testing.
4 Comments