PID Loop Operation
Maintenance
8–31
PID Loop Operation
PID Algorithms
The Proportional–Integral–Derivative (PID) algorithm is widely used in process
control. The PID method of control adapts well to electronic solutions, whether
implemented in analog or digital (CPU) components. The DL05 CPU implements the
PID equations digitally by solving the basic equations in software. I/O modules serve
only to convert electronic signals into digital form (or vise-versa).
The DL05 features two types of PID controls: “position” and “velocity”. These terms
usually refer to motion control situations, but here we use them in a different sense:
S
PID
Position
Algorithm – The control output is calculated so it responds
to the displacement (position) of the PV from the SP (error term).
S
PID
Velocity
Algorithm – The control output is calculated to represent
the rate of change (velocity) for the PV to become equal to the SP.
The majority of applications will use the position form of the PID equation. If you are
not sure of which algorithm to use, try the Position Algorithm first. Use
Direct
SOFT32’s PID View Setup dialog box to select the desired algorithm. Or, use
bit 5 of PID Mode 1 Setting V+00 word as shown below to select the algorithm.
Process Variable
S
+
–
Setpoint
PID Mode 1 Setting V+00
0
1
3
4
5
6
7
8
9
10
11
12
13
14
15
2
Bit
Position / Velocity select
Loop Calculation
0
1
Position Algorithm
Control Output
Velocity Algorithm
Error
NOTE:
The selection of a PID algorithm is very fundamental to control loop
operation, and is normally never changed after the initial configuration of a loop.
The Position Algorithm causes the PID equation to calculate the Control Output M
n
:
S
M
n
=
K
c
*
e
n
+
K
i
*
e
i
+ K
r
* (e
n
– e
n–1
) + M
o
i=1
n
In the formula above, the sum of the integral terms and the initial output are
combined into the “Bias” term, Mx. Using the bias term, we define formulas for the
Bias and Control Output as a function of sampling time:
M
n
=
K
c
*
e
n
+
K
r
* (e
n
– e
n–1
) + Mx
n
.....
Output for sampling time “n”
Mx
o
=M
o
Mx
n
=K
i
* e
n
+ Mx
n–1
M
n
=
K
i
*
S
e
i
+ M
o
i=1
n
Position Algorithm
Содержание DL05
Страница 1: ...DL05 User Manual Automationdirect com ...
Страница 2: ...DL05 User Manual Automationdirect com ...
Страница 436: ...1B DL05 Error Codes In This Appendix Ċ Error Code Table ...
Страница 443: ...1C Instruction Execution Times In This Appendix Ċ Introduction Ċ Instruction Execution Times ...
Страница 459: ...1D Special Relays In This Appendix Ċ DL05 PLC Special Relays ...
Страница 464: ...1E DL05 Product Weights In This Appendix Ċ Product Weight Table ...
Страница 466: ...1F European Union Directives CE In This Appendix Ċ European Union EU Directives Ċ Basic EMC Installation Guidelines ...