Professional Documents
Culture Documents
Delta PID Control PDF
Delta PID Control PDF
15.7 PID - Oven Temperature Control (Auto-tuning for PID Temperature Control)
Control Purpose:
z Execute auto-tuning function of PID instruction to control the temperature of the oven when
the oven is in unknown temperature environment. The target temperature is 80℃.
z Apply DVP04PT-S temperature module for measuring the present temperature of the oven
and transferring the results to PLC. The PLC will execute parameter auto-tuning function
(D204 = K3) to operate the best PID parameters and automatically change the control
direction as “Exclusively for the adjusted temperature control” (D204 = K4).
z PLC outputs the operation results (adjusted parameter) in D0 to the input of GPWM
instruction. Y0 will output PWM pulses (width determined by D0) to control the heater and
PID temperature control is accomplished.
D0
Y0
D20
Devices:
Device Function
Control Program:
M1002
MOV K800 D10 Set target temp: 80 ℃
TO K0 K2 K2 K1
M1013
FROM K0 K6 D11 K1
RST M0
M1
PID D10 D11 D200 D0
GPWM D0 D20 Y0
Program Description:
z Format of PID instruction:
PID S1 S2 S3 D
KP =40 SV=1
K P =20 KP =10
1
K P =5
0.5
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 Time (sec)
Step 2: From the figure, we can see that when KP = 40, there will be over-reaction, so we will
not select it. When KP = 20, the PV reaction curve will be close to SV and there will
not be over-reaction, but due to its fast start-up with big transient MV, we will
consider to put it aside. When KP = 10, the PV reaction curve will get close to SV
value more smoothly, so we will use it. Finally when KP = 5, we will not consider it
due to the slow reaction.
Step 3: Select KP = 10 and adjust KI from small to big (e.g. 1, 2, 4 to 8). KI should not be
bigger than KP. Adjust KD from small to big (e.g. 0.01, 0.05, 0.1 and 0.2). KD should
not exceed 10% of KP. Finally we obtain the figure of PV and SV below.
1.5
PV=SV
0.5
K P =10,K I =8,KD=0.2
0 Time (sec)
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Note: This example is only for your reference. Please adjust your parameters to proper ones
according to your actual condition of the control system.
z In the temperature control environment, Delta PLC provides auto-tuning on parameters of
PID instruction, so users can get good control results without parameter adjusting steps .
See below for the auto-tuning process in this example:
1. Initial adjustment. Operate the most suitable parameter for PID temperature control
and store the result in D200~D219. See the reaction curve below:
2. Use the adjusted parameter in D200~D219 to control temperature. The curve becomes
as below:
From the figure above, we can see that the temperature control after auto-tuning is working
fine and we use only approximately 20 minutes for the control.
z PID sampling time should be set the same with the cycle time of GPWM instruction, but its
unit is 10ms, which is different from the unit 1ms of GPWM instruction.
z Sampling time of PV should be set to 2 times more than the sampling time of PID, generally
between 2s ~6s.
z PID parameter table of S3 for 16-bit instruction:
+19:
When parameter setting exceeds its range, the upper bound and lower bound will
become the setting value. However, if the motion direction (DIR) exceeds the range, it
will be set to 0.
The maximum error of sampling time TS = - (1 scan time + 1ms) ~ + (1 scan time).
When the error affects the output, please fix the scan time or execute PID instruction in
the interruption subroutine of the timer.
PV of PID instruction has to be stable before the execution of PID instruction. If you are
to extract the input value of DVP04AD/04DA/06XA/04PT/04TC for PID operation,
please be aware of the A/D conversion time of these modules.