9 PID CONTROL FUNCTION
9.8 Examples of Program
83
9
Program
OUTHS ST0 K2000
MOV
SM402
Initial pulse
SM402
Initial pulse
Initial pulse
SM402
PID control is started
after auto-tuning
PID is executed
PID is executed
X010
PID control is started
after auto-tuning
X011
PID control is started
(without auto-tuning)
M4
ST0
Heater operation
cycle
M4
PID control is started
(without auto-tuning)
X011
M4
Auto-tuning is executed
ST0<D502
X010
MOV
SD6022
K5000
K500
SET
SET
K0MOV
RST
RST
D510PID
< ST0 D502
D500
RST
D500
The target value is set to 50°C
The sampling time is set to
500 ms
The operation direction is
set to backward operation
PID instruction
initial setting
Built-in analog monitor
CH1: SD6022
CH2: SD6062
0: Enable
1: Disable
Heater output control
The upper and lower limits of
output value is set to valid
The output value lower limit
is set to ON for 0 sec.
The built-in analog is set to used CH
CH1: SM6021
CH2: SM6061
The PID output is initialized
PID instruction drive
PID is executed
The heater operation
cycle is set to 2 sec.
Preset
Heater output
D510
D511.0
D511.5
K2000MOV
The output value upper limit
is set to ON for 2 sec.
D532
D533
SM6021
D502
D502
M4
ST0
Y1
END
X010
PID control is started
after auto-tuning
RST
K1800MOV
SET
D511.6
The auto-tuning is set to
step response method
The output of auto-tuning
is set to 1.8 sec.
Auto-tuning initial
setting
Auto-tuning is executed
D536
D511.4