PLC ladder logic program for the given conditions with two Push Buttons (PB), one Selector Switch (SS) , one Lamp(LP).
Condition 1: If the Selector Switch is 'OFF' , the Lamp will only turn 'ON' if both Push Button (PB) is pressed.
Condition 2 : If the Selector Switch is 'ON', the Lamp will only turn 'ON' if one or more Push Button (PB) is pressed.