National Instruments 371685C-01 用户手册

下载
页码 39
© National Instruments Corporation
2-1
2
PID Algorithms
This chapter explains the fast PID, precise PID, and autotuning algorithms.
The PID Algorithm
The PID controller compares the setpoint (SP) to the process variable (PV) to obtain the error 
(e), as follows:
e = SP – PV
Then the PID controller calculates the controller action, u(t), as follows. In this equation, K
c
 
is the controller gain.
If the error and the controller output have the same range, –100% to 100%, controller gain is 
the reciprocal of proportional band. T
i
 is the integral time in minutes, also called the reset 
time, and T
d
 is the derivative time in minutes, also called the rate time. The following formula 
represents the proportional action.
The following formula represents the integral action.
 The following formula represents the derivative action.
u t
( )
K
c
e
1
T
i
----
e t
d
0
t
T
d
de
dt
------
+
+
=
u
p
t
( )
K
c
e
=
u 
I 
t
( ) = 
K
c
 
T
i
-------
e t
d
0
t
u
D
t
( )
K
c
T
d
 
de 
dt
-------
=