In the hardwired circuit shown in Figure 1, the pilot light PL will turn ON if the limit switch LS1 closes and if either push button PB1 or limit switch LS2 closes. In the PLC circuit, the same series of events will cause the pilot light—connected to an output module—to turn ON.
Note that in the PLC circuit in Figure 2, the internal representation of contacts provides the equivalent power logic as a hardwired circuit when the referenced input field device closes or is pushed. Sketch hardwired and PLC implementation diagrams for the circuit in Figure 1 illustrating the configurations of inputs that will turn PL ON.