This project uses interlock function to achieve the automatic operation of the door.
2. I/O list
|X1||Photoelectric tube in the door channel|
|X2||In the open position|
|X3||In the close position|
|T2||Close delay(to check if there is no one in the door channel)|
When the door is open, X2 is ON, so Y0 is OFF. The door stays open until X0 and X1 are OFF. The delay of T2 is used to detect whether someone is following the first person. If no one follows the first person, Y1 is ON, when the door is closed, X3 is ON.
Date: Feb 2017