Exclusive OR Logic Implementation using PLC

S1 is mapped to I1 and S2 is mapped to I2

Conditions:

1. 2. 3. 4.
Truth table
S1 (switch1) S2 (switch2) Light (ouput)
0 (open) 0 (open) 0 (de-energized)
1 (close) 0 (open) 1 (energized)
0 (open) 1 (close) 1 (energized)
1 (close) 1 (close) 0 (de-energized)