indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING
indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION
indicates that minor personal injury can result if proper precautions are not taken.
NOTICE
indicates that property damage can result if proper precautions are not taken.
Qualified Personnel
personnel qualified
Proper use of Siemens products
WARNING
Siemens products may only be used for the applications described in the catalog and in the relevant technical
maintenance are required to ensure that the products operate safely and without any problems. The permissible
ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
Disclaimer of Liability
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent
damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert
symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are
graded according to the degree of danger.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will
be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to
property damage.
The product/system described in this documentation may be operated only by
task in accordance with the relevant documentation, in particular its warning notices and safety instructions.
Qualified personnel are those who, based on their training and experience, are capable of identifying risks and
avoiding potential hazards when working with these products/systems.
Note the following:
documentation. If products and components from other manufacturers are used, these must be recommended
or approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication
may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
We have reviewed the contents of this publication to ensure consistency with the hardware and software
described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the
information in this publication is reviewed regularly and any necessary corrections are included in subsequent
editions.
for the specific
03/2017 Subject to change
Preface
Purpose of the documentation
Basic knowledge required
Validity of the documentation
Conventions
Note
The notes contain important information on the product described in the d
the handling of the product or on part of the documentation to which particular attention
should be paid.
Additional assistance
This documentation will support you in configuring and programming control tasks with the
S7-1200 and S7-1500 automation systems.
The following knowledge is required in order to understand the documentation:
● General knowledge of automation technology
● Knowledge of the industrial automation system SIMATIC
● Experience of working with STEP 7 (TIA Portal)
This documentation applies to the use of SW controllers on the CPUs of automation systems
S7-1200 and S7-1500 together with STEP 7 (TIA Portal). Additional SW controllers that are
not covered in this documentation are available for the use of S7-300 and S7-400 with
STEP 7 (TIA Portal). Section Overview of software controller (Page 38) gives a complete
overview of all SW controllers in STEP 7 (TIA Portal) and their possible applications.
Please observe notes marked as follows:
● Information on the offers of our Technical Support are available in the appendix Service &
Support (Page 523).
● The range of technical documentation for the individual SIMATIC products and
automation systems is available on the Internet
(http://www.siemens.com/simatic-tech-doku-portal).
ocumentation, on
● The online catalog and the ordering system are available on the Internet
(http://mall.automation.siemens.com).
2 Principles for control.............................................................................................................................. 16
3 Configuring a software controller ........................................................................................................... 38
2.1 Controlled system and actuators ............................................................................................ 16
2.2 Controlled systems ................................................................................................................. 18
2.3 Characteristic values of the control section ............................................................................ 20
3.10.5.2 Filtering the parameter table ................................................................................................... 58
3.10.5.3 Sorting the parameter table .................................................................................................... 59
3.10.5.4 Transferring parameter data to other editors .......................................................................... 59
PID control
Function Manual, 03/2017, A5E35300227-AC
5
Table of contents
4 Using PID_Compact .............................................................................................................................. 72
5 Using PID_3Step ................................................................................................................................. 115
A Service & Support ............................................................................................................................... 523
PID control
Function Manual, 03/2017, A5E35300227-AC
11
1
Basic information
Device information
The documentation for the SIMATIC S7-1500 automation system, for CPU 1516pro-2 PN
based on SIMATIC S7-1500, and for the distributed I/O systems SIMATIC ET 200MP,
ET 200SP and ET 200AL is divided into three areas.
This division allows you easier access to the specific information you require.
System manuals and Getting Started manuals describe in detail the configuration,
installation, wiring and commissioning of the SIMATIC S7-1500, ET 200MP, ET 200SP and
ET 200AL systems; use the corresponding operating instructions for CPU 1516pro-2 PN.
The STEP 7 online help supports you in configuration and programming.
Product manuals contain a compact description of the module-specific information, such as
properties, terminal diagrams, characteristics and technical specifications.
PID control
12Function Manual, 03/2017, A5E35300227-AC
Documentation guide
General information
Manual Collections
"mySupport"
"mySupport" - Documentation
The function manuals contain detailed descriptions on general topics such as diagnostics,
communication, Motion Control, Web server, OPC UA.
You can download the documentation free of charge from the Internet
(http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manual-
overview/Pages/Default.aspx).
Changes and additions to the manuals are documented in product information sheets.
You will find the product information on the Internet:
● ET 200SP (https://support.industry.siemens.com/cs/ww/en/view/84133942)
● ET 200AL (https://support.industry.siemens.com/cs/ww/en/view/95242965)
With "mySupport", your personal workspace, you make the best out of your Industry Online
Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your
personal library in the Documentation area. In addition, your data is already filled out in
support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).
In the Documentation area in "mySupport" you can combine entire manuals or only parts of
these to your own manual.
You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet
(http://support.industry.siemens.com/My/ww/en/documentation).
PID control
Function Manual, 03/2017, A5E35300227-AC
13
Documentation guide
"mySupport" - CAx data
Application examples
TIA Selection Tool
SIMATIC Automation Tool
In the CAx data area in "mySupport", you can access the current product data for your CAx
or CAe system.
You configure your own download package with a few clicks.
You can find "mySupport" - CAx data on the Internet
(http://support.industry.siemens.com/my/ww/en/CAxOnline).
The application examples support you with various tools and examples for solving your
automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products.
You will find the application examples on the Internet
(https://support.industry.siemens.com/sc/ww/en/sc/2054).
With the TIA Selection Tool, you can select, configure and order devices for Totally
Integrated Automation (TIA).
This tool is the successor of the SIMATIC Selection Tool and combines the known
configurators for automation technology into one tool.
With the TIA Selection Tool, you can generate a complete order list from your product
selection or product configuration.
You can find the TIA Selection Tool on the Internet
(http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).
You can use the SIMATIC Automation Tool to run commissioning and maintenance activities
simultaneously on different SIMATIC S7 stations as a bulk operation, independently of the
TIA Portal.
The SIMATIC automation tool provides a variety of functions:
● Scanning of a PROFINET/Ethernet plant network and identification of all connected CPUs
● Address assignment (IP, subnet, gateway) and station name (PROFINET device) to a
CPU
● Transfer of the date and programming device/PC time converted to UTC time to the
module
● Program download to CPU
PID control
14Function Manual, 03/2017, A5E35300227-AC
Documentation guide
PRONETA
● Operating mode switchover RUN/STOP
● CPU localization by means of LED flashing
● Reading out CPU error information
● Reading of CPU diagnostic buffer
● Reset to factory settings
● Updating the firmware of the CPU and connected modules
You can find the SIMATIC Automation Tool on the Internet
(https://support.industry.siemens.com/cs/ww/en/view/98161300).
With SIEMENS PRONETA (PROFINET network analysis), you analyze the plant network
during commissioning. PRONETA features two core functions:
● The topology overview independently scans PROFINET and all connected components.
● The IO check is a fast test of the wiring and the module configuration of a plant.
You can find SIEMENS PRONETA on the Internet
(https://support.industry.siemens.com/cs/ww/en/view/67460624).
PID control
Function Manual, 03/2017, A5E35300227-AC
Room temperature control by means of a heating system is a simple example of a controlled
system. A sensor measures the room temperature and transfers the value to a controller.
The controller compares the current room temperature with a setpoint and calculates an
output value (manipulated variable) for heating control.
A properly set PID controller reaches this setpoint as quickly as possible and then holds it a
constant value. After a change in the output value, the process value often changes only with
a time delay. The controller has to compensate for this response.
The actuator is an element of the controlled system and is influenced by the controller. Its
function modifies mass and energy flows.
The table below provides an overview of actuator applications.
Flow of electrical power
PID control
16Function Manual, 03/2017, A5E35300227-AC
Principles for control
2.1 Controlled system and actuators
Actuators are distinguished as follows:
● Proportional actuators with constant actuating signal
These elements set degrees of opening, angular positions or positions in proportion to
the output value. The output value has an analog effect on the process within the control
range.
Actuators in this group include spring-loaded pneumatic drives, as well as motorized
drives with position feedback for which a position control system is formed.
An continuous controller, such as PID_Compact, generates the output value.
● Proportional actuators with pulse-width modulated signal
These actuators are used to generate the output of pulses with a length proportional to
the output value within the sampling time intervals. The actuator - e.g. a heating resistor
or cooling apparatus - is switched on in isochronous mode for durations that differ
depending on the output value.
The actuating signal can assume unipolar "On" or "Off" states, or represent bipolar states
such as "open/close", "forward/backward", "accelerate/brake".
The output value is generated by a two-step controller such as PID_Compact with pulsewidth modulation.
● Actuators with integral action and three-step actuating signal
Actuators are frequently operated by motors with an on period that is proportional to the
actuator travel of the choke element. This includes elements such as valves, shutters,
and gate valves. In spite of their different design, all of these actuators follow the effect of
an integral action at the input of the controlled system.
A step controller, such as PID_3Step. generates the output value.
PID control
Function Manual, 03/2017, A5E35300227-AC
17
Principles for control
2.2
Controlled systems
Controlled system types
Self-regulating controlled systems
Proportional-action controlled systems
PT1 controlled systems
2.2 Controlled systems
The properties of a controlled system can hardly be influenced as these are determined by
the technical requirements of the process and machinery. Acceptable control results can
only be achieved by selecting a suitable controller type for the specific controlled system and
adapting the controller to the time response of the controlled system. Therefore, it is is
indispensable for the configuration of the proportional, integral and derivative actions of the
controller to have precise knowledge of the type and parameters of the controlled system.
Controlled systems are classified based on their time response to step changes of the output
value.
We distinguish between the following controlled systems:
● Self-regulating controlled systems
– Proportional-action controlled systems
– PT1 controlled systems
– PT2 controlled systems
● Non-self-regulating controlled systems
● Controlled systems with and without dead time
In proportional-action controlled systems, the process value follows the output value almost
immediately. The ratio between the process value and output value is defined by the
proportional Gain of the controlled system.
Examples:
● Gate valve in a piping system
● Voltage dividers
● Step-down function in hydraulic systems
In a PT1 controlled system, the process value initially changes in proportion to the change of
the output value. The rate of change of the process value is reduced as a function of the time
until the end value is reached, i.e., it is delayed.
Examples:
● Spring damping system
● Charge of RC elements
● Water container that is heated with steam.
The time constants are often identical for heating and cooling processes, or for charging and
discharge characteristics. With different time constants, controlling is clearly more complex.
PID control
18Function Manual, 03/2017, A5E35300227-AC
Principles for control
PT2 controlled systems
Non-self-regulating controlled systems
Controlled systems with dead time
2.2 Controlled systems
In a PT2 controlled system, the process value does not immediately follow a step change of
the output value, i.e., it increases in proportion to the positive rate of rise and then
approaches the setpoint at a decreasing rate of rise. The controlled system shows a
proportional response characteristic with second order delay element.
Examples:
● Pressure control
● Flow rate control
● Temperature control
Non-self-regulating controlled systems have an integral response. The process value
approaches an infinite maximum value.
Example:
● Liquid flow into a container
A dead time always represents the runtime or transport time that has to expire before a
change to the system input can be measured at the system output.
In controlled systems with dead time, the process value change is delayed by the amount of
the dead time.
Example:
Conveyor
PID control
Function Manual, 03/2017, A5E35300227-AC
19
Principles for control
2.3
Characteristic values of the control section
Determining the time response from the step response
2.3 Characteristic values of the control section
Time response of the controlled system can be determined based on the time characteristic
of process value x following a step change of output value y. Most controlled systems are
self-regulating controlled systems.
The time response can be determined by approximation using the variables Delay time Tu,
Recovery time T
and Maximum value X
g
. The variables are determined by applying
max
tangents to the maximum value and the inflection point of the step response. In many
situations, it is not possible to record the response characteristic up to the maximum value
because the process value cannot exceed specific values. In this case, the rate of rise v
used to identify the controlled system (v
PID control
= Δx/Δt).
max
max
is
20Function Manual, 03/2017, A5E35300227-AC
Principles for control
Process type
Tu / Tg
Suitability of the controlled system for controlling
I
< 0,1
can be controlled well
III
> 0,3
difficult to control
Influence of the dead time on the controllability of a controlled system
Tt
Dead time
Tu
Delay time
Tg
Recovery time
y
Output value
x
Process value
2.3 Characteristic values of the control section
The controllability of the controlled system can be estimated based on the ratio Tu/Tg, or Tu ×
v
max/Xmax
II 0.1 to 0.3 can still be controlled
. Rule:
A controlled system with dead time and recovery reacts as follows to a jump of the output
value.
The controllability of a self-regulating controlled system with dead time is determined by the
ratio of T
T
t/Tg
PID control
Function Manual, 03/2017, A5E35300227-AC
to Tg. Tt must be small compared to Tg. Rule:
t
≤ 1
21
Principles for control
Response rate of controlled systems
Parameters of certain controlled systems
Physical
quantity
Controlled system
Delay time Tu
Recovery time Tg
Rate of rise v
max
Small electrically heated furnace
0.5 to 1 min
5 to 15 min
Up to 60 K/min.
Large gas-heated annealing furnace
0.2 to 5 min
3 to 60 min
1 to 30 K/min
Autoclaves (2.5 m3)
0.5 to 0.7 min
10 to 20 min
Not specified
High-pressure autoclaves
12 to 15 min
200 to 300 min
Not specified
Steam superheater
30 s to 2.5 min
1 to 4 min
2°C/s
Injection molding machines
0.5 to 3 min
3 to 30 min
5 to 20 K/min
Extruders
1 to 6 min
5 to 60 min
Packaging machines
0.5 to 4 min
3 to 40 min
2 to 35 K/min
Room heating
1 to 5 min
10 to 60 min
1° C/min
Pipeline with gas
0 to 5 s
0.2 to 10 s
Pipeline with liquid
None
None
Gas pipeline
None
0.1 s
Not relevant
Drum boiler with gas or oil firing
None
150 s
Not relevant
Drum boiler with impact grinding mills
1 to 2 min
2 to 5 min
Not relevant
Vessel level
Drum boiler
0.6 to 1 min
Not specified
0.1 to 0.3 cm/s
Small electric drive
None
0.2 to 10 s
Not relevant
Large electric drive
None
5 to 40 s
Not relevant
Steam turbine
None
Not specified
50 min–1
Small generators
None
1 to 5 s
Not relevant
Large generators
None
5 to 10 s
Not relevant
2.3 Characteristic values of the control section
Controlled systems can be judged on the basis of the following values:
T
< 0.5 min, Tg < 5 min = fast controlled system
u
T
> 0.5 min, Tg > 5 min = slow controlled system
u
Temperature
Large electrically heated annealing furnace
Distillation tower 1 to 7 min 40 to 60 min 0.1 to 0.5° C/s
1 to 5 min 10 to 20 min Up to 20 K/min.
Flow rate
Pressure
Speed
Voltage
Not relevant
PID control
22Function Manual, 03/2017, A5E35300227-AC
Principles for control
2.4
Pulse controller
Two-step controllers without feedback
①
ON
②
OFF
Yh
Control range
w
Setpoint
2.4 Pulse controller
Two-step controllers have the state "ON" and "OFF" as the switching function. This
corresponds to 100% or 0% output. This behavior generates a sustained oscillation of
process value x around setpoint w.
The amplitude and duration of the oscillation increase in proportion to the ratio between the
delay time T
mainly for simple temperature control systems (such as electrically directly heated furnaces)
or as limit-value signaling units.
The following diagram shows the characteristic of a two-step controller
and recovery time Tg of the controlled system. These controllers are used
u
PID control
Function Manual, 03/2017, A5E35300227-AC
23
Principles for control
①
Response characteristic without controller
②
Response characteristic with two-step controller
Tu
Delay time
Tg
Recovery time
XSd
Switching difference
2.4 Pulse controller
The following diagram shows the control function of a two-step controller
PID control
24Function Manual, 03/2017, A5E35300227-AC
Principles for control
Two-step controllers with feedback
2.4 Pulse controller
The behavior of two-step controllers in the case of controlled systems with larger delay
times, such as furnaces where the functional space is separated from the heating, can be
improved by the use of electronic feedback.
The feedback is used to increase the switching frequency of the controller, which reduces
the amplitude of the process value. In addition, the control-action results can be improved
substantially in dynamic operation. The limit for the switching frequency is set by the output
level. It should not exceed 1 to 5 switches per minute at mechanical actuators, such as
relays and contactors. In the case of voltage and current outputs with downstream thyristor
or Triac controllers high switching frequencies can be selected that exceed the limit
frequency of the controlled system by far.
Since the switching pulses can no longer be determined at the output of the controlled
system, results comparable with those of continuous controllers are obtained.
The output value is generated by pulse-width modulation of the output value of a continuous
controller.
Two-step controllers with feedback are used for temperature control in furnaces, at
processing machines in the plastics, textile, paper, rubber and foodstuff industries as well as
for heating and cooling devices.
PID control
Function Manual, 03/2017, A5E35300227-AC
25
Principles for control
Three-step controllers
y22 = 100% cooling
x
Physical quantity of the process value, e.g., temperature in° C
w
Setpoint
xSh
Distance between Switching Point 1 and Switching Point 2
2.4 Pulse controller
Three-step controllers are used for heating / cooling. These controllers have two switching
points as their output. The control-action results are optimized through electronic feedback
structures. Fields of applications for such controllers are heating, low-temperature, climatic
chambers and tool heating units for plastic-processing machines.
The following diagram shows the characteristic of a three-step controller
The process value should follow a setpoint change as quickly as possible. The response to
setpoint changes is improved by minimizing fluctuation of the process value and the time
required to reach the new setpoint.
PID control
Function Manual, 03/2017, A5E35300227-AC
27
Principles for control
Response to disturbances
x
Process value
①
2.6
Control Response at Different Feedback Structures
Control behavior of controllers
2.6 Control Response at Different Feedback Structures
The setpoint is influenced by disturbance variables. The controller has to eliminate the
resulting control deviations in the shortest time possible. The response to disturbances is
improved by minimizing fluctuation of the process value and the time required to reach the
new setpoint.
w Setpoint
Influencing a disturbance variable
Disturbance variables are corrected by a controller with integral action. A persistent
disturbance variable does not reduce control quality because the control deviation is
relatively constant. Dynamic disturbance variables have a more significant impact on control
quality because of control deviation fluctuation. The control deviation is eliminated again only
by means of the slow acting integral action.
A measurable disturbance variable can be included in the controlled system. This inclusion
would significantly accelerated the response of the controller.
A precise adaptation of the controller to the time response of the controlled system is
decisive for the controller's precise settling to the setpoint and optimum response to
disturbance variables.
The feedback circuit can have a proportional action (P), proportional-derivative action (PD),
proportional-integral action (PI), or proportional-integral-derivative action (PID).
If step functions are to be triggered by control deviations, the step responses of the
controllers differ depending on their type.
PID control
28Function Manual, 03/2017, A5E35300227-AC
Principles for control
Step response of a proportional action controller
①
Control deviation
②
Output value of a continuous controller
③
Output value of a pulse controller
Equation for proportional action controller
2.6 Control Response at Different Feedback Structures
Output value and control deviation are directly proportional, meaning:
Output value = proportional gain × control deviation
y = GAIN × x
PID control
Function Manual, 03/2017, A5E35300227-AC
29
Principles for control
Step response of a PD-action controller
①
Control deviation
②
Output value of a continuous controller
③
Output value of a pulse controller
TM_LAG
Delay of the Derivative action
2.6 Control Response at Different Feedback Structures
PID control
30Function Manual, 03/2017, A5E35300227-AC
Loading...
+ 497 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.