Lecture Notes
Lecture Notes
System 1
Introduction to
Control System
6
Discrete State Control Systems
• This is a type of control system concerned
with controlling a sequence of events
rather than regulation or variation of
individual variables.
• Example: the manufacture of paint.
• This sequence is described in terms of
events that are timed to be started and
stopped on a specific schedule.
• These discrete state control systems are
often implemented using specialized
computer based equipment called
programmable logic controllers (PLCs).
7
Tank A Tank B Objective:
(Red 30%) 3 (White To produce pink color
70%) paint.
Stir
1 Valve A Valve B 2
3
Valve C
Heater
9
Introduction
• Many industry processes to be controlled in
sequence. The term discrete state expresses that
each event in the sequence can be described by
specifying the condition of all operating units of
the process. For example:
– Valve A is open
– Valve B is closed
– Conveyer C is on
– Limit switch S1 is closed
12
• The discrete-state input variables are
– Door open/closed
– Cooler temperature high/low
– Freezer temperature high/low
– Frost eliminator timer time-out/not time-out
– Power switch on/off
– Frost detector on/off
• The discrete-state output variables are
– Light on/off
– Compressor eliminator timer started/not
started
– Frost eliminator timer started/not started
– Frost eliminator heater and fan on/off
– Cooler baffle open/closed
13
• The event sequence are:
– a) If the door is opened, the light is turned on.
– b) If the cooler temperature is high and the frost
eliminator is off, the compressor is turned on and the
baffle is opened until the cooler temperature is low.
– c) If the freezer temperature is high and the frost
eliminator is off, the compressor is turned on until the
temperature is low.
– d) If the frost detector is on, the timer is started, the
compressor is turned off, and the frost eliminator
heater/fan are turned on until the timer times out.
• The events of (a) can occur in parallel with any of
the others.
• The event of (b) and (c) can occur in parallel.
• Event (d) can only be serial with (b) and (c).
14
Continuous Control
• Consider the revised problem shown in above; the variables, level and
valve settings, are discrete because they can take on only two values.
• The valves can only be open or closed, and the level is either above or
below the specified value.
• The objective is to fill the tank to a certain level with no outflow. The
event of sequence:
i) Close the output valve.
ii) Open the input valve and let the tank fill to the desired level,
as indicated by a simple switch.
iii) Close the input valve.
iv) Open the output valve.
16
Composite Discrete/Continuous
Control
17
• Process Hardware:
– Design the hardware such as conveyor
system, mixing tank, oven etc so that
these hardware can carry out the
designed process in-order to achieve
the objectives.
– Determination type of components such
as sensor, relay, motor etc be used in
the hardware design.
– The designer should be very familiar
with the components characteristic.
18
• Input devices: • How these two states devices
– Right box present. relate to the process?
– Left box present. • These devices give
– Feed conveyor right travel limit. information about the process
– Feed conveyor left travel limit. to the controller.
– Hopper low. • The state of the device can
– Feed conveyor center. determine the step of the
• Output devices: whole operation.
– Hopper valve solenoid. • The designer decided to use
– Feed stock conveyor motor the state of device either NO
right. or NC when design the
– Feed stock conveyor motor left. operation.
– Right box conveyor motor.
– Left box conveyor motor.
• Both NO or NC are valid, all
depend on the designer. 19
Event Sequence Description
• A process-control engineer may not have been
involved in the development of the system
hardware construction, but they must study the
hardware carefully and understand the
characteristic of each element. Then, describe how
this hardware will be manipulated to accomplish the
objective.
• A sequence of events must he described that will
direct the system through the operations to provide
the desired end result.
• Narrative Statements Specification of the sequence
of events starts with narrative descriptions of what
events must occur to achieve the objective.
• This specification describes in narrative form what
must happen during the process operation.
• In systems that run continuously, there are
typically a startup, or initialization phase and a
running phase. 20
• The start-up phase is used to place
the feed conveyor in a known
condition. This initialization might
be accomplished by the following
specification:
I. Initialization Phase
A. All motors off, feed valve
solenoid off.
B. Test for right limit switch
1. If engaged, go to C.
2. If not, set feed motor
for right motion.
3. Start feed-conveyor
motor.
4. Test for right limit
switch.
a. If engaged, go to C.
b. If not, go to 4.
C. Set feed motor for left
motion and start.
D. Test for center switch
1. If engaged, go to E.
2. If not, go to D.
E. Open hopper-feed valve.
F. Test for left limit switch:
1. If engaged, go to G.
2. If not. go to F.
G. All motors off, hopper-feed
valve closed.
21
H. Go to running phase.
22
• Completion of this phase means that the feed
conveyor is positioned at the left limit
position and the right half of the conveyor
has been filled from the feed hopper.
II. Running
A. Start right box conveyor.
B. Test right box present switch:
1. If set, go to C.
2. If not, go to B.
C. Start feed-conveyor motor, right
motion.
D. Test center switch:
1. If engaged, g to E.
2. If not, go to D.
E. Open hopper-feed valve.
F. Test right limit switch:
1. If engaged, go to G.
2. If not, go to F.
G. Close hopper-feed valve, stop feed
conveyor.
H. Start left box conveyor.
I. Test left box present switch:
1. If set, go to J.
2. If not, go to I.
J. Start feed conveyor, left motion.
K. Test center switch:
1. If engaged, go to L.
2. If not, go to K.
L. Open hopper-teed valve.
M. Test left limit switch:
1. If engaged, go to A. 23
2. If not, go to M.
24
Flowcharts of the Event
Sequence
• It is often easier to
visualize and
construct the
sequence of events if
a flowchart is used to
pictorially present the
flow of events.
• Part of the
initialization phase of
the conveyor system
is expressed in the
flowchart format.
25
Flowchart Symbol
Start/End Input/Output
27
Running Phase
28
Binary State Variable
Descriptions
• It used to describe the sequence of events
in terms of the sequence of discrete states
of the system.
• Each of the state, including both input and
output variables be specified.
• The input variables cause the state of the
system to change because operations
within the system cause a change of one of
the state variables.
• The output variables are change in the
system state that are caused by the control
system itself.
29
• Construct a state variable description of the process shown in
Figure bellow. The timer output (TU) is initially low when its input
(TM) is low. When TM is taken high the output stays low for five
minutes and then goes high. It resets to low when TM is taken low.
All level sensors become true when the level is reached. The
process sequence is:
1. Fill the tank to level A (LA) from valve A (VA)
2. Fill the tank to level B (LB) form valve B (VB)
3. Start the timer (TM), stir (S) and heater (H)
4. When five minute are up take stir (S) and heater (H) off
5. Open output valve (VC) until the tank is empty (LE)
6. Take the timer low (TM) and go to step 1.
30
Input Output Description
LA LB LE TU VA VB VC TM S H
31
Programmable Logic
Controller (PLC) 32
Relay Controllers and
Ladder Diagrams
• The hardware and the sequence of the event can be
combined and represent by a schematic
representation called as ladder diagram.
• It is an outgrowth of early controllers that operated
from ac lines and used relays as the primary switching
elements.
• The ladder diagram show how the hardware should be
driven so the proper sequence of events can be
accomplished.
• 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 an ac 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. 33
5-Pin Contact Relay
34
Symbol for Input Devices in Physical Ladder Diagram
35
Symbol for Output Devices in Physical Ladder Diagram
0 0 0 1
1 0 1 0
0 0 1 0
0 1 0 1
39
Programmable Logic
Controller Design
• The modern solution for the problem of how to provide
discrete-state control is to use a computer-based device
called a programmable controller (PC) or programmable
logic controller (PLC).
• The move from relay logic controllers to computer-based
controllers was an obvious one because:
i) The input and output variables of discrete-state control
systems are binary in nature, just as with a computer,
ii) Many of the ""control relays" of the ladder diagram can
be replaced by software, which means less hardware
failure.
iii) It is easy to make changes in a programmed sequence
of events when it is only a change in software.
iv) Special functions, such as time-delay actions and
counters, are easy to produce in software.
v) The semiconductor industry developed solid-state
devices that can control high-power ac/dc in response
to low-level commands from a computer, including 40
SCRs and TRlACs.
FP0 PLC
41
42
Basic Element of PLC
43
Processor
• It is used to execute a program to perform the
operations specified in a ladder diagram or a set of
Boolean equations. The processor performs arithmetic
and logic operations on input variable data and
determines the proper state of the output variables.
46
PLC Operation
• Operation of the programmable controller can be
considered in two modes, the I/O scan mode and the
execution mode.
• I/O Scan Mode
– During the I/O scan mode, the processor updates all
outputs and inputs the state of all inputs one channel at a
time.
– The time required for this depends on the speed of the
processor.
• Execution Mode
– During this mode, the processor evaluates each rung of the
ladder diagram program that is being executed
sequentially.
– As a rung is evaluated, the last known state of each switch
and relay contact in the rung is considered, and if any TRUE
path to the output device is detected, then that output is
indicated to be energized - that is, set to ON.
– At the end of the ladder diagram, the I/O mode is entered
again, and all output devices are provided with the ON or
OFF state determined from execution of the ladder diagram
program. All inputs are sampled, and the execution mode 47
starts again.
• Scan Time
– Is time required for one complete cycle of I/O
scan and execution. This depends on how
many input and output channels are involved
and on the length of the ladder diagram
program and also depends on the clock
frequency of the processor.
49
Programming
• Although the programmable controller can
be programmed directly in ladder diagram
symbols through the programming unit,
there are some special considerations.
• These considerations include the
availability of special functions and the
relation between external I/O devices and
their programmed representations.
• The programmable controller has no "real"
relays or relay contacts. The relay used in
the ladder diagram programming is just
the software symbols.
50
Addressing
• The programmable controller uses a similar
method of identifying devices, but if is referred to
as the device address or channel. The addresses
are used to identify both the physical and
software devices according to the following
categories:
i) Physical input devices - ON or OFF
ii) Physical output devices - energized (ON) or
de-energized (OFF)
iii) Programmed control relay coils and contacts
iv) Programmed time-delay relay coils and
contacts
v) Programmed counters and contacts
vi) Special functions
51
Type and Function of Relays
52
PLC Wiring
PB1 PLC
Green
Input 1 Output 1
PB2 Red
Input 2 Output 2
Input 3 Output 3
+ +
Output 4 24 Vdc
24 Vdc Input 4 -
-
Com Com
53
Sensor Wiring
54
External Relay wiring
55
Programmed Ladder Diagram
Input Devices Output Devices
PB1 (NO) – X0 L1 (Green) – Y0
PB2 (NC) – X1 L2 (Red) – Y1
56
The Operation of the Internal Relay Contact
with Different External Input Devices
Type of Symbol Type of Symbol The The
External of the Internal of the Status of Status of
Input External Relay Internal the the
Devices Input Contact Relay Internal Internal
Devices Contact Relay Relay
Contact Contact
Before After the
the External
External Input
Input Devices
Devices be
be Pushed
Pushed
NO NO
NC
NC NO
NC 57
The Operation of the Relay with Different Connection
OFF
ON
58
The Operation of the Relay with Different Connection
ON
OFF
59
The Operation of the Relay with Different Connection
ON
OFF
60
The Operation of the Relay with Different Connection
OFF
ON
61
FPWin Pro/Trilogi/LogixPro
62
63
64
65
66
67
68
69
Example of Discrete Control
BP BF M V
NO Start
1 0 0 1 0
NC Stop
2 1 0 0 1
3 1 1 1 0
Input Output
X0 Start Y0 M1
X1 Stop Y1 Valve
X2 BP
X3 BF 70
Sample Solution
Start Sto p Start Sto p
CR1 CR1
CR1 CR1
BP BP BF
CR1 CR2 CR1 CR2
BF
CR1 CR3 CR1 CR2 M
CR3
71
Sample of Solution
72
Timer
78
Solution 1: Physical Ladder Diagram
79
Solution 1: Programmed Ladder Diagram
Input Devices Output Devices
80
Problem 2
• When turn ON, the tank system alternately fills to level L and then
empties to level E. The level switch are activated on a rising level.
Both NO and NC connections are available for the level switches
and the ON/OFF push buttons. Prepare a physical ladder diagram
for this system.
81
Problem 2: Physical Ladder Diagram
82
Problem 2: Programmed Ladder Diagram
Step X0 X1 X2 X3 Y0 Y1
Input Devices Output Devices
0 0 0 0 0 0
Start Button (NO) X0 Vin Valve Y0
1 1 0 0 0 1 0
Stop Button (NO) X1 Vout Valve Y1
2 1 0 1 0 1 0
L Sensor (NO) X2
3 1 0 1 1 0 1
E Sensor (NO) X3
4 1 0 1 0 0 1
5 1 0 0 0 1 0
Repeat Step 1
X 1 X X 0 0
83
Problem 3
• Prepare a PLC ladder program for the
system of Problem 2 with the
following added requirements:
a) the system should cycle 3 times and
then quit.
b) during each cycle, there should be a
10 seconds delay after filling before
the empty phase starts. The PLC tick
time is 10 ms.
84
Problem 3: Programmed Ladder Diagram
Input Devices Output Devices Step X0 X1 X2 X3 Y0 Y1
L Sensor (NO) X2 2 1 0 1 0 1 0
E Sensor (NO) X3 3 1 0 1 1 0 0
4 1 0 1 1 0 1
5 1 0 1 0 0 1
6 1 0 0 0 1 0
X 1 X X 0 0
85
Pneumatic Cylinder
• Single Acting cylinder only extends by pressure from a pump and then retracts by
the weight of the load or by an inbuilt spring. A Double Acting cylinder uses
hydraulic power to both extend and retract.
• A single acting hydraulic cylinder is simpler, so there is less to maintain. With only
one line the action of the cylinder is determined entirely by the pressure on that
one line. They often have a spring or something similar to push or retract the
piston rod, but they might rely on the force on end to push it back. Simplicity is
always good for equipment that needs to be rugged and reliable.
• A double acting cylinder alternates cycles of pressurized fluid to both sides of the
piston and creates extend and retract forces to move the piston rod, permitting
more control over the movement. Using a control system made up of a 2-, 3-, 4-
way position valve would be required to achieve the desired movement for your 86
application.
Valves
• Valve are defined as devices to control or regulate the
commencement, termination and direction and also the
pressure or rate of flow of a fluid/gas under pressure which is
delivered by a compressor or vacuum pump or is stored in a
vessel.
• Values of one sort or another, perform three main function in
pneumatic installation
– They control the supply of air to power units, example cylinders
– They provide signal which govern the sequence of operation
– They act as interlock and safety devices
87
Types of Direction Control Valves
88
Control Valves Operation
Valve Operation
2(A)
Initial Stage
1(P) 3(R)
2(A)
Energized Stage
1(P) 3(R)
89
3/2-Way Pneumatic Solenoid Valves
• The 3/2-way pneumatic valve has three connection ports and two
states. The three ports are:
– inlet (P, 1),
– outlet (A, 2)
– exhaust (R, 3)
• The two states of the valve are open and closed. When the valve is
open, air flows from the inlet (P, 1) to the outlet (A, 2). When the
valve is closed, air flows from the outlet (A, 2) to the exhaust (R, 3).
• A valve that is closed in non-actuated state is normally closed (N.C.),
the opposite is called normally open (N.O.). 90
• Most valves are mono-stable and return to their default
position when not actuated, this is achieved with a spring
mechanism. Bi-stable 3/2-way valves retain their position
during power loss, and require a separate action to switch the
valve state. Therefore, they cannot be designated as Normally
Closed or Normally Open. Bi-stable pneumatic solenoid valves
typically have a coil at each position and are pulse operated.
Summarized, the different functions of the 3/2-way valve are:
– 3/2-way mono-stable NC
– 3/2-way mono-stable NO
– 3/2-way bi-stable
91
3/2-Way Pneumatic Solenoid Valves Application
92
3/2-Way Pneumatic Solenoid Valves Application
93
94
95
4/2-Way Pneumatic Solenoid Valves
• The 4/2-way pneumatic valve has four connection ports and two
states. The difference between the two valve types is the number of
exhaust ports:
– A 5/2-way pneumatic valve has two independent exhaust ports
– A 4/2-way valve has only one common exhaust port
• This means that both port (A,2) and (B,4) connect to exhaust port
(R,3). The additional exhaust port of the 5/2-way valve offers extra
control possibilities. For example, the speed in both directions of a
double acting pneumatic actuator can be adjusted by controlling the
flow rate through each exhaust port individually with throttle valves.
96
5/2-Way Pneumatic Solenoid Valves
• The 5/2-way pneumatic valve has five connection ports and two
states. It has one pressure port (P,1), two ports (A,2) and (B,4) that
connect to the device that needs to be controlled, and two exhaust
ports (EA,3) and (EB,5). The two states of the valve are:
• Pressure port (P,1) connects to port (A,2), while port
(B,4) vents through exhaust port (EB,5)
• Pressure port (P,1) connects to port (B,4), while port
(A,2) vents through port (EA,3).
97
5/2-Way Pneumatic Solenoid Valves Application