Siemens Simatic S7 Series System Manual page 276

Hide thumbs Also See for Simatic S7 Series:
Table of Contents

Advertisement

Program instructions
7.9 PID
Understanding the elements of the PID equation
Proportional term of the PID equation: The proportional term MP is the product of the gain
(K
), which controls the sensitivity of the output calculation, and the error (e), which is the
C
difference between the setpoint (SP) and the process variable (PV) at a given sample time.
The equation for the proportional term as solved by the CPU is:
MP
n
where:
MP
n
K
C
SP
n
PV
n
Integral term of the PID equation: The integral term MI is proportional to the sum of the error
(e) over time. The equation for the integral term as solved by the CPU is:
MI
n
where:
MI
n
K
C
T
S
T
I
SP
n
PV
n
MX
The integral sum or bias (MX) is the running sum of all previous values of the integral term.
After each calculation of MI
adjusted or clamped (see the section "Variables and Ranges" for details). The initial value of
the bias is typically set to the output value (M
Several constants are also part of the integral term, the gain (K
which is the cycle time at which the PID loop recalculates the output value, and the integral
time or reset (T
output calculation.
Differential term of the PID equation: The differential term MD is proportional to the change
in the error. The CPU uses the following equation for the differential term:
MD
n
276
= K
* (SP
- PV
)
C
n
n
Value of the proportional term of the loop output at sample time n
Loop gain
Value of the setpoint at sample time n
Value of the process variable at sample time n
= K
e
+ MX = K
* (T
1
n
C
S
Value of the integral term of the loop output at sample time n
Loop gain
Loop sample time
Integral time (also called the integral time or reset)
Value of the setpoint at sample time n
Value of the process variable at sample time n
Value of the integral term at sample time n-1 (also called the integral sum or the
bias)
), which is a time used to control the influence of the integral term in the
I
= K
* (T
/ T
) * ((SP
C
D
S
n
/ T
) * (SP
- PV
) + MX
I
n
n
, the bias is updated with the value of MI
n
) just prior to the first loop output calculation.
initial
- PV
) - (SP
- PV
))
n
n-1
n-1
which might be
n
), the sample time (T
C
System Manual, 09/2015, A5E03822230-AC
),
S
S7-200 SMART

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-200 smart series

Table of Contents