Chapter 2 - Discrete-State Control Part II
Chapter 2 - Discrete-State Control Part II
Discrete-State Control
Part II
Content
Relay Controller and Ladder Diagram
Programmable Logic Controller (PLC)
Objectives
Know the function of symbols and construct
a ladder diagram.
Develop ladder diagram from narrative
event-sequence description.
Know the nature of PLCs and its use in
process control.
Develop program for PLC.
Prepared by Wong Chee Woon UEEA2413 Process Control and Instrumentation 2
Ladder Diagram
Ladder diagram/ logic is the main programming method
used for PLCs.
It is used to represent the hardware and the sequence of
the event.
An industrial control system typically involves electric
motors, solenoids, heaters or coolers, and other
equipment that is operated from the AC power line.
When a control system wants to turn on a motor, this is
done by a switch to energize a relay with contact ratings
that can handle the heavy load.
Relay is the primary control element of discrete-state
control systems.
Prepared by Wong Chee Woon UEEA2413 Process Control and Instrumentation 3
Ladder Diagram Elements
The ladder diagram is a symbolic and schematic way of
representing both the system hardware and the process
controller.
It is called a ladder diagram because the various curcuit
devices connected in parallel across the AC line form
something that looks like a ladder.
Special symbols are used to represent the variuos circuit
elements in a ladder diagram. For example:
(1) Relays
(2) Motors and Solenoids
(3) Lights
(4) Swithes
Prepared by Wong Chee Woon UEEA2413 Process Control and Instrumentation 4
Relays
A relay coil is represented by a
circle identified as CR (control
relay) and a identifying number.
The contacts can be normally
open (NO) or normally closed
(NC) identified by the same
number.
A NO contact is open when the
relay coil is not energized, and
closed when the relay is
energized. The NC contact is
closed when the relay coil is not
energized and opens when the
relay is energized. 5
Prepared by Wong Chee Woon UEEA2413 Process Control and Instrumentation
Time-delay Relay
Time-delay relay: the contacts
activate after a specified time
delay. It is designated TR (timer
relay).
An on-delay timer relay: when
the coil is energized, the
contacts are not energized until
the time delay has lapsed.
An off-delay timer relay: the
contacts engage when the coil
is energized. When the coil is
de-energized, there is a time
delay before the contacts de-
energize.
II. Running
A. Start the bottle conveyor
B. When a bottle is in position (BP true)
1. Stop the conveyor (M1 off)
2. Open the output valve
C. When the bottle is full (BF true)
1. Close the output valve
D. Go to step II.A and repeat
PLC Addressing
Function Address
Input channels 00 to 07
Output channels 08 to 15
Internal relays 16 to 31
Timers & counters 32 to 39
(a)
Prepared by Wong Chee Woon UEEA2413 Process Control and Instrumentation 41
Interpretation of Diagram
Figure (b) shows how to provide the answer in a
physical system with a control relay, CR1.
Now, CR1 is normally energized, so its NC
contacts are open and the light will be OFF.
When the button is pushed, CR1 is de-energized
and the red light comes ON
(b)
Prepared by Wong Chee Woon UEEA2413 Process Control and Instrumentation 42
Interpretation of Diagram
In the programmed system we do not need
either physical or programmed control relay to
do this.
We simply refer to the push button with
“examine OFF” symbol connected directly to the
light.
(c)
Prepared by Wong Chee Woon UEEA2413 Process Control and Instrumentation 43
Interpretation of Diagram
Therefore, it interprets logically as FALSE, and the
light is not energized by the program.
When pushed, it is tested to be closed, and
therefore there is a logic TRUE and the light is
energized.
(c)
Prepared by Wong Chee Woon UEEA2413 Process Control and Instrumentation 44
Connections to PLC for Motor Control
Suppose we want to implement a latch to turn on and off
a motor using two NO push-button switches.
Figure below shows how the switches and motor are
physically connected to the input and output channels of
a PLC.
Figure above shows a timing diagram of the PLC scan cycles and the pulses
coming in from detected objects. Remember that there must be a return to
zero (false) before the next object can be detected. This mean that even the
shortest time, which is the 1 cm between objects, must last one full scan to
assure a return to zero.
S = (1 cm) / (30 ms) = 33.3 cm/s
Prepared by Wong Chee Woon UEEA2413 Process Control and Instrumentation 51
Solution...
The object detector is connected to input
channel 01, and the conveyor motor to output
channel 08.
The counter is assigned address 32, and the
count is preset to 200.
When a count of 200 occurs, the counter will
become true, and the third rung will become
false, and motor will be off.
Hardware:
1 Start (NO), Stop (NC),
2 Limit switches have NO and NC.
Event:
1 Fill tank,
2 Heat and stir for 30 min.,
3 Empty tank,
4 Repeat.
Fill tank
Empty tank