Beruflich Dokumente
Kultur Dokumente
Anders Wallén
Department of Automatic Control
Lund Institute of Technology
Box 118, S-221 00 Lund
Sweden
andersw@control.lth.se
4. Execute the continuous actions of all active steps. 4. Increase the relay amplitude until the output
reaches either of the crossing levels.
This behavior has a number of features that the
5. Set the sign of the process gain accordingly, if this
designer of the Grafcet must be aware of. At every
has not been given a priori.
sample, the algorithm above searches for stability,
i.e. a situation where no transitions can be fired. 6. Switch the relay, and wait for the process output
This is a potential danger, since it is possible to to change direction.
create, but often difficult to detect, situations where 7. Wait for the other crossing level to be reached.
all transitions in a loop are always fireable. Another
8. If there is a satisfactory oscillation, stop the tun-
feature of the execution algorithm is that the initial ing experiment, otherwise go to step 6.
actions may influence variables in the system, and
thus change the values of the transition conditions 9. Compute new controller parameters.
in the same sample. Continuous actions, on the other 10. If a refined tuning is desired, start the step re-
hand, may not cause these changes until the following sponse experiment, otherwise switch to automatic
sample. mode.
The behavior described above has been chosen since The optional step response experiment should do the
it is rather simple and straightforward, and yet pow- following:
erful enough for the applications that have been stud-
1. Close the loop with a preliminary PI controller
ied. It is not obvious, though, that this behavior is
obtained from the relay experiment.
desired in all possible applications.
A very simple example using C syntax in the ac- 2. Await stationarity.
tions and conditions is shown in Figure 3. The actions 3. Make a small step change in the reference value.
labeled I: and C: are initial and continuous actions, 4. Await stationarity
respectively. This part of the Grafcet models a possible
part of a loop assessment experiment. The process in- 5. Compute refined PID parameters and switch to
put u is increased until either u or the measured value automatic mode.
y reaches its maximum value. Then, u is decreased to The scheme above should probably be modified in
its initial value. When the process has reached sta- order to work for a larger class of plants, but it can be
tionarity, the function analyze is called. This returns used as an illustration of the modeling using Grafcet.
Manual
Init
Auto
Relay experiment
Abortion
recovery Tuning
Timed out. Preliminary
No oscillation. design
Step response
experiment
Setpoint
check
Set gain sign
Setpoint OK
Update relay
amplitude
0.05
PID 1 0
0.2 −0.1
yr -1.0 1.0 0 50 100 150 200 250 300 350 400 450 500
0.2
PID1, a pid-controller Figure 9. A tuning experiment for
Manual K 1.0 G(s) = e−10s /(2s + 1)3 .
Auto Ti 120.0
Td 0.0
Tune
Refined PID tuning
B 1.0
0.4
0.2
Ziegler-Nichols Refined PI
PI Refined PID 0.1
PID 0
Dead time Tuner settings
−0.1
0 50 100 150 200 250 300 350
Ziegler−Nichols method
0.4
Figure 8. The control panel of the controller PID1.
0.3
0.2
ers are used to set the manual control signal and set
point, respectively. The traditional PID parameters 0.1