This is an introduction to PLC logic. You can use PLC logic to build PLC programs with simple electrical circuit diagrams. In this article, I will use combinatorial logic to build the functionality of a PLC program.
And to get as close as possible to real a PLC programming language like ladder logic, the PLC logic in this article will be contacts and relays in an electrical circuit.