74
9 PID CONTROL FUNCTION
9.8 Examples of Program
Program example 1
This is an example of the sample program for 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 Not used 5000 (50.0)
Measured value (PV)
*1
(s2) SD6022 Not used According to input value
*2
Parameter Sampling time (TS)
*1
(s3) D510 Not used 500 (500 ms)
Operation setting
(ACT)
Operation direction
*1
(s3)+1 b0 D511.0 Not used 1 (Backward operation)
Input variation alarm (s3)+1 b1 D511.1 Not used 0 (Alarm is not provided)
Output variation alarm (s3)+1 b2 D511.2 Not used 0 (Alarm is not provided)
Auto-tuning (s3)+1 b4 D511.4 Not used 0 (AT is not provided)
Upper and lower limits of
output value
(s3)+1 b5 D511.5 Not used 1 (Setting is provided)
Select auto-tuning mode (s3)+1 b6 D511.6 Not used Not used
Input filter constant () (s3)+2 D512 Not used 0 (Input filter is not provided)
Proportional gain (KP)
*1
(s3)+3 D513 Not used 3000 (3000 %)
Integral time (TI)
*1
(s3)+4 D514 Not used 2000 (2000100 ms)
Differential gain (KD) (s3)+5 D515 Not used 0 (Differential gain is not
provided)
Differential time (TD)
*1
(s3)+6 D516 Not used 5000 (500010 ms)
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
PV value threshold (hysteresis) width (SHPV) (s3)+25 D535
Output value upper limit (ULV) (s3)+26 D536
Output value lower limit (LLV) (s3)+27 D537
Wait setting from end of tuning cycle to start of PID
control (KW)
(s3)+28 D538
Output value (MV)
*1
(d) D502 Not used According to operation