EasyManuals Logo

Siemens Simatic S7 Series System Manual

Siemens Simatic S7 Series
726 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #276 background imageLoading...
Page #276 background image
Program instructions
7.9 PID
S7-200 SMART
276 System Manual, 09/2015, A5E03822230-AC
Understanding the elements of the PID equation
Proportional term of the PID equation:
The proportional term MP is the product of the gain
(K
C
), which controls the sensitivity of the output calculation, and the error (e), which is the
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
= K
C
* (SP
n
- PV
n
)
where:
MP
n
Value of the proportional term of the loop output at sample time n
K
C
Loop gain
SP
n
Value of the setpoint at sample time n
PV
n
Value of the process variable at sample time 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
= K
1
e
n
+ MX = K
C
* (T
S
/ T
I
) * (SP
n
- PV
n
) + MX
where:
MI
n
Value of the integral term of the loop output at sample time n
K
C
Loop gain
T
S
Loop sample time
T
I
Integral time (also called the integral time or reset)
SP
n
Value of the setpoint at sample time n
PV
n
Value of the process variable at sample time n
MX
Value of the integral term at sample time n
-
1 (also called the integral sum or the
bias)
The integral sum or bias (MX) is the running sum of all previous values of the integral term.
After each calculation of MI
n
, the bias is updated with the value of MI
n
which might be
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
initial
) just prior to the first loop output calculation.
Several constants are also part of the integral term, the gain (K
C
), the sample time (T
S
),
which is the cycle time at which the PID loop recalculates the output value, and the integral
time or reset (T
I
), which is a time used to control the influence of the integral term in the
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
= K
C
* (T
D
/ T
S
) * ((SP
n
- PV
n
) - (SP
n-1
- PV
n-1
))

Table of Contents

Other manuals for Siemens Simatic S7 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens Simatic S7 Series and is the answer not in the manual?

Siemens Simatic S7 Series Specifications

General IconGeneral
CPUVaries by model (e.g., S7-300, S7-400, S7-1200, S7-1500)
Communication InterfacesPROFIBUS, PROFINET, Ethernet, MPI
ProgrammingTIA Portal, STEP 7
Programming LanguagesLAD, FBD, STL, SCL, GRAPH
I/O ModulesDigital, Analog, Specialty modules available
Operating Temperature0°C to 60°C (standard models)
MountingDIN rail mounting
Operating Voltage24V DC or 120/230V AC (varies by model)
Protection ClassIP20 (standard models)
MemoryVaries depending on the S7 model. Includes work memory (RAM) for program execution, load memory (EEPROM or Flash) for program storage, and system memory for operating system functions. Memory sizes range from kilobytes to megabytes.

Related product manuals