626
35 CPU MODULE BUILT-IN ANALOG FUNCTION
35.5 Function (PID Control Via Instruction)
Program example 5
This is an example of the sample program for auto tuning (step response method) + PID control.
■Use device
The content of the devices used for the program is as follows.
: This is an item not occupied.
*1 The setting is always necessary.
*2 When CH1 is used.
Item Device Setting value
During auto-tuning During PID control
Target value (SV)
*1
(s1) D500 500 (50.0) 500 (50.0)
Measured value (PV)
*1
(s2) SD6300
*2
According to input value According to input value
Parameter Sampling time (TS)
*1
(s3) D510 1000 (1000 ms) 500 (500 ms)
Operation setting
(ACT)
Operation direction
*1
(s3)+1 b0 D511.0 According to auto-tuning
result
According to auto-
tuning result
Input variation alarm (s3)+1 b1 D511.1 0 (Alarm is not provided) 0 (Alarm is not
provided)
Output variation alarm (s3)+1 b2 D511.2 0 (Alarm is not provided) 0 (Alarm is not
provided)
Auto-tuning (s3)+1 b4 D511.4 1 (AT is provided) 0 (AT is not provided)
Upper and lower limits of
output value
(s3)+1 b5 D511.5 1 (Setting is provided) 1 (Setting is provided)
Select auto-tuning mode (s3)+1 b6 D511.6 0 (Step response method) Not used
Overshoot suppression
setting
(s3)+1 b7 D511.7 Not used 1 (Used)
Hunting suppression
setting
(s3)+1 b8 D511.8 1 (Timeout time is valid) Not used
Input filter constant () (s3)+2 D512 0 (Input filter is not provided) 0 (Input filter is not
provided)
Proportional gain (KP)
*1
(s3)+3 D513 According to auto-tuning
result
According to auto-
tuning result
Integral time (TI)
*1
(s3)+4 D514 According to auto-tuning
result
According to auto-
tuning result
Differential gain (KD) (s3)+5 D515 0 (Differential gain is not
provided)
0 (Differential gain is
not provided)
Differential time (TD)
*1
(s3)+6 D516 According to auto-tuning
result
According to auto-
tuning result
Input variation (incremental) alarm set value (s3)+20 D530 Not used Not used
Input variation (decremental) alarm set value (s3)+21 D531 Not used Not used
Output variation (incremental) alarm set value
Output upper limit set value
(s3)+22 D532 Not used 2000 (2 second)
Output variation (decremental) alarm set value
Output lower limit set value
(s3)+23 D533 Not used 0 (0 second)
Alarm output Input variation
(incremental) is exceeded
(s3)+24 b0 D534.0 Not used Not used
Input variation
(decremental) is exceeded
(s3)+24 b1 D534.1 Not used Not used
Output variation
(incremental) is exceeded
(s3)+24 b2 D534.2 Not used Not used
Output variation
(decremental) is exceeded
(s3)+24 b3 D534.3 Not used Not used
Timeout time setting value after maximum ramp
(R) detection
(s3)+25 D535 10 (10 seconds) Not used
Used by system (s3)+26 D536 Not used Not used
Used by system (s3)+27 D537 Not used Not used
Wait setting from end of tuning cycle to start of
PID control (KW)
(s3)+28 D538
Output value (MV)
*1
(d) D502 1800 (1.8 second) According to operation