Académique Documents
Professionnel Documents
Culture Documents
CONTENTS
1. Introduction 2. State Diagram 3. Boolean Logical Equation
DEC: both input and output control variable are discrete variables that change values as a result of the occurrence of events Multiple-input/multiple-output (MIMO) discrete logical controller, see Figure 1, where Ii is discrete value-based input variable, and Yi discrete value-based output. Ii and Yi only take value 0 (off) or 1 (on). Input and output devices are usually located at a distance from the controller.
Lecture note 7 discrete event control 2
Introduction
Figure 1
I1 Discrete I2 Ip Logic Y2 Ym Y1
Controller
Introduction
Figure 2
Figure 3
Level Limit Switch LLS Controller V Valve
We need a method to represent system dynamics. Control system: including both plant and controller. However, in discrete event driven system, plant dynamics is ignored. Therefore, the control system for discrete event driven system reduces to the controller only. State and state diagram is the method. Next, we discuss state and state diagram.
Lecture note 7 discrete event control 5
State Diagram
States: indicators that system changes State Variables: assign a name to each independent class of states EX 1: Switch: on and off. (1,0). State change has a cause. State diagram (Fig.4, Fig.5) represents the cause-state change. In particular, node: state; edge: cause. In this example, we define: LLS=0 for the level of liquid is below L LLS=1 for the level of liquid is above L
NO
Lecture note 7 discrete event control 6
State Diagram
1. State -> System state. 2. System: components: valve, pump. 3. Fluid: is not a part of the system, though the fluid has its state as well. Level of fluid in the tank can be considered as a kind of state, but not in the sense of system state. 4. Since we concern system state, the level of fluid is not considered as a state variable. Level of fluid is input variable in this case; see the next slide. 5. In future, state refers to system state, but we omit word system here.
Lecture note 7 discrete event control 7
State Diagram
Level of fluid: LLS
State diagram
Figure 4
Figure 5
State Diagram
Level of fluid: LLS
Output: X as well
So we have: output = X
Lecture note 7 discrete event control 10
State Diagram
It is noted that the two circles represent different states of one state variable (i.e., valve). The system in EX 1 has only one state variable. EX 2: In EX 1, if we introduce also the pump in the system. In particular, there is a piece of knowledge: when the valve is closed the pump must be off. We can sum up the desired control actions as follows:
11
State Diagram
State variables: X1: pump; X2: valve. X1: X1=0: pump off X1=1: pump on X2: X2=0: valve is closed X2=1: valve is open
12
State Diagram
4. Turn the pump off if it is on and LLS=1, or keep the pump off if LLS=1. The above expressions of control action can be represented by two state variables, namely X1 (for pump) and X2 (for valve)
14
State Diagram
Figure 6
15
State Diagram
Fig. 7 shows another way to represent the state diagram for EX 2. The features of Fig. 7 are: 1. Each node represents one state variable with its
value.
2. A state variable can be the cause of changes for
16
State Diagram
Fig. 7 The meaning that the pump can never be on if the valve is closed has not been represented by the state diagram. This shows some limitation of the state diagram
Lecture note 7 discrete event control 17
State Diagram
Level of fluid: LLS
A formal way or mathematical way to represent the meaning: If X2=1 AND LLS=0, X1 changes from 0 to 1. This desire leads us to think of Boolean algebra. The idea is to think another way to represent the controller or control system. The next will discuss Boolean algebra.
Lecture note 7 discrete event control 20
A 1 A 0
when A=0
when A=1
22