This is a simple project to control a pneumatics actuator.
First all you need to do is list down all the physical (real world) inputs and outputs. As in this project, the physical inputs are the “START” button which is addressed at 0.00 and the reed switches which are addressed at 0.01 for backward reed switch and 0.02 for forward reed switch.
Physical outputs are the solenoid valve (SV) which controls the air flow into the pneumatics cylinder actuator and the alarm. As in the case, the SV used is of 3-2 way type which means that when the valve is in ON state, it will allow air to make the actuator goes forward, and when the valve is in OFF state, it will allow air to make the actuator goes backward. The SV is addressed at 100.00 and the alarm is at 100.01.
PROJECT FLOWCHART
The program will set the solenoid valve and forward error timer ON once start button and backward reed switch are ON. The pneumatics actuator will then move forward within 10 seconds until it reaches forward reed switch. If it does not reach forward reed switch in 10 seconds, alarm will ON.
When the actuator reaches forward reed switch, the backward error timer will ON, the forward error timer and solenoid valve will turn OFF so the actuator will automatically move backward. If the actuator does not reach backward reed switch in 10 seconds, alarm will be triggered. Once it reaches backward reed switch withing 10 seconds, 1 cycle has been completed and the program ends. Download FREE programming sample HERE!
Need to know more on how to let the program run for more than 1 cycle? How to use other instructions? The circuit hardwiring? Programming trick? Get the PLC Project Tutorials and Guides HERE!!.



