Discuss different PLC program examples for Signal lamp task, Valve operation program and make an output switch off when any…