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 #281 background imageLoading...
Page #281 background image
Program instructions
7.9 PID
S7-200 SMART
System Manual, 09/2015, A5E03822230-AC
281
The default state of the PID history bits is "set" and that state is established at startup and on
every STOP-to-RUN mode transition of the controller. If power flows to the PID box the first
time that it is executed after entering RUN mode, then no power-flow transition is detected
and the bumpless mode change actions are not performed.
Alarm checking and special operations
The PID instruction is a simple but powerful instruction that performs the PID calculation. If
other processing is required such as alarm checking or special calculations on loop
variables, these must be implemented using the basic instructions supported by the CPU.
Error conditions
When it is time to compile, the CPU will generate a compile error (range error) and the
compilation will fail if the loop table start address or PID loop number operands specified in
the instruction are out of range.
Certain loop table input values are not range checked by the PID instruction. You must take
care to ensure that the process variable and setpoint (as well as the bias and previous
process variable if used as inputs) are real numbers between 0.0 and 1.0.
If any error is encountered while performing the mathematical operations of the PID
calculation, then SM1.1 (overflow or illegal value) is set and execution of the PID instruction
is terminated. (Update of the output values in the loop table could be incomplete, so you
should disregard these values and correct the input value causing the mathematical error
before the next execution of the loop's PID instruction.)
Loop table
The loop table is 80 bytes long and has the format shown in the following table.
Offset
Field
Format
Type
Description
0 Process variable (PV
n
) REAL In Contains the process variable, which must be scaled
between 0.0 and 1.0.
4 Setpoint (SP
n
) REAL In Contains the setpoint, which must be scaled be-
tween 0.0 and 1.0.
8 Output (M
n
) REAL In/Out Contains the calculated output, scaled between 0.0
and 1.0.
12 Gain (K
C
) REAL In Contains the gain, which is a proportional constant.
Can be a positive or negative number.
16 Sample time (T
S
) REAL In Contains the sample time, in seconds. Must be a
positive number.
20 Integral time or reset (T
I
) REAL In Contains the integral time or reset, in minutes. Must
be a positive number.
24 Derivative time or rate (T
D
) REAL In Contains the derivative time or rate, in minutes. Must
be a positive number.
28 Bias (MX) REAL In/Out Contains the bias or integral sum value between 0.0
and 1.0.

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