9
PID CONTROL FUNCTION
9.1
Outline of Function
PID control is performed by PID control instruction. The PID instruction requires the system to calculate the output (MV) value
from the measured (PV) value. Through combining the P (proportional) action, I (integral) action, and D (derivative) action the
target (SV) value can be obtained.
• Alarm output function
The alarm function can be set for input variation (measured value) or output variation (value).
• Setting limit values
The upper limit and lower limit can be set for the output value.
• Auto-tuning function
The proportional gain (KP), integral time (TI) and differential time (TD) can be set automatically for both the limit cycle method
and step response method.
• Operation method of the PID instruction
Both PID speed type operation and measured value differential type operation are executed.
CPU module
Target value (SV)
PID instruction
9.2
Basic Operation Expressions in PID Instruction
The PID instruction executes using the speed type or measured value differential type operation expression. According to the
contents of (s3)+1, bit 0 (operation setting (ACT)) specified by (s3) in the PID control, either forward operation or backward
operation is executed. Each value required in the operation is specified by a corresponding parameter (s3) or later.
Basic operation expression for PID control
Operation
Operation expression
setting (ACT)
(s3+1: b0)
Forward operation
ΔMV=KP{(EVn-EVn-1)+
(OFF)
EVn=PVnf-SV
Dn=
TS+KD•TD
MVn=ΣΔMV
Backward operation
ΔMV=KP{(EVn-EVn-1)+
(ON)
EVn=SV-PVnf
TD
Dn=
TS+KD•TD
MVn=ΣΔMV
Measured value (PV)
Output value (MV)
TS
EVn+Dn}
TI
TD
(-2PVnf-1+PVnf+PVnf-2)+
TS
EVn+Dn}
TI
(2PVnf-1-PVnf-PVnf-2)+
Controlled object
The meaning of the signs
EVn: Deviation in sampling at this time
EVn-1: Deviation in previous cycle
SV: Target value
PVnf: Measured value in sampling at this time
(after filter)
KD•TD
PVnf-1: Measured value in previous cycle
•Dn-1
TS+KD•TD
(after filter)
PVnf-2: Measured value in two cycles before
(after filter)
MV: Output variation
MVn: Operation quantity at this time
Dn: Differential term at this time
Dn-1: Differential term in previous cycle
TS: Sampling cycle
KD•TD
KP: Proportional gain
•Dn-1
TI: Integral constant
TS+KD•TD
TD: Differential constant
KD: Differential gain
9 PID CONTROL FUNCTION
9.1 Outline of Function
9
55