Automatic door control system action is as follows: people close to the automatic door, the sensor 00000 is ON, 01000 drive motor high-speed door, hit the door switch 00001, into a low-speed open the door. When the door limit switch 00002 is reached, the motor stops and starts to delay. If the sensor is detected in 0.5s no one, 01001 start motor high speed closed. Hit the door when the slowdown switch 00003, to low speed closed, hit the door limit switch 00004 when the motor stops. In the closed period if the sensor detects someone, stop closing, T1 delay 0.5s automatically converted to high-speed open the door. Programming implementation (requirements: write I / O allocation table, flow chart).
hardware design
???? According to the previous study, and then according to the instructions in the figure, the students can draw their own input and output port allocation,
When the sensor is close to the automatic door, the sensor X0 is ON, Y0 drives the motor to open the door at high speed, and when it reaches the door open speed switch X1, it becomes the low speed open door. When the door closes the limit switch X2, the motor stops and starts to delay. If the sensor detects no one in 0.5s, the Y2 starter motor is closed at high speed. When you close the door closing switch X4, change it to low speed and close the motor when the door close switch X5 is closed. In the closed period if the sensor detects someone, stop closing, T1 delay 0.5s automatically converted to high-speed open the door.