EEIB413 Chapter 2
EEIB413 Chapter 2
EEIB413 Chapter 2
Discrete-State Process
Control
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
Definition of Discrete
State Process Control
If there are three input variables and three output variables, then the
possible states are 64 because each variable can take on two values.
An event in the system is defined by a particular state of the system
as long as the input variables remain in the same state and the
output variables are left in the assigned sate.
3
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
Continuous Control
Discrete-State 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.
Composite Discrete/Continuous
Control
10
Process Specifications
Process objectives:
Statement of what the process is supposed to accomplish.
Global objective is the end result of the plant. It broken in to many
secondary objectives.
Each sub objective may be independently in the whole operation.
A discrete-state control system then be applied to each independent
part.
11
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.
12
Input devices:
Output devices:
Hopper valve solenoid.
Feed stock conveyor motor
right.
Feed stock conveyor motor left.
Right box conveyor motor.
Left box conveyor motor.
16
18
Flowchart Symbol
Start/End
Process Operation
Input/Output
Decision
20
Initialization Phase
21
Running Phase
22
24
Input
Output
LA
LB
LE
TU
Description
VA
VB
VC
TM
25
Boolean Equations
It uses Boolean algebra techniques to
represent the process flow.
It is necessary to write a Boolean equation
for each output variable in the system.
This equation will then determine when
that variable is taken to its true state.
The equation may depend not only on the
set of input variables, but on some of the
output variables.
26
27
29
30
Internal Relays
PB1
PB2
34
Narrative Description
1.When the START button is pushed, the
platform is driven to the down position.
2.When the STOP button is pushed, the
platform is halted at whatever position it
occupies at that time.
3.When the UP button is pushed, the
platform, if it is not in downward motion,
is driven to the up position.
4.When the DOWN button is pushed, the
platform, if it is not in upward motion, is
driven to the down position.
36
37
38
39
40
41
42
43
44
45
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
46
SCRs and TRlACs.
FP0 PLC
47
48
49
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.
It can only perform one operation at a time. That is,
like most computers, it is a serial machine. Thus, it
must sequentially sample each of the inputs, evaluate
the ladder diagram program, provide each output,
and then repeat the whole process.
The heart of a PLC is a microprocessor such as AMD
2901 and 2903, because much of the data in PLC
operation is processed bit by bit. With the great
increases in processor speed, it is now possible to
employ a desktop personal computer with data I/O
boards running PLC software to emulate PLC
operation.
50
Memory
Read Only Memory (ROM)
Stalled the operating system which handle the conversion of
ladder diagram to the computer language, control the data
flows and the operation of the entire PLC.
It is nonvolatile memory.
User Memory
It is the array for the I/O relays, internal relays, special relays,
counter, timer.
Each I/O, timer and counter has it own corresponding bit in
the memory.
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 53
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.
The higher the clock frequency, the greater the
speed, and the faster the scan/execution time.
The length of time for one scan consists of
three parts i) input time, ii) execution time,
and iii) output time. Most of the scan time
comes from the execution phase.
54
Computer
It can be used for offline programming and storage of
programs.
Document the PLC program.
Notes for technician, I/O devices.
The document is for understanding and troubleshooting ladder
diagrams.
55
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.
56
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
57
Programmed Diagram
Interpretation
There is an important difference between the interpretation
of a physical ladder diagram and a programmed ladder
diagram. This difference arises from the fact that the
programmed diagram bases the state of a rung on a logical
interpretation of the symbol rather than its physical state.
In a physical diagram, the symbol for a NO contact
indicates a normally open contact through which current
cannot flow unless the contact has been closed. For the NC
contact, the idea is that current will flow until the contact
has been opened.
In a programmed diagram, the symbol for a NO contact
indicates that the device should be interpreted as FALSE if
the contact is tested and found to be open, and TRUE if it is
found to be closed. Consider the programmed NC symbol.
This means if it is tested and found to be closed, then it is
FALSE, and if tested and found open, it is ON.
A software Control Relay is denoted by a circle with an
identification number. It can have any number of NO or NC
contacts, which are identified by the same number as the
relay.
58
FPWin Pro/Trilogi/LogixPro
59
Input Modules
Optical Isolation
PLC must be protected from the outside world
but be able to receive input data from the input
module.
Optical isolation means no electrical connection
exists between the input module and the CPU;
they are separated optically.
The input module supplies a signal that turns on
a light in the input card, the light shines on a
receiver and the receiver turns on.
It use for both input and output modules.
LED is used to transmit the data.
Input module also provide circuits that debounce
the input signal.
61
62
Output Modules
64
65
66
67
68
69
70
71
72
73
74
75
NO
Symbol
of the
External
Input
Devices
Type of
Internal
Relay
Contact
Symbol
of the
Internal
Relay
Contact
The
Status of
the
Internal
Relay
Contact
Before
the
External
Input
Devices
be
Pushed
The
Status of
the
Internal
Relay
Contact
After the
External
Input
Devices
be
Pushed
NO
NC
NC
NO
NC
76
OFF
ON
77
ON
OFF
78
ON
OFF
79
OFF
ON
80
PLC
PB1
PB2
+
-
24 Vdc
Input 1
Output 1
Input 2
Output 2
Input 3
Output 3
Input 4
Output 4
Com
Green
Red
24 Vdc
+
-
Com
82
83
Output Devices
X0
Y0
X1
Y1
Up Button (NO)
X2
X3
X5
X6
Initialization Phase
85
Up Motion
Down Motion
86
Combined Together
87
Simplify Design
88
Error
During the initialization phase, up motion still can be
executed when X2 (up motion button) is pushed. A NO R1
contact can be located between R2 and X2 contact in rung 4
to overcome the error.
Emergency stop cant be executed during the initialization
phase. A NC R2 contact can be located on the 1st rung to
overcome the error.
During the up motion, X4 (down limit switch) will return to
NC condition after the stop away from it. This cause R1
energized. NC R1 contact will has connection. If the user
push X0; this will cause down motion immediately after end
of the up motion. If the user push X3; this will cause the up
motion stop immediately. A parallel NO R1 contact and a
series NC R5 contact can be located in rung 3 to overcome
this error.
89
I.
II.
91
Input Devices
Output Devices
X0
Motor
Y0
X1
Valve
Y1
BP Sensor (NO)
X2
Level Controller
Y2
BF Sensor (NO)
X3
92
94
Timer
96
97
98
99
Counter
101
102
103
104
105
106
107
108
109
Prepare the physical and programmed ladder diagram for the control
problem shown in Figure 24. The global objective is to heat a liquid to a
specified temperature and keep it there for 30 min.
The hardware has the following characteristics:
i)
START push button is NO. STOP is NC.
ii)
NO and NC are available for the limit switches.
The event sequence is
i)
Fill the tank.
ii)
Heat and stir the liquid for 30 min.
iii)
Empty the tank.
iv)
Repeat from step i)
110
111
112
113
114
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.
115
116
117
118
119
121
123