Pid
Pid
SIMATIC FAQ
Totally Integrated Automation
Frequently Asked Question
Control Functions PID Control in Step PID Temperature Standard PID Modular PID
Modules 7 Control Control Control
Delivery Form Software, Software, SW Optional SW Optional
Component of Step Component of Packages: Packages:
7 CFC, Step 7 from V5.1 Function Blocks Function Blocks
CPU313C/314C SP1 (FB), (FB),
Parameterization Parameterization
Software, Manual Software, Manual
Application Simple PID control- PID Temperature PID Controller with Modular FB
loop control tasks control for simple off the shelf building blocks for
heating or cooling control structure complex closed
controller with and for control loop control tasks
integrated self- tasks of simple to with maximum
optimization medium flexibility and
complexity minimum memory
requirements and
shortest cycles.
Properties
Start up (Test,
Diagnostic) with parameterization tool
Online self-optimization In Conjunction with Yes for continuous In Conjunction In Conjunction
of controller with PID Self Tuner and pulse with PID Self with PID Self
controlled systems for controllers Tuner Tuner
Temperature (integrated
optimization
Online self-optimization In Conjunction with Controllers for With With
of controller with PID Self Tuner also ranges with similar parameterization parameterization
systems other than for for level and flow characteristics can software. software or PID
Temperature control be optimized Self Tuner
Elementary Closed-
Loop Control
Functions
PID Algorithm Yes Yes Yes Yes (FB19)
Output of Continuous
PID Controller Yes (FB41, SFB41) Yes (FB58) Yes (FB1) Yes (FB13)
Output of PID pulse Yes (FB41, SFB41, Yes (FB13 and
controller FB43, SFB43) Yes (FB58) Yes (FB1) FB20)
Output of PID step
controller Yes (FB42, SFB42) Yes (FB59) Yes (FB2) Yes (FB14)
Pulse Generator Component of Component of Yes (FB20)
Yes (FB43, SFB43) FB58 FB1
Component of PID Component of PID Component of PID
Integrator Algorithm Algorithm Algorithm Yes (FB8)
Component of PID Component of PID Component of PID
Differentiator Algorithm Algorithm Algorithm Yes (FB6)
PID Blocks
Copyright 2007 by SIEMENS page 2 / 23
SIMATIC customers have free use of the application tips. These tips are only a general approach to using SIMATIC with various applications. Your
specific application may be different. It is your responsibility to use SIMATIC properly in your applications.
PID Blocks
Yes (in actual value Yes (in actual Yes (in setpoint,
and manual variable value branch) actual and manual
Physical Scaling branches) variable branches) Yes (FB16)
Yes (in system Yes (in system
Deadband deviation) Yes deviation) Yes (FB5)
Conversion of analog Yes (in actual value Yes (in actual
input value branch) Yes value branch) Yes (FB2)
Conversion of analog Yes (in manual Yes (in manual
output value variable branch) Yes variable branch) Yes (FB3)
Yes (in actual Yes (in actual
value and system value and system
deviation deviation
Limit Monitor No branches) branches) Yes (FB11)
Yes (in manual Yes (in setpoint Yes (in setpoint
variable branch) and actual value and manual
Limiter branches variable branches Yes (FB12)
System deviation
monitoring Yes Yes Yes (FB7)
Controller Scheduler Yes (FC1) Yes (FC1)
Supplemental
Functions
Yes (in setpoint
Setpoint generator branch) Yes (FB25)
Yes (in setpoint
Ramp Soak branch) Yes (FB21)
Yes (in setpoint
and manual
Rate Of Change Limiter variable branches) Yes (FB22)
Yes (as a filter in
actual value
1st order lag element branch) Yes (FB9)
2nd order lag element Yes (FB10)
Adaptive deadband Yes (FB1)
Dead time Yes (FB4)
Non-linear static
characteristic Yes (FB15)
Linear scaling Yes (FB23)
Linearization
Override control Yes (FB17)
Parameter control Yes (FB18)
Range Selection (split
range) Yes (FB24)
Analog value switch Yes (FB26)
Setpoint Branch
Setpoint generator Yes Yes (FB25)
Ramp Soak Yes Yes (FB21)
Scaling Yes (FB16 and
Yes FB23)
Limiter Yes Yes (FB12)
Rate Of Change Limiter Yes Yes (FB22)
PID Blocks
Copyright 2007 by SIEMENS page 3 / 23
SIMATIC customers have free use of the application tips. These tips are only a general approach to using SIMATIC with various applications. Your
specific application may be different. It is your responsibility to use SIMATIC properly in your applications.
PID Blocks
FC call (nested) Yes Yes
PV (Actual Value)
Branch
Format conversion Yes Yes Yes Yes (FB2)
Yes (FB16 and
Scaling Yes Yes Yes FB23)
Smoothing Yes Yes (FB9)
Square Root function Yes
Monitoring of ROC Yes Yes (FB22)
Limit monitor Yes Yes (FB11)
FC call (nested) Yes
Closed loop controller
Continuous PID Yes (FB19 and
Controller Yes Yes Yes FB13)
PID pulse controller Yes (FB19 FB13
Yes Yes Yes FB21)
PID step controller Yes (FB19 and
Yes Yes Yes FB14)
Temperature controller Possible with PID Yes with PID Self Yes with PID Self
Self Tuner Yes Tuner Tuner
Output (Manipulated
Variable) Branch
Manual Automatic Yes (FB13 and
Switchover Yes Yes Yes FB14)
Manual variable
generator Yes Yes (FB25)
Yes (FB16 and
Scaling Yes Yes Yes FB23)
Format conversion Yes Yes Yes Yes (FB3)
Limiter Yes Yes Yes Yes (FB12)
Rate Of Change Limiter Yes Yes (FB22)
FC call (nested) Yes
Pulse Generator Yes Yes Yes Yes (FB20)
Closed loop control
structures
Fixed Setpoint control Yes Yes Yes Yes
Follow up control * Yes
Cascade control Limited Limited Yes Yes
Ratio control Limited Limited Yes Yes
Blending control Limited Yes
Split Range Yes Yes Limited Yes
System integration
Step 7 from V3.0,
CPU313C/314C
from Step7 V5.1 From Step7 V5.1
Supported by SP3, CFC V1.1 SP3 From Step7 V2.1 From Step7 V3.1
Parameterization
software Part of Step 7 Part of Step 7 Yes Yes
Yes from CFC
Integration with CFC Yes Can be integrated Yes V5.0
PID Blocks
Copyright 2007 by SIEMENS page 4 / 23
SIMATIC customers have free use of the application tips. These tips are only a general approach to using SIMATIC with various applications. Your
specific application may be different. It is your responsibility to use SIMATIC properly in your applications.
PID Blocks
Authorization/licensin
g
Yes for parameter- Yes for parameter-
Authorization Irrelevant Irrelevant ization software ization software
Runtime License for Required for each Required for each
FB/FC library Irrelevant Irrelevant CPU CPU
License for
parameterization Required for each Required for each
software Irrelevant Irrelevant PG/PC PG/PC
* Follow up control involves a controller in which the setpoint is constantly influenced externally
(secondary controller of a multi-loop control system). The task of the secondary controller is to
correct the local process variable as quickly and accurately as possible so that it matches the
setpoint.
When the tool is selected, a window pops up to select the project and datablock.
Opening the Offline version allows you to make parameter settings. When the Online block is
opened you have the added capability of a chart recorder.
PID Blocks
Copyright 2007 by SIEMENS page 5 / 23
SIMATIC customers have free use of the application tips. These tips are only a general approach to using SIMATIC with various applications. Your
specific application may be different. It is your responsibility to use SIMATIC properly in your applications.
PID Blocks
FB41 and FB42 are the “no frills” PID controllers for simple control tasks.
PID Blocks
Copyright 2007 by SIEMENS page 6 / 23
SIMATIC customers have free use of the application tips. These tips are only a general approach to using SIMATIC with various applications. Your
specific application may be different. It is your responsibility to use SIMATIC properly in your applications.
PID Blocks
FB58 and FB59 utilize a Parameter Assignment Tool similar to the PID Parameter Assignment
Tool. To access the tool, double click or Right Mouse Click (RMC), Open on the instance
datablock.
PID Blocks
Copyright 2007 by SIEMENS page 7 / 23
SIMATIC customers have free use of the application tips. These tips are only a general approach to using SIMATIC with various applications. Your
specific application may be different. It is your responsibility to use SIMATIC properly in your applications.
PID Blocks
Use the (Online/Offline) icon to open the datablock online. With the online block open, the
Options menu reveals Curve Recorder, Controller Tuning and Commissioning options.
The Curve Recorder is almost identical to the PID Parameter Assignment Tool.
PID Blocks
Copyright 2007 by SIEMENS page 8 / 23
SIMATIC customers have free use of the application tips. These tips are only a general approach to using SIMATIC with various applications. Your
specific application may be different. It is your responsibility to use SIMATIC properly in your applications.
PID Blocks
Controller Tuning opens a wizard to tune the loop with the self tuner.
The Next button selection offers choices to tune the PID or PI parameters. The Next button
selection offers to tune the loop by approaching the operating point with a setpoint step change
or by tuning at the operating point with a start bit. The Next button selection asks for Process
excitation (disturbance) with either a Setpoint (Operating point) or Output (Manipulated
variable) change. The Next button selection starts the tuning.
PID Blocks
Copyright 2007 by SIEMENS page 9 / 23
SIMATIC customers have free use of the application tips. These tips are only a general approach to using SIMATIC with various applications. Your
specific application may be different. It is your responsibility to use SIMATIC properly in your applications.
PID Blocks
The Commissioning option selection opens a pop up window to enter the mode (Auto or
Manual), to enter a Setpoint or Output value depending on the mode, to select for the PID or PI
paramters and to save or load the parameters and control zone calculated by the tuning wizard.
PID Blocks
Copyright 2007 by SIEMENS page 10 / 23
SIMATIC customers have free use of the application tips. These tips are only a general approach to using SIMATIC with various applications. Your
specific application may be different. It is your responsibility to use SIMATIC properly in your applications.
PID Blocks
Standard PID has a parameter assignment tool similar to the Standard Library PID blocks. It is
invoked by selecting SIMATIC, Step7, Standard PID Control Parameter Assignment
PID Blocks
Copyright 2007 by SIEMENS page 11 / 23
SIMATIC customers have free use of the application tips. These tips are only a general approach to using SIMATIC with various applications. Your
specific application may be different. It is your responsibility to use SIMATIC properly in your applications.
PID Blocks
When the tool opens select the IDB for the instance of FB1 you want to configure. The
following is what will be displayed.
The selection of any of the icons opens a pop up window to enter parameters. The popup
window below was accessed by selecting the PID icon.
PID Blocks
Copyright 2007 by SIEMENS page 12 / 23
SIMATIC customers have free use of the application tips. These tips are only a general approach to using SIMATIC with various applications. Your
specific application may be different. It is your responsibility to use SIMATIC properly in your applications.
PID Blocks
The parameters for PID, such as P, PI, PD, PID can be selected. The Gain, Reset time and
Derivative time can be entered in the corresponding input blocks.
When the online block is opened. There are two views available with the Debug Menu, Loop
Monitor and Curve Recorder
The Loop Monitor opens a popup window that is mini-faceplate. From here you can change
the Setpoint and watch the reaction to the Process Variable and to the Output (LMN).
The Curve Recorder (Trend) Opens a popup to display a real time trend of the Setpoint, PV
and Output (LMN).
PID Blocks
Copyright 2007 by SIEMENS page 13 / 23
SIMATIC customers have free use of the application tips. These tips are only a general approach to using SIMATIC with various applications. Your
specific application may be different. It is your responsibility to use SIMATIC properly in your applications.
PID Blocks
The Settings button opens a popup window to set the frequency of the update and the number
of items to be display. You can also specify a csv file to record the values. This can be access
by the Curve Recorder to review. You can use these tools to tune the loop or you can use the
PID Self Tuner block to tune the loop.
Standard PID Control is suitable for closed-loop control tasks of low to medium complexity: for
temperature, pressure, flow and level controls. Standard PID can also handle cascade control,
ratio control and ramp soak.
PID Blocks
Copyright 2007 by SIEMENS page 15 / 23
SIMATIC customers have free use of the application tips. These tips are only a general approach to using SIMATIC with various applications. Your
specific application may be different. It is your responsibility to use SIMATIC properly in your applications.
PID Blocks
Rate of Change Limiter: Ramp functions are used when the process must
not be subjected to a step change at the input. This is, for example, the
case when gearing is included between the motor and the load and when
FB22 ROC_LIM increasing the motor speed too fast would overload the gearing.
Modular PID Control is a collection of standard function blocks, which can be combined to
create any type of control structure for SIMATIC S7/C7. The blocks can be connected using
STEP 7, SCL, and CFC. The CFC option is a straightforward programming environment for
visualizing the interconnection of the Modular PID blocks.
PID Blocks
Copyright 2007 by SIEMENS page 16 / 23
SIMATIC customers have free use of the application tips. These tips are only a general approach to using SIMATIC with various applications. Your
specific application may be different. It is your responsibility to use SIMATIC properly in your applications.
PID Blocks
Modular PID can handle heating and cooling in a single loop, cascade control, and ramp soak.
It includes a Loop Scheduler which allows up to 256 control loops to be called. The control
loops with different sampling times can be called at equal intervals in one cyclic interrupt priority
class.
FB19, PID, with FB13, LMNGEN_C, is approximately 235% larger in work memory than FB41
Modular PID has a parameter assignment tool similar to the Standard Library PID blocks. It is
invoked by selecting SIMATIC, Step7, Modular PID Control Startup and Test:
PID Blocks
Copyright 2007 by SIEMENS page 17 / 23
SIMATIC customers have free use of the application tips. These tips are only a general approach to using SIMATIC with various applications. Your
specific application may be different. It is your responsibility to use SIMATIC properly in your applications.
PID Blocks
When the tool is invoked, you are asked to find the project and attached to a Variable Table. If
a variable table does not exist, you can create it.
The next step is to select the Data Block and define the pertinent addresses. This is
accomplished through the Test menu, Paremter Addresses.
PID Blocks
Copyright 2007 by SIEMENS page 18 / 23
SIMATIC customers have free use of the application tips. These tips are only a general approach to using SIMATIC with various applications. Your
specific application may be different. It is your responsibility to use SIMATIC properly in your applications.
PID Blocks
PID Blocks
Copyright 2007 by SIEMENS page 19 / 23
SIMATIC customers have free use of the application tips. These tips are only a general approach to using SIMATIC with various applications. Your
specific application may be different. It is your responsibility to use SIMATIC properly in your applications.
PID Blocks
From the Test menu selecting Curve Recorder , opens a trend window.
The window resembles the trend window of the other tools.
PID Blocks
Copyright 2007 by SIEMENS page 20 / 23
SIMATIC customers have free use of the application tips. These tips are only a general approach to using SIMATIC with various applications. Your
specific application may be different. It is your responsibility to use SIMATIC properly in your applications.
PID Blocks
PID Blocks
Copyright 2007 by SIEMENS page 21 / 23
SIMATIC customers have free use of the application tips. These tips are only a general approach to using SIMATIC with various applications. Your
specific application may be different. It is your responsibility to use SIMATIC properly in your applications.
PID Blocks
You can use these tools to tune the loop or you can use the PID Self Tuner block to tune the
loop.
Summation
The Step 7 Basis Standard PID Library, optional Standard PID Control and optional Modular
PID Control provide tools to solve your PID control needs. There are overlaps between the
products as well. In general, the Step 7 Basis Standard Library PID blocks are for simple
control problems. The temperature control blocks, FB58 and FB59, solve a more complex
control problems but are still in the simplest arena. Standard PID Control is a good choice to
low to medium complex control problems. Standard PID Control also introduces the Loop
Scheduler. The Loop Scheduler is especially useful if there are a large number of loops and a
limited number of cyclic interrupt OB’s. For the most complex control problems, Modular PID
Control offers the widest range of solutions. The building block approach lets you tailor the
solution to fit your needs rather than tailoring your needs to fit the solution.
All of the options include a Configuration and Start up tool to assist in assigning parameters
and tuning the loops.
Related Information
The following materials will provide additional explanation for the use of the various PID Blocks:
SIMATIC Modular PID Control, Edition 11/2003
SIMATIC Modular PID Control, Getting Started, Edition 11/2003
SIMATIC Standard PID Control, Edition 3/2003
SIMATIC Standard PID Control, Getting Started, Edition 3/2003
SIMATIC Standard Software for S7-300 and S7-400 PID Control User Manual
SIMATIC PID Temperature Control Manual, Edition 12/2003
Hardware and Software Considerations
Step 7 V5.4 SP2
Modular PID V5.0 Control Tool and Control FB
Standard PID V5.1 Control Tool and Control FB
PID Blocks
Copyright 2007 by SIEMENS page 22 / 23
SIMATIC customers have free use of the application tips. These tips are only a general approach to using SIMATIC with various applications. Your
specific application may be different. It is your responsibility to use SIMATIC properly in your applications.
PID Blocks
General Notes
Siemens reserves the right to make changes in specifications shown herein or make
improvements at any time without notice or obligation. It does not relieve the user of
responsibility to use sound practices in application, installation, operation, and maintenance of
the equipment purchased. Should a conflict arise between the general information contained in
this publication, the contents of drawings or supplementary material, or both, the latter shall
take precedence.
Siemens is not liable, for whatever legal reason, for damages or personal injury resulting from
the use of the FAQ and application tips.
All rights reserved. Any form of duplication or distribution, including excerpts, is only permitted
with express authorization by SIEMENS.
PID Blocks
Copyright 2007 by SIEMENS page 23 / 23
SIMATIC customers have free use of the application tips. These tips are only a general approach to using SIMATIC with various applications. Your
specific application may be different. It is your responsibility to use SIMATIC properly in your applications.