Identify The PLC Programming Languages: Function Block Diagram
Identify The PLC Programming Languages: Function Block Diagram
Sequential
Function chart
Ladder Diagram
Fig 1: Ladder
diagram
scanning
Relay Symbol
:Basic symbols in Ladder Diagram
Advantages of Ladder Diagram Programming
• It is a graphical language.
• It is one of the most widely used programming
languages for PLC.
• Easier to read (same like electrical diagram)
• Debugging is easy.
• It provides real time data and feedback.
• It provides “Live” or “Real Time” data.
• It contains/supports powerful instructions like
timer, counter, shift, mathematics and logic
etc.
Examine if closed (XIC) instruction
It is similar to Normally Open contact.
It checks whether the contact is closed.
Examine if Open (XIO)
Fig 2: Hardwired logic circuit and its PLC ladder language implementation
Logic Functions
A
Logic Symbol AND Y
B
INPUTS OUTPUT
A B Y
0 0 0
Truth Table 0 1 0
1 0 0
1 1 1
AND Gate Truth Table
AND Symbol
Boolean Expression Y = A • B = AB
Fig :PLC ladder diagram for AND gate
OR gate
It is a circuit that performs logical OR operation on inputs
A
Logic Symbol OR Y
B
INPUTS OUTPUT
A B Y
0 0 0
0 1 1
Truth Table
1 0 1
1 1 1
OR Gate Truth Table
OR Symbol
INPUT OUTPUT
Truth Table A Y
0 1
1 0
NOT Gate Truth Table
_
Bar A
A
http://www.bbc.co.uk/schools/gcsebitesize/design/electronics/logicrev3.shtml
NAND gate
NAND gate performs inverse action of AND gate.
Output of NAND gate will be High even if one input is High.
Output Y is Low if ALL inputs are High.
Description
A bubble is an inverter
A
NAND Y
B
Logic Symbol
INPUTS OUTPUT
A B Y
0 0 1
Truth Table 0 1 1
1 0 1
1 1 0
NAND Gate Truth Table
Boolean Expression Y = AB
Ladder Diagram for NAND Gate
Ex- OR gate
It is a circuit that performs logical Exclusive OR operation on inputs
Logic Symbol
INPUTS OUTPUT
A B Y
0 0 0
Truth Table 0 1 1
1 0 1
1 1 0
OR Gate Truth Table
Ex OR Symbol
Boolean Expression
Q = (A ⊕ B) = A. + B
B
A
C
Develop a
ladder logic
for this logic
circuit
:Draw the ladder rungs to represent
.Two switches are normally open and both have to be closed for a motor to operate )a(
(b) Either of two, normally open, switches have to be closed for a coil to be energized and
operate an actuator.
(c) A motor is switched on by pressing a spring-return push button start switch, and the motor
https://www.sanfoundry.com/plc-program-control-level-single-tank/
Status
Limit Switch Door Fully Open Door Fully Closed
LS1
Devices:
Normally closed stop push button (I:1/02).
Normally open push button to open the shutter (I:1/00).
Normally open push button to close the shutter (I:1/01).
Limit switch to stop opening (I:1/03).
Limit switch to stop closing (I:1/04).
Motor, opening direction (O:2/00).
Motor, closing direction (O:2/01).