Professional Documents
Culture Documents
overload using
"CPU_RT"
Siemens
SIMATIC PCS 7 V9.0 SP1 Industry
Online
https://support.industry.siemens.com/cs/ww/en/view/55692652 Support
Legal information
Legal information
Use of application examples
Application examples illustrate the solution of automation tasks through an interaction of several
components in the form of text, graphics and/or software modules. The application examples are
a free service by Siemens AG and/or a subsidiary of Siemens AG (“Siemens”). They are non-
binding and make no claim to completeness or functionality regarding configuration and
equipment. The application examples merely offer help with typical tasks; they do not constitute
customer-specific solutions. You yourself are responsible for the proper and safe operation of the
products in accordance with applicable regulations and must also check the function of the
respective application example and customize it for your system.
Siemens grants you the non-exclusive, non-sublicensable and non-transferable right to have the
application examples used by technically trained personnel. Any change to the application
examples is your responsibility. Sharing the application examples with third parties or copying the
application examples or excerpts thereof is permitted only in combination with your own products.
The application examples are not required to undergo the customary tests and quality inspections
of a chargeable product; they may have functional and performance defects as well as errors. It is
your responsibility to use them in such a manner that any malfunctions that may occur do not
result in property damage or injury to persons.
Disclaimer of liability
Siemens shall not assume any liability, for any legal reason whatsoever, including, without
limitation, liability for the usability, availability, completeness and freedom from defects of the
application examples as well as for related information, configuration and performance data and
any damage caused thereby. This shall not apply in cases of mandatory liability, for example
under the German Product Liability Act, or in cases of intent, gross negligence, or culpable loss of
life, bodily injury or damage to health, non-compliance with a guarantee, fraudulent
non-disclosure of a defect, or culpable breach of material contractual obligations. Claims for
damages arising from a breach of material contractual obligations shall however be limited to the
© Siemens AG 2019 All rights reserved
foreseeable damage typical of the type of agreement, unless liability arises from intent or gross
negligence or is based on loss of life, bodily injury or damage to health. The foregoing provisions
do not imply any change in the burden of proof to your detriment. You shall indemnify Siemens
against existing or future claims of third parties in this connection except where Siemens is
mandatorily liable.
By using the application examples you acknowledge that Siemens cannot be held liable for any
damage beyond the liability provisions described.
Other information
Siemens reserves the right to make changes to the application examples at any time without
notice. In case of discrepancies between the suggestions in the application examples and other
Siemens publications such as catalogs, the content of the other documentation shall have
precedence.
The Siemens terms of use (https://support.industry.siemens.com) shall also apply.
Security information
Siemens provides products and solutions with industrial security functions that support the secure
operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary
to implement – and continuously maintain – a holistic, state-of-the-art industrial security concept.
Siemens’ products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines
and networks. Such systems, machines and components should only be connected to an
enterprise network or the Internet if and to the extent such a connection is necessary and only
when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit
https://www.siemens.com/industrialsecurity.
Siemens’ products and solutions undergo continuous development to make them more secure.
Siemens strongly recommends that product updates are applied as soon as they are available
and that the latest product versions are used. Use of product versions that are no longer
supported, and failure to apply the latest updates may increase customer’s exposure to cyber
threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed
at: https://www.siemens.com/industrialsecurity.
CPU_RT
Entry ID: 55692652, V4.0, 05/2019 2
Table of contents
Table of contents
Legal information ......................................................................................................... 2
1 Introduction ........................................................................................................ 4
1.1 Overview............................................................................................... 4
1.2 Principle of operation............................................................................ 5
1.3 Components used ................................................................................ 8
2 Cycle Performance Analysis ............................................................................ 9
2.1 Presentation of cycle performance data ............................................... 9
2.2 Scenario 1: High controller cycle load (maintenance required) ......... 11
2.3 Scenario 2: OB Request error (maintenance request) ....................... 12
2.4 Scenario 3: Exceeding the maximum cycle time (maintenance
alarm) ................................................................................................. 13
3 Overload behavior ........................................................................................... 14
3.1 Parameterization of the overload behavior ........................................ 15
3.2 Signal behavior in case of overload ................................................... 17
3.3 Reset of emergency operation in case of controller overload ............ 17
4 Summary .......................................................................................................... 19
5 Appendix .......................................................................................................... 20
5.1 Service and support ........................................................................... 20
© Siemens AG 2019 All rights reserved
CPU_RT
Entry ID: 55692652, V4.0, 05/2019 3
1 Introduction
1 Introduction
1.1 Overview
The controller of an automation system has two primary tasks. On the one hand,
the process is automated by the controller, on the other hand, the controller must
evaluate and forward all operations and displays.
All tasks are processed sequentially (one after the other) in the controller. The
cycle time represents the time that the operating system needs to execute a
program, that is, one OB 1 cycle, including all program sections and system
activities interrupting this cycle. In order to ensure an appropriate processing time,
the SIMATIC series controllers have a maximum basic cycle (OB1) monitoring time
of 6 seconds. This results in a time limitation of the applications in addition to the
memory. If the so-called cycle control point is not reached within 6 seconds, OB 80
(time error) is called and a system message is sent. If the cycle control point is
reached after a further 6 seconds, the controller stops without the "CPU_RT" block.
For process automation, SIMATIC PCS 7 offers the possibility of reacting to
temporary and permanent cycle overloads by controlled, automatic load shedding.
This functionality is realized by the function block "CPU_RT" and is available from
version 7.0 of PCS 7.
By means of the function block "CPU_RT", the necessary relief measures in case
of cycle overload of a PCS 7 controller are carried out automatically. The
"CPU_RT" block combines the following functions:
© Siemens AG 2019 All rights reserved
CPU_RT
Entry ID: 55692652, V4.0, 05/2019 4
1 Introduction
Note The CFC plan "@CPU_RT" is a system plan. These must not be deleted.
© Siemens AG 2019 All rights reserved
Note The "CPU_RT" block is placed in the system plans by the PCS 7 module driver
wizard. As of PCS 7 V7.0 in conjunction with PCS 7 Library, Basis Library or
Advanced Process Library as of V7.0, all controllers have the new overload
behavior.
When migrating an older project without using new functions, the "CPU_RT" will
not be installed automatically.
Note Further information about the function of the block "CPU_RT" can be found in the
manual PCS 7 Basis Library (V9.0) SP1 under the following link
https://support.industry.siemens.com/cs/ww/en/view/109754974.
CPU_RT
Entry ID: 55692652, V4.0, 05/2019 5
1 Introduction
Applications
The following application cases were considered with the block "CPU_RT":
• Applications with little time reserve have the highest risk of overload. Systems
with high time load can go into overload quickly through a defective
component. A typical case for this is a defective measuring line that produces a
flutter alarm. The "CPU_RT" block enables you to determine the overall
runtime (with interruptions by higher-priority process levels) through OBs
during commissioning and in normal operation, apart from the net runtime of
the organization block (OB). Early load relief of time-critical OBs represents a
good protection against controller overload.
• A further application case is the modification and extension of the user
program when the cycle load is already high. A change or extension of the user
program causes an overload of the controller after loading into the automation
system (AS). The "CPU_RT" block specifically reduces the cycle overload of
the controller. Process levels or OBs representing a very high load are
temporarily reduced (load shedding - emergency operation) until the temporary
load has diminished. This ensures the permanent operability of the system
even in case of overload. It is possible to undo changes during operation or to
restructure the user program accordingly, in order to return to normal
operation. An example of this is load reduction by moving program parts to
slower OBs.
• Adding communication connections lead to a controller overload under certain
circumstances. In this case, the module also enables the change to be
© Siemens AG 2019 All rights reserved
Requirement
A prerequisite for the automation solution is that SIMATIC PCS 7 is available in
version V7.0 or higher.
The function for determining the cycle performance data of the "CPU_RT" function
block requires a controller firmware revision level that supports the "SFC 78"
system function.
Controller Firmware versions
For Single Controller 5.0 or higher
For H-Controller 4.5 or higher
In addition to the "SFC 78" system function, the "Maintenance Station Standard"
option package is also required to fully utilize the new controller overload behavior
and cycle performance analysis.
CPU_RT
Entry ID: 55692652, V4.0, 05/2019 6
1 Introduction
Range of functions
Depending on which controller firmware of the controller is available and whether
you use the "Maintenance Station Standard" option package, a different range of
functions is available. The following three configurations are possible:
• Configuration 1
CPU with firmware that supports the system function "SFC 78" and existing
option package "Maintenance Station Standard".
• Configuration 2
CPU with firmware that does not support the system function "SFC 78" and
existing option package "Maintenance Station Standard".
• Configuration 3
Without existing option package "Maintenance Station Standard". In this case it
is irrelevant whether the CPU supports the system function "SFC 78" or not.
CFC
notifications Yes Yes* Yes*
* No operator message "Net time consumption of all OBs exceeds Max Limit"
because performance data is not calculated.
CPU_RT
Entry ID: 55692652, V4.0, 05/2019 7
1 Introduction
Note If the hardware is different, observe the minimum requirements for installing the
software components. The minimum requirements can be found in the PCS 7
Readme under the following link:
https://support.industry.siemens.com/cs/ww/en/view/109750097.
Component Note
55692652_CPU_RT_DOC_PCS7V90SP1_de.pdf This document
CPU_RT
Entry ID: 55692652, V4.0, 05/2019 8
2 Cycle Performance Analysis
Note The cycle performance analysis is only available for controllers with SFC 78.
https://support.industry.siemens.com/cs/ww/en/view/109759590.
• The option package "Maintenance Station Standard" is available.
• The CPU supports the system function "SFC 78".
Configuration
Via the asset block icon of the controller you can select the faceplate that
represents the total load of the controller.
1. Start OS runtime.
2. Open the faceplate of the respective CPU.
3. Click on the "Performance" (5) tab.
1 3 4
CPU_RT
Entry ID: 55692652, V4.0, 05/2019 9
2 Cycle Performance Analysis
Meaning
1. Parameterized limit value for the maximum utilization of the CPU
2. Bar chart for the current and average utilization of the CPU in %.
3. Bar chart for the gross and net running time of the OB in %.
4. Due to the CPU load the maximum cycle time of the OB was exceeded.
5. Register of the Performance View
The net runtime is the runtime needed to process the blocks placed in the OB3x if it
is not interrupted by higher-priority OBs.
The overall runtime is the runtime that was actually needed for processing the code
placed in OB3x, including the runtimes of higher-priority OBs.
The vertical bar shows the overall load of the controller in % and the sum of all net
runtimes (cycle times) of all OBs.
A detailed analysis can be found in the register "OB3X". There the determined
cycle times are displayed in the individual process task (OBs).
© Siemens AG 2019 All rights reserved
Note The overall utilization of a single controller after commissioning should not
exceed 75%, so 25 percent reserve is left for future program extensions or
additional communication jobs (message burst).
Example
The net runtime of the OB38 is 5ms. With a sampling time of OB 38 from 10ms, the
overall utilization rate is 50 percent. In this case the overall and net runtime are
identical for OB38, if it is not interrupted by higher-priority OBs
The net runtime of the OB35 is 45ms. With a sampling time of 100ms, the overall
utilization rate is 45 percent. The overall runtime is clearly higher than the net
runtime, the reason being that OB35 is interrupted by higher-priority OB38.
There is a risk of overload with an overall load of 95 percent. The overall runtime of
OB35 indicates that this OB is close to an OB request error. In case of additional
acyclic events or high communication load a controller, overload might occur in this
CPU_RT
Entry ID: 55692652, V4.0, 05/2019 10
2 Cycle Performance Analysis
described example. Due to the overall load and the overall runtime of OB35 the
program must be restructured.
Program extensions in OB35 or in faster OBs can lead to overload. In general, the
faster the sampling time of the used OB, the more the risk of an overload of the
cycle time increases. The consequence here would be that you move existing or
newly added program parts into slow OBs.
Conclusion
Typically the program logic and processing for slower process signals (e.g.
temperatures) is placed in the OB3x with 1 to 2 seconds call interval and more
dynamic process values (e.g. pressure) are processed in faster OBs. This
preventive measure is the decisive measure to avoid a cycle overload of the
controller.
Due to this preventive maintenance message, you should take measures to relieve
the cycle in the user program in order to avoid overloading the controller cycle.
Examples of this are adapting, splitting or transferring the user program.
If the "SFC 78" is not supported, the controllers do not report exceeding the net
time consumption.
CPU_RT
Entry ID: 55692652, V4.0, 05/2019 11
2 Cycle Performance Analysis
When there is no longer an overload situation, the maintenance status will be reset
and the process control message will be marked as "going out".
CPU_RT
Entry ID: 55692652, V4.0, 05/2019 12
2 Cycle Performance Analysis
NOTE The CPU 410-5H has a fixed cycle time monitoring of 6 seconds.
© Siemens AG 2019 All rights reserved
The possible causes for exceeding the cycle monitoring time are:
• High communication load
• Accumulation of alarm events
• Accumulation of acyclic error events (flutter alarms)
• Incorrect dimensioning of wake-up alarms when adding new program parts
CPU_RT
Entry ID: 55692652, V4.0, 05/2019 13
3 Overload behavior
3 Overload behavior
In case of a cycle overload the controller can prevent it from becoming inoperable
through controlled load shedding.
The load shedding takes place by means of the block "CPU_RT" and is achieved
by reduction of cyclic run levels. Load shedding represents an emergency mode,
the cause of which needs to be eliminated as soon as possible.
Emergency operation starts when the cycle monitoring time has been exceeded
twice. In this case, the cycle control point was not reached for at least 12 seconds
due to a temporary or permanent overload.
The control system message "Emergency operation, cyclic OBs are reduced" is
output with the standard priority "16". This means that this message is displayed in
the list of messages with the highest priority.
CPU_RT
Entry ID: 55692652, V4.0, 05/2019 14
3 Overload behavior
Configuration
To parameterize the overload behavior, proceed as follows:
1. Start OS runtime.
2. Open the diagnostic faceplate of the CPU.
3. Parameterize the desired overload behavior.
In the following figure OB 33 and OB 35 are excluded in the first escalation stage
and are not squared there.
© Siemens AG 2019 All rights reserved
Note If you do not have the option package "Maintenance Station Standard", you must
parameterize the overload behavior directly at the block "CPU_RT" in the CFC
plan "@CPU_RT". The block inputs "OB3x_ATTN" are available for this purpose.
CPU_RT
Entry ID: 55692652, V4.0, 05/2019 15
3 Overload behavior
The maximum number of reduction ratios can be set in the faceplate at the
parameter "Max. number of underruns STOP request" or at input "MAX_RTRG".
• MAX_RTRG=0
If MAX_RTRG = 0, the function "Stop avoidance on overload" is switched off,
the CPU immediately switches to the operating mode "Stop" if the overload
behavior occurs (as with SIMATIC PCS 7 versions smaller than V7.0).
© Siemens AG 2019 All rights reserved
• MAX_RTRG=1
Only the first stage of the new overload behavior is initiated.
If the load shedding through stage 1 is not sufficient, the controller switches to
STOP at "MAX_RTRG" = 1 after exceeding the cycle monitoring time (>18s)
three times and stage 2 is not initiated.
• MAX_RTRG = 2
After the cycle monitoring time (18s) has been exceeded three times, stage 2
is initiated. All OBs are squatted once. If this load shedding is also insufficient,
the controller switches to the STOP state after the cycle monitoring time (>24)
has been exceeded four times.
• MAX_RTRG = x
If you assign a value greater than "2" to the input, the cycle monitoring time can
be exceeded x times. The reduction factor is increased each time the value is
exceeded.
CPU_RT
Entry ID: 55692652, V4.0, 05/2019 16
3 Overload behavior
Note See section 2.2 "Scenario 1: High controller cycle load (maintenance required)".
overload
CPU with SFC 78
The emergency operation is automatically and slowly reduced if the overall load of
the CPU is less than the maximum overall load of the controller configured at the
parameter "Cancel reduction ratio for" or MAX_VAL (CPU_RT).
For this, the percentage overall load is calculated with a reduction factor minimized
by one. If the overall load calculated in this way for the parameterized number
(UndoCycle) of cycles of the slowest OB does not exceed the parameterized limit
value, the reduction factor is decremented by one. This happens until the used
cyclic OBs have reached reduction factor 1.
CPU_RT
Entry ID: 55692652, V4.0, 05/2019 17
3 Overload behavior
The reduction is then set to 0 for the OBs excluded by the user (OB3x_ATTN =
FALSE). Finally, the reduction ratios for all other cyclic OBs are set to 0.
Note In this case, the UndoCycle value should not be too small to avoid too frequent
oscillation between stop avoidance measures and normal operation.
CPU_RT
Entry ID: 55692652, V4.0, 05/2019 18
4 Summary
4 Summary
If you use the PCS 7 Library V7.0 or higher, the Basic Library or the Advanced
Process Library, the "CPU_RT" block is always installed by the module driver
wizard. The installation is independent of the use of the Maintenance Station and
the firmware of the controller.
After upgrading the driver modules from old projects to PCS 7 V7.0, there is a
changed behavior of the controller in case of stop avoiding by cycle overload.
In emergency operation of the controller the cyclic OBs are reduced. This behavior
has an effect on integral calculations, fast shutdown functions, or fast controls. In
case of overload the controller STOP or the controller emergency operation
(permanent operability) can be used.
Therefore, you can set the desired behavior in case of cycle overload via the
diagnosis faceplate of the CPU. If the option package "Maintenance Station
Standard" is not available, the settings can also be made at the CPU_RT" block.
Note The block "CPU_RT" can be deactivated by setting the parameter "MAX_RTRG"
to "0". In this case the CPU immediately switches to the operating mode "Stop" if
the overload behavior occurs (as with SIMATIC PCS 7 versions smaller than
V7.0).
Since an overload of the controller usually occurs due to incorrect project planning
© Siemens AG 2019 All rights reserved
CPU_RT
Entry ID: 55692652, V4.0, 05/2019 19
5 Appendix
5 Appendix
5.1 Service and support
Industry Online Support
Do you have any questions or need assistance?
Siemens Industry Online Support offers round the clock access to our entire
service and support know-how and portfolio.
The Industry Online Support is the central address for information about our
products, solutions and services.
Product information, manuals, downloads, FAQs, application examples and videos
– all information is accessible with just a few mouse clicks:
support.industry.siemens.com
Technical Support
The Technical Support of Siemens Industry provides you fast and competent
support regarding all technical queries with numerous tailor-made offers
– ranging from basic support to individual support contracts. Please send queries
to Technical Support via Web form:
www.siemens.com/industry/supportrequest
© Siemens AG 2019 All rights reserved
Service offer
Our range of services includes the following:
• Plant data services
• Spare parts services
• Repair services
• On-site and maintenance services
• Retrofitting and modernization services
• Service programs and contracts
You can find detailed information on our range of services in the service catalog
web page:
support.industry.siemens.com/cs/sc
CPU_RT
Entry ID: 55692652, V4.0, 05/2019 20
5 Appendix
CPU_RT
Entry ID: 55692652, V4.0, 05/2019 21