Professional Documents
Culture Documents
PLC
It is an electronic device used for automation
of industrial processes where output results
must be produced in response to input
conditions within the the bounded time,
otherwise miscontrol will result.
Thus a PLC is used to control, time and
regulate the sequence of operations.
Program Output
Memory Process
devices
Actuators
(motors)
the instructions for the
logical control sequence
are stored.
PC drivers for industrial process
actuators, such as solenoid
switches, motors and valves
through which the logical sequence
that the PLC will execute is built and edited.
V1
PLC L1
Tank
1
L3
Tank
2
ON
OFF L4
V3
Reservoir
R1 P Reservoir
R2
Programming
PLC programming is based on the use of Ladder
Diagrams. Using these, writing a program is
equivalent to drawing a switching circuit.
The basic components in a ladder logic program
are:
Input Input
Normally open contact Normally closed contact Output device
Inputs in series
Logic AND Inputs in parallel Special Instruction
Logic OR
Y 430
X400
• Each rung must start with an
input or a series of inputs
and end with an output. X401 X402
Y 431
X406
End
A normally open start switch. When the
switch is closed, the coil is energized
Inputs Output
C
A B
0 0 0
0 1 0
1 0 0
1 1 1
The coil is not energized until either one
of 2 normally open switches is closed C
which thus gives an OR logic situation. A
C=A+B
B
Inputs Output
C A
A B
0 0 0
0 1 1 B
1 0 1
1 1 1
For the coil to be energized we require A
to be closed and either B or C to be
closed
A.(B+C) A B D
Inputs Output
A B C
C
0 0 0 0
0 0 1 0 B
A
0 1 0 0
0 1 1 0
1 0 0 0 C
1 0 1 1
1 1 0 1
1 1 1 1
A B C
NOR
C=
A C
B NAND
A C
B
A B
EOR
Entering the program
Solution:
D = A B + C
A B
D
C
•Develop a program that will cause output D to be on
when push button A is on, or either B or C are on.
Solution:
D = A + B C
A
D
B C
B C
•Develop a Ladder Logic for a car door/seat belt safety system.
When the car door is open, and the seatbelt is not done up, the ignition power
must not be applied.
If all is safe then the key will start the engine.
Solution:
Solution:
F = BF BR where,
F = motor forward
R = BF BR R = motor reverse
BF = forward button
BR = reverse button
BF BR
F
BF BR
R
A robot is used to unload processed parts of a machine into
AGV, pick up a new part for processing from AGV and load it
onto the machine. The AGV is to be dispatched after
completion of the cycle. Construct a ladder logic diagram for
the task.
20
01 04 03
01 Start button
02 Stop button 02