In the world of automation, TRUE or FALSE conditions indicates to a device state being ON or OFF, CLOSED or OPEN, PRESENT or ABSENT, 24 VOLTS or 0 VOLTS. In the PLC, it all reduces or simplify the input to our familiar fundamental element called the binary system, of a 1 or a 0. Usually having a bit ON represents a TRUE condition as OFF is FALSE. Although this is illogical as it may make more point to apply what is called failsafe logic and have an ON bit as a FALSE condition.
Let us set sights again to several simple statements but this time using automation examples.
• When the button is pressed AND the door is closed, then the motor turns on.
• If the process is done OR the Emergency Stop button signal is NOT on, then the motor turns off. (An
example of a failsafe operation as the Emergency Stop button could be pressed or the wire has been disconnected.)
• If the tank is full OR the button is pressed AND there are no alarms, then start the process.
It would be easier to program like this but computers more structured and complicated when it comes to its commands. A series of graphical objects have been used for years to represent the logic elements converted to a common ladder logic equivalent easily. These functions are called gates as they operate like gatekeepers for different logic.
The NOT Function
The AND Function
The OR Function
The figure below shows the typical logic gates along with their variations.
- Parallel contacts are logically equivalent to an OR gate.
- Series contacts are logically equivalent to an AND gate.
- Normally closed (N.C.) contacts are logically equivalent to a NOT gate.
- A relay must be used to invert the output of a logic gate function, while simple normally-closed switch contacts are sufficient to represent inverted gate inputs.
So now, I'm gonna show you one of the basic operational sequences I've kept on my notes.
Problem: A+ B+ A- B-
First, based on the sequence, identify your inputs and outputs and assign each variable to its designated address. Be careful in tagging and remember that not all binary digits can work according to your preference because some address has its own standard operation.
This is just one of the basic sequence and operation and I hope this could help especially to beginners and who are interested to enter the world of industrial processes and control. Stay tuned for more learnings!