
7 Application Instructions API 50-99
DVP-PLC APPLICATION MANUAL
7-110
11.
The explanation of 32-bit
S
3 and 16-bit
S
3 are almost the same. The difference is the capacity of
S
3+5 ~
S
3+20.
PID Equations:
1. The PID operation is conducted according to the speed and the differential PV.
2. The PID operation has three control directions: automatic, foreward and inverse. Forward or inverse are
designated in S
3
+4. Other relevant settings of PID operation are set by the registers designated in S
3 ~
S
3 + 5.
3. Basic PID equation:
() () ()
StPVK
S
tEKtEKMV
DIP
*
1
** ++=
Control direction
PID equation
Forward, automatic
E(t) = SV – PV
Inverse
E(t) = PV – SV
StPV
is the differential value of
()
tPV
;
()
tE
1
is the integral value of
)
tE
. When
()
tE
is less than 0
as the control direction is selected as forward or inverse,
()
tE
will be regarded as “0".
The equation above illustrates that this instruction is different from a general PID instruction by the variable use
of the differential value. To avoid the flaw that the transient differential value is too big when a general PID
instruction is executed for the first time, our PID instruction monitors the differentiation status of the PV. When
the variation of PV is too big, this instruction will reduce the output of MV.
4. Symbol explanation:
MV
: Output value
P
K
: Proprotional gain
tE
: Error value
PV
: Present measured value
SV
: Target value
D
K
: Differential gain
()
StPV
: Differential value of PV(t)
I
K
: Integral gain
()
tE
1
: Integral value of E(t)
5. Temperature Control Equation:
When S
3
+4 is K3 and K4, the equation used in diagram 2 (see below) will be changed as:
() () ()
⎥
⎦
⎤
⎢
⎣
⎡
+
⎟
⎠
⎞
⎜
⎝
⎛
+= StPVK
S
tE
K
tE
K
MV
D
IP
*
111
In which the error value is fixed as E(t) = SV – PV
This equation is exclusively designed for temperature control. Therefore, when the sampling time (T
S
) is set as 4
seconds (K400), the range of output value (MV) will be K0 ~ K4,000 and the cycle time of GPWM instruction
used together has to be set as 4 seconds (K4000) as well.
Commenti su questo manuale