This is a very basic example about the inputs and outputs of a PLC. Useful as an introduction to I/O connections.
Use the programmable logic controller to make a control circuit using two normally open (NO) switches, to control the feed to a coil through the switches (SW1, SW2) as in the following circuit figure,
We connect the switches (SW1, SW2) to the inputs of the programmable logic controller (IN1, IN2) and the COIL connected to the output of the PLC, (Q1) as in this figure:
And controlling the feed of the COIL happens using the program (instruction list) inside the PLC, look at the following figure: