Write the ledder logic (RS Logix 5000) for the following garage door function.
• The garage door is opened or closed using push-button switches X1, or remote control X2 and X3. • Depressing X1, X2, or X3 will open the garage door if it is closed, or close it if it is open.
• To open the garage door, the opener motor should turn counter-clockwise (i.e., output Y1 is activated). • To close the garage door, the motor should turn clockwise (i.e., output Y2 is activated). • Energizing outputs Y1 and Y2 simultaneously will stall the opener motor and therefore they should NOT be simultaneously activated.
• There are two limit switches that indicate fully open (X4) or fully closed (X5) status of the door. • The two limit switches (X4 and X5) are also used to stop the motor while closing or opening. • Excess load on the motor (while running) is detected by input X6. The garage door reverses its direction upon detecting an overload (X6).
• The garage light (output Y3) will go ON and stay ON when the garage door is being opened or closed. The garage light Y3 will remain ON until 10 seconds after the completion of the garage door-opening or the door- closing process. A photo-sensor (X7) is used to detect obstacles during garage door closing (only). During the garage door- closing, if an object passes the door to trigger the photo- sensor X7, it will reverse the closing of the garage door and also sounds an alarm (output Y4).