L04 Discrete-State Process Control
L04 Discrete-State Process Control
L04 Discrete-State Process Control
Figure 2
Solution
The discrete-state input variables are
1. Door open/closed
2. Cooler temperature high/low
3. Freezer temperature high/low
4. Frost eliminator timer time-out/not time-out
5. Power switch on/off
6. Frost detector on /off
The events of (a) can occur in parallel with any of the others. The events
of (b) and (c) can occur in parallel. Event (d) can only be serial with (b)
or (c).
Discrete-State Variables
• It is important to be able to distinguish between the nature of
variables in a discrete-state system and those in continuous
control systems.
• To define the difference carefully, we will consider an example
contrasting a continuous variable situation with a discrete-state
variable situation for the same application. Later it will be shown that
continuous variable regulation can be itself a part of a discrete-state
system.
Continuous Control
Figure 3 shows a tank with a valve that controls
flow of liquid into the tank and some unspecified
flow out of the tank.
A transducer is available to measure the level of
liquid in the tank.
Also shown is the block diagram of a control
system whose objective is to maintain
the level of liquid in the tank at some preset or
setpoint value.
Figure 3
Discrete-State Control
The variables, level and valve settings, are discrete
because they can take on only two values. This
means that 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. To do this, we specify an event sequence:
1. Close the output valve.
2. Open the input valve and let the tank fill to the
desired level, as indicated by a simple switch.
3. Close the input valve.
Figure 4.
Composite Discrete/Continuous Control
• It is possible for a continuous control system to be part of
a discrete-state process-control system.
• The outlet valve is to be closed and the tank filled to the
required level as in Figure 4.
• Periodically a bottle comes into position under the outlet
valve, as shown in Figure 5. The level must be maintained
at the setpoint while the outlet valve is opened and the
bottle filled. This requirement may be necessary to ensure
a constant pressure head during bottle filling.
• This process will require that a continuous-level control
system be used to adjust the input flow rate during bottle-
fill through the output valve. The continuous control
system will be turned on or off just as would a valve or
motor or other discrete device. Figure 5.
Process Specifications
• Specification of the sequence of events in some discrete-state
process is directly tied to the process itself.
• The process is specified in two parts.
• The first part consists of the objectives of the process.
• and the second is the nature of the hardware assembled to
achieve the objectives.
Process Objectives
The objectives of the process are simply statements of what the process is
supposed to accomplish.
The overall objective can be broken down into many secondary objectives. Figure 6
suggests some of the secondary objectives that might be involved.
Figure 6
Process Hardware
• Process hardware design is closely tied to the nature of the industry, and its design
must come from the joint efforts of process, production, and control personnel.
• For the control system specialist, the essential thing is to develop a good
understanding of the nature of the hardware and its characteristics.
FIGURE 7
FIGURE 7
Process Hardware two basic categories.
1. Input devices provide inputs to the control system. The operation of these devices is
similar to the measurement function of continuous control systems. In the case of discrete-
state process control, the inputs are two-state specifications, such as
• Limit switches: open or closed
• Comparators: high or low
• Push buttons: depressed or not depressed
2. Output devices accept output commands from the control system. The final control
element of continuous control systems does the same thing. In discrete state process
control, these output devices accept only two-state commands,such as
• Light: on or off
• Motor: rotating or not rotating
• Solenoid: engaged or not engaged
Example 2
Study the pictorial process of Figure 7. Identify the input and output devices and
the characteristics of each device.
FIGURE 7
Example 2 Solution
1. Input Devices (All Switches)
• Right box present
• Left box present
• Feed conveyor right travel limit
• Feed conveyor left travel limit
• Hopper low
• Feed conveyor center
2. Output Devices
• Hopper valve solenoid
• Feed stock conveyor motor right
• Feed stock conveyor motor left
• Right box conveyor motor
• Left box conveyor motor
Important note
• It is not enough simply to identify the input and output devices. In
addition, it is important to note how the two states of the devices
relate to the process
• if a level-limit switch is open, does that mean the level is low or at the
required value? If a command is to be used to turn on a cooler, does
this require a high- or low-output command?
Event Sequence Description
• A sequence of events must be 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.
• describes in narrative form what must happen during the process
operation.
Narrative Statements Example
• In systems that run continuously, there are typically a startup, or
initialization, and running phase
• As an example, consider the system described by Figure 7. The start-
up phase is used to place the feed conveyor in a known condition.
This initialization might be accomplished by the following
specification: a running phase.
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
Completion of this phase means that the feed
E. Open hopper-feed valve conveyor is positioned at the left limit position and
F. Test for left limit switch the right half of the conveyor has been filled from the
1. If engaged, go to G feed hopper.
2. If not, go to F The system is in a known configuration, as shown in
G. All motors off, hopper-feed valve closed Figure 8.
H. Go to running phase
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
H. Go to running phase
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, go 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 Note that the system cycles from step M to step A.
K. Test center switch The description is constructed by simple analysis of what
1. If engaged, go to L events must occur and what the input and outputs must
2. If not, go to K be to support these events.
L. Open hopper-feed valve
M. Test left limit switch
1. If engaged, go to II.A
2. If not, go to M
EXAMPLE 3
Construct a narrative statement outline of the event sequence for the system
shown in Figure 5. The objective is to fill bottles moving on a conveyor.
Figure 5.
Solution
I. Initialization (prefill of tank)
A. Conveyor stopped, output valve closed
B. Start the level-control system
1. Operate for a sufficient time to reach the setpoint, or
2. Add another sensor so that the system knows when the setpoint has
been reached
C. Go to the running phase
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
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.
• Although there are many sophisticated
types of flowcharts, the concept can be
presented easily by using the three
symbols shown in Figure 9.
Figure 9.
Figure 10 shows part of the initialization phase
of the conveyor system of Figure 7 expressed
in the flowchart format.
Figure 10 Figure 7
Binary-State Variable Descriptions
• Each event that makes up the sequence of events described by the narrative scheme
corresponds to a discrete state of the system.
• Thus, it is also possible to describe the sequence of events in terms of the sequence of
discrete states of the system.
• To do this simply requires that for each event the state, including both input and output
variables, be specified.
• The control system works like a look-up table. The input state variables with the output
become like a memory address, and the new output state variables are the contents of that
memory.
EXAMPLE 4
• Construct a state variable description of the process shown in Figure 11.
• 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:
Figure 11
Solution
• To provide the solution, we first form the state variable
representation of the system by assignment of binary states.
• There are four input variables (LA, LB, LE, TU) and six output
variables (VA, VB, VC, TM, S, H).
• A discrete state of the system is defined by specifying these
variables. Because each variable is a two-state variable, we use
a binary representation: true = 1 and false = 0.
• Let us take the binary “word” describing the state of the system to be defined by bits in
the order
(LA)(LB)(LE)(TU) (VA)(VB)(VC)(TM)(S)(H)
• The sequence of events is now translated into an expression of the discrete state as a
binary word per state.
• The system is processed through the proper sequence by having the input state
uniquely select an output state. The following table shows the states of the machine
along with brief descriptions. The bit order is the same as previously given.
Boolean Equations
Figure 12
Solution
The solution for problems of this type is
developed by simply translating the
narrative statements
of the events into Boolean equations. In
this case, referring to the variables defined
in Figure 12, you can see that the solution
is
EXAMPLE 6
The operation of a microwave oven in terms of a discrete state system is
described in two phases.
Phase 1 is to identify the operational elements of the system (input and
outputs)
Phase 2 is to define the sequence of events necessary to employ the oven.
•Phase 1 :