You are on page 1of 15

COURSE CATEGORY

DIGITAL ELECTRONIC-LOGIC GATE


Every aspect of our lives is increasingly becoming integrated and connected by the
Internet of Things (IoT), which consists of computers and embedded systems.
These devices are controlled by software which at its core is Boolean logic in
conjunction with digital information
Start Completion time: 30min
FACILITATOR: HOPE OFUKA
HTTPS://T.ME/AUTOMATACADEMY
INDUSTRIAL AUTOMATION

FACILITATOR
ENGR. HOPE OFUKA
INDUSTRIAL AUTOMATION

LOGIC GATES
Logic Gate is building block for Digital circuit. It takes binary
input (0, 1) and gives binary output based on the input provided.
you will be learned to write the programming in PLC using Logic
Gates.
PLC Program to Implement Various Logic Gates

Implementation of various Logic Gates AND, OR, NOT, NOR,


NAND, EX-OR and EX-NOR in PLC using Ladder Diagram
programming language.

HTTPS://T.ME/AUTOMATACADEMY
INDUSTRIAL AUTOMATION

TYPES OF LOGIC GATES USING PLC LADDER


Different types of ladder logic diagram that perform different logic
gate functions. Basically, there are seven types of logic gates as
below.

1. NOT GATE: NOT GATE is also called an Inverter or Buffer

Working: NOT gate works as inversion. It takes one input and gives one
output. When the input is high then the output is low and vice-versa. An
example of a NOT gate control system is a light that comes on when it
becomes dark, i.e., when there is no light input to the light sensor there is
an output.

HTTPS://T.ME/AUTOMATACADEMY
INDUSTRIAL AUTOMATION

TYPES OF LOGIC GATES USING PLC LADDER

2. AND GATE: in AND gate, when both inputs (i1 and i2) are
high then the output (q1) will be high. for all other inputs, output
(q1) will be the low

AND Gate in PLC programming:


Using Ladder diagram programming, we are connecting two switches
(I1 and I2) as input and coil/lamp (Q1) as output.
In the case of both switches (I1 and I2) are closed, the lamp (Q1) will
glow. In another case, if any of the switches (I1 or I2) are open then
lamp (Q1) will not glow.

HTTPS://T.ME/AUTOMATACADEMY
INDUSTRIAL AUTOMATION

TYPES OF LOGIC GATES USING PLC LADDER

3. OR GATE : If both inputs are low in the OR gate, then the output
will be low. For all other cases, the output will be high.

In the above circuit diagram, switch (A) is pressed then the coil
(Q1) will be energized. After releasing switch (A), the energizing
coil (Q1) is providing supply to switch (B). Then switch (B) will
become automatically activated.

HTTPS://T.ME/AUTOMATACADEMY
INDUSTRIAL AUTOMATION

TYPES OF LOGIC GATES USING PLC LADDER

4 NAND GATE is operated as an AND gate and followed by the


inverter. In NAND Gate, the output will be low when both
inputs are high. For all other cases, the output will be high.

If both switches ( A and B) or anyone switch (A or B) are


closed, the lamp will be glow. In the case, both switches are
open then the lamp will not be glow.

HTTPS://T.ME/AUTOMATACADEMY
INDUSTRIAL AUTOMATION

TYPES OF LOGIC GATES USING PLC LADDER

5. NOR GATE: is operated OR Gate followed by the NOT Gate.


When both inputs are low then the output will be high. Otherwise,
the low output will occur if both inputs are high.

The Coil (Q1) will be activated


if both inputs are closed. Coil
(Q1) will be deactivated if any
one or both the inputs are
open.

HTTPS://T.ME/AUTOMATACADEMY
INDUSTRIAL AUTOMATION

OTHER TYPE OF LOGIC GATES USING PLC LADDER


EX-OR GATE
Working: If both inputs are high or low, the output will become low. For any
other input condition, the output will be high.
EX-NOR GATE
Working: When both inputs (I1 and I2) are high or low then the output will
high. If anyone input is high or low then the output will become low.
EX_NOR
The function of EX-NOR Gate, the lamp (Q1) will be on if both switches (I1
and I2) are open or closed. The lamp (Q1) will not be on if anyone switches
(I1) is activated and another switch (I2) is deactivated.

HTTPS://T.ME/AUTOMATACADEMY
INDUSTRIAL AUTOMATION

PLC Program (Ladder logic)


LADDER LOGIC programming language is the leading popular
programming language in PLC programming. It is an extremely intuitive
graphical programming language, easy to learn, easy to program and fix
errors.
Ladder logic is made out of rungs making what looks like a
ladder..

HTTPS://T.ME/AUTOMATACADEMY
INDUSTRIAL AUTOMATION

PLC Program (Ladder logic)


REVIEW:

Ladder diagrams (sometimes called


“ladder logic”) are a type of
electrical notation and symbology
frequently used to illustrate how
electromechanical switches and
relays are interconnected.

The two vertical lines are called


“rails”

Horizontal lines in a ladder diagram


are called “rungs,” each one
representing a unique parallel
circuit branch between the poles of
the power supply.

HTTPS://T.ME/AUTOMATACADEMY
INDUSTRIAL AUTOMATION

PLC Program (Ladder logic)

HTTPS://T.ME/AUTOMATACADEMY
INDUSTRIAL AUTOMATION

PLC Program
Here is PLC program to implement various logic gates, along with
program explanation and run time test cases.

HTTPS://T.ME/AUTOMATACADEMY
INDUSTRIAL AUTOMATION

PLC Program
Here is PLC program to implement various logic gates, along with
program explanation and run time test cases.

HTTPS://T.ME/AUTOMATACADEMY
THANK YOU

Note: This training was brought to you by Automat Academy, the


training arm of the Automat solutions company. We empower
professionals to upskill and reach their potential for a rewarding,
impactful career. We do this by advancing professional standards,
offering guidance and training, developing new insights and sharing
best practice.

FACILITATOR: HOPE OFUKA

You might also like