s71500 Cycle and Reaction Times Function Manual en-US en-US
s71500 Cycle and Reaction Times Function Manual en-US en-US
Preface
Function manuals
Documentation Guide 1
Program execution 2
SIMATIC
Cyclic program execution 3
S7-1500, S7-1500R/H, ET 200SP,
ET 200pro Event-driven program
4
execution
Cycle and response times
Cycle and response times of
Function Manual
the S7-1500R/H redundant 5
system
11/2019
A5E03461504-AE
Legal information
Warning notice system
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.
DANGER
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.
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.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific
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.
Proper use of Siemens products
Note the following:
WARNING
Siemens products may only be used for the applications described in the catalog and in the relevant technical
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
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
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.
Disclaimer of Liability
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.
Conventions
STEP 7: In this documentation, "STEP 7" is used as a synonym for all versions of the
configuration and programming software "STEP 7 (TIA Portal)".
Note
A note contains important information on the product described in the documentation, on the
handling of the product or on the section of the documentation to which particular attention
should be paid.
What's new? What are the customer benefits? Where can I find information?
Changed Improved visualization of the The visualization of the current communi- • In section Extension of
contents communication load in the cation load and its effects on the cycle cycle time due to communi-
web server time helps you to find suitable values for cation load (Page 30)
the parameterization of the communication
load. • In the Web Server
(https://support.industry.sie
mens.com/cs/ww/en/view/5
9193560) function manual
What's new? What are the customer benefits? Where can I find information?
Changed Scope of the function man- The determination of the cycle and re- Section Cycle and response
contents ual expanded to include sponse times of the S7-1500R/H redun- times of the S7-1500R/H re-
CPUs of the S7-1500R/H dant system follows the same principle as dundant system (Page 56)
redundant system for the CPUs of the S7-1500 automation
system.
What's new? What are the customer benefits? Where can I find information?
Changed Scope of the function man- Functions that you will be familiar with Starting from section Program
contents ual expanded to include the from the SIMATIC S7-1500 CPUs are execution (Page 10)
CPUs of the ET 200SP implemented in CPUs in other designs
distributed I/O system and (ET 200SP) and in the CPU 1516pro-2 PN
CPU 1516pro-2 PN of the (degree of protection IP 65, IP 66 and
ET 200pro distributed I/O IP 67).
system
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 customers' exposure
to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security
RSS Feed visit (https://www.siemens.com/industrialsecurity).
Industry Mall
The Industry Mall is the catalog and order system of Siemens AG for automation and drive
solutions on the basis of Totally Integrated Automation (TIA) and Totally Integrated Power
(TIP).
You can find catalogs for all automation and drive products on the Internet
(https://mall.industry.siemens.com).
Preface ...................................................................................................................................................... 3
1 Function manuals Documentation Guide ................................................................................................... 8
2 Program execution................................................................................................................................... 10
2.1 Principle of operation ..............................................................................................................10
2.2 Overload behavior...................................................................................................................12
3 Cyclic program execution ........................................................................................................................ 17
3.1 Cycle .......................................................................................................................................18
3.2 Cycle time ...............................................................................................................................20
3.2.1 Different cycle times................................................................................................................20
3.2.2 Influences on the cycle time ...................................................................................................24
3.2.2.1 Update time for process image partitions ...............................................................................24
3.2.2.2 User program execution time ..................................................................................................26
3.2.2.3 Extension of cycle time due to communication load ...............................................................30
3.2.2.4 Special consideration when PROFINET IO communication is configured on the 2nd
PROFINET interface (X2) .......................................................................................................42
3.3 Time-driven program execution in cyclic interrupts ................................................................44
3.4 Response time for cyclic and time-driven program execution ................................................46
3.5 Summary of response time with cyclic and time-controlled program execution .....................51
4 Event-driven program execution .............................................................................................................. 52
4.1 Response time of the CPUs when program execution is event-controlled ............................52
4.2 Process response time when program execution is event-driven ..........................................54
5 Cycle and response times of the S7-1500R/H redundant system ............................................................ 56
5.1 Introduction .............................................................................................................................56
5.2 Maximum cycle time and time errors ......................................................................................57
5.3 Influences on the cycle time of the S7-1500R/H redundant system.......................................59
5.3.1 Influences on the cycle time in RUN-Solo system state .........................................................59
5.3.2 Influences on the cycle time in SYNCUP system state ..........................................................59
5.3.3 Influences on the cycle time in RUN-Redundant system state ..............................................63
5.3.4 Influences on the cycle time when a CPU fails .......................................................................66
5.4 Response time of R/H CPUs ..................................................................................................69
5.5 Timetables for the RUN-Redundant system state ..................................................................72
Glossary .................................................................................................................................................. 75
Index ........................................................................................................................................................ 81
Basic information
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.
Device information
Product manuals contain a compact description of the module-specific information, such as
properties, terminal diagrams, characteristics and technical specifications.
General information
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
(https://support.industry.siemens.com/cs/ww/en/view/109742705).
Changes and additions to the manuals are documented in product information sheets.
You will find the product information on the Internet:
● S7-1500/ET 200MP (https://support.industry.siemens.com/cs/us/en/view/68052815)
● ET 200SP (https://support.industry.siemens.com/cs/us/en/view/73021864)
● ET 200AL (https://support.industry.siemens.com/cs/us/en/view/99494757)
Manual Collections
The Manual Collections contain the complete documentation of the systems put together in
one file.
You will find the Manual Collections on the Internet:
● S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/86140384)
● ET 200SP (https://support.industry.siemens.com/cs/ww/en/view/84133942)
● ET 200AL (https://support.industry.siemens.com/cs/ww/en/view/95242965)
"mySupport"
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).
Application examples
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).
Program organization
You can choose from the following types of program execution for running your user
program:
Program execution in the cyclic program of the CPU:
The CPU executes the user program cyclically. When the execution has reached the end of
a cycle, the program execution starts again in the next cycle. In the simplest case, you
execute the entire user program in the cyclic program of the CPU. All tasks in the user
program are then processed with equal rank. This also results in the same response times
for all tasks.
In addition to program execution in the cyclic program, there is time-driven and event-driven
program execution.
Time-driven execution:
In a complex user program, there are frequently portions with different response time
requirements. You can optimize the response times by taking advantage of these differences
in the requirements. To do so, you can break down the program parts with higher response
time requirements into higher-priority OBs with shorter cycles, for example cyclic interrupt
OBs.
The execution of these parts can thus occur at different frequencies and with different
priorities.
Event-driven execution:
Depending on the I/O modules used, you can configure hardware interrupts for specific
process events (such as an edge change of a digital input) that result in the call of the
assigned hardware interrupt OB. The hardware interrupts have a higher priority and interrupt
the cyclic program of the CPU. You can achieve very short response times in the CPU with
hardware interrupts by directly triggering program execution.
Keep in mind that the time characteristics of your application becomes less predictable with
intense use of hardware interrupts. The reason for this is that the time at which the triggering
events occur can result in drastically different response times.
Tip: Use hardware interrupts only for a few selected events.
Special consideration for hardware interrupts: If you have assigned an OB to an event
(hardware interrupt), the OB then has the priority of the event.
Note
Higher priority OBs
Communication functionality is strongly influenced by too many and/or runtime-intensive OBs
with a priority > 15.
When using OBs with a priority ≥ 15, you should therefore consider the runtime load that
they cause.
Reference
You can find additional information on the subject of "priorities" in the "Events and OBs"
section of the following manuals:
● S7-1500 automation system
(https://support.industry.siemens.com/cs/ww/en/view/59191792) system manual
● S7-1500R/H redundant system
(https://support.industry.siemens.com/cs/ww/en/view/109754833) system manual
● ET 200SP distributed I/O system
(https://support.industry.siemens.com/cs/ww/en/view/58649293) system manual
● Operating instructions CPU 1513pro-2 PN
(https://support.industry.siemens.com/cs/ww/en/view/109769507) and
CPU 1516pro-2 PN (https://support.industry.siemens.com/cs/ww/en/view/109482416)
You can find additional information on organization blocks and their priorities for Motion
Control on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109751049).
Events to be queued
The OB parameter "Events to be queued" is used to specify how many similar events the
operating system places in the associated queue and therefore post-processes. If this
parameter has the value 1, for example, exactly one event is stored temporarily.
If the maximum number of similar start events is reached in the queue, each additional start
event is only counted and subsequently discarded. During the next scheduled processing of
the event, the CPU provides the number of discarded start events in the "Event_Count" input
parameter (in the start information). You can then react appropriately to the overload
situation. The CPU then resets the counter for lost events to zero.
Note
Post-processing of cyclic events is often not desirable, as this can lead to an overload with
OBs of the same or lower priority. Therefore, it is generally advantageous to discard similar
events and to react to the overload situation during the next scheduled OB processing. A low
value of the "Events to be queued" parameter mitigates an overload situation.
To ensure that the CPU processes the OB of at least one queued event, the minimum
number of events to be queued is "1". The maximum number of events that can be queued
is "12".
Example 1
The following example shows the response of the CPU when multiple similar events occur
faster than the CPU can process the associated OBs. In example 1, the user selected the
following parameter assignment:
The figure below shows the processing sequence as soon as an event calls an associated
OB.
As soon as an occurring event calls an OB, the event occupies a slot of the OB. The
occupied slot is free again as soon as the CPU has processed the event. If the CPU has not
completed processing the OB of an occurring event, additional occurring events each occupy
an additional slot of the OB during this time. As soon as this number exceeds the configured
number of events to be queued, these events are discarded and counted by the overflow
counter. When an OB which takes a long time to run is completed, the CPU creates an entry
in the diagnostic buffer and sets the overflow counter to zero (①). After the CPU has
processed this long-running OP, the CPU then processes the OBs of the events that are
queued one after the other. At the next new occurring event, the CPU writes the previous
value of the reset overflow counter to the start information of the OB. The CPU then
processes the OB (②).
Example 2
In example 2, the user has selected the following parameter assignment:
Contrary to example 1, the CPU in example 2 requests a time error as soon as the
configured event threshold has been exceeded. An additional time error can then only occur
if all slots of the OB have been free once in the meantime.
Restrictions
With the S7-1500R/H redundant system, there are restrictions compared to the S7-1500
automation system. The S7-1500R/H redundant system does not support all hardware
properties and firmware functions of the S7-1500 automation system (for example, it does
not support PROFIBUS DP, central I/O, web server, etc.).
The restrictions are described in the S7-1500R/H redundant system
(https://support.industry.siemens.com/cs/ww/en/view/109754833) system manual.
3.1 Cycle
Definition of cycle
A cycle includes the following sections:
● Automatic update of process image partition 0 of the outputs (PIPQ 0)
● Automatic update of process image partition 0 of the inputs (PIPI 0)
● Execution of the cyclic program
The process image partition 0 is automatically updated in the cycle. You assign the
I/O addresses to these process image partitions (PIPI 0/PIPQ 0) when you configure the
I/O modules via the "Automatic update" setting (default).
The figure below illustrates the phases that are passed through during a cycle. In the
example below the user has configured a minimum cycle time. Updating of the process
image partitions and processing of the cyclic program is completed before the end of the
configured minimum cycle time. Therefore, the CPU waits until the configured minimum
cycle time has expired before the next program cycle starts.
① Cycle control point at which the operating system starts measurement of the cycle time.
② The CPU writes the states from the process image output to the output modules.
③ The CPU reads the status of the inputs at the input modules and writes the input data to the
process image input.
④ The CPU processes the user program and executes the instructions specified in the program.
⑤ Wait phase until end of configured minimum cycle time
Introduction
The cycle time (Tcyc) is not the same in each cycle because the processing times may vary.
Causes of this include:
● For example, different program runtimes:
– Program loops
– Conditional commands
– Conditional block calls
– Different program paths
● Lengthening due to interruptions, for example:
– Time-driven interrupt processing
– Event-driven interrupt processing
– Communication
Note
Showing the cycle time statistics on the display and Web server
With the S7-1500 CPUs, you also have the option of calling the cycle time statistics via the
display of the CPU. As of firmware version 2.0 of the CPUs, the cycle time statistics are also
displayed in the Web server.
To view the cycle time statistics directly in STEP 7, follow these steps:
1. Establish an online connection to the CPU with STEP 7.
2. Select the "Online tools" task card.
Result: The diagram of the cycle time statistics is displayed in the cycle time section.
The following figure shows an extract from STEP 7 with the cycle time statistics. In this
example, the cycle time fluctuates between 7 ms and 12 ms. The current cycle time is
10 ms. The maximum cycle time that can be set in this example is 40 ms.
You can find additional information on the runtime characteristics of the CPU with the
"RT_INFO" instruction in the user program. The instruction includes information about:
● The utilization of the CPU by the user program and communication in percentage
● The runtimes of the individual OBs
Reference
Additional information on the "RT_INFO" instruction is available in the STEP 7 online help.
Table 3- 2 Data for estimating the typical update time of the process image partitions
* Additional information about cycle and response times of R/H CPUs is available in the section "Cycle and response times
of the S7-1500R/H redundant system"
Note
Update time of the backplane bus for ET 200SP CPUs
For the update time of the ET 200SP CPUs, observe also the information in table "Update
time of the ET 200SP CPUs" of the section Response time for cyclic and time-driven
program execution (Page 46).
Introduction
Organization blocks or system activities with higher priority interrupt organization blocks or
system activities with lower priority, and thus extend their runtime.
S7-1500
1511(F)- 1512C- 1513(F)- 1515(F)- 1516(F)- 1517(F)- 1518(F)-
1 PN 1 PN 1 PN 2 PN 3 PN/DP 3 PN/DP 4 PN/DP
1511T(F)- 1515T(F)- 1516T(F)- 1517T(F)- 1518(F)-
1 PN 2 PN 3 PN/DP 3 PN/DP 4 PN/DP
1511C-1 PN MFP
Bit operations, 60 ns 48 ns 40 ns 30 ns 10 ns 2 ns 1 ns
typ.
Word operations, 72 ns 58 ns 48 ns 36 ns 12 ns 3 ns 2 ns
typ.
Fixed-point arith- 96 ns 77 ns 64 ns 48 ns 16 ns 3 ns 2 ns
metic, typ.
Floating-point 384 ns 307 ns 256 ns 192 ns 64 ns 12 ns 6 ns
arithmetic, typ.
* Additional information about cycle and response times of R/H CPUs is available in the section "Cycle and response times
of the S7-1500R/H redundant system"
ET 200SP
1510SP(F)-1 PN 1512SP(F)-1 PN 1515SP(F)-PC
Bit operations, 72 ns 48 ns 30 ns
typ.
Word operations, 86 ns 58 ns 36 ns
typ.
Fixed-point arith- 115 ns 77 ns 48 ns
metic, typ.
Floating-point 461 ns 307 ns 192 ns
arithmetic, typ.
ET 200pro
1513pro(F)-2 PN 1516pro(F)-2 PN
Bit operations, typ. 40 ns 10 ns
Word operations, typ. 48 ns 12 ns
Fixed-point arithmetic, typ. 64 ns 16 ns
Floating-point arithmetic, typ. 256 ns 64 ns
Note
Instruction "RUNTIME"
Please note that the times specified in the tables are typical values. There can therefore be
user programs that deviate from the specified typical values.
Make sure to check the runtime of critical program sequences beforehand with the
"RUNTIME" instruction.
S7-1500
1511(F)-1 PN 1515(F)-2 PN 1517(F)-3 PN/DP 1518(F)-4 PN/DP
1511T(F)-1 PN 1515T(F)-2 PN 1517T(F)-3 PN/DP 1518(F)-4 PN/DP MFP
1511C-1 PN 1516(F)-3 PN/DP
1512C-1 PN 1516T(F)-3 PN/DP
1513(F)-1 PN
Hardware interrupt 90 μs 80 μs 20 μs 12 μs
Time-of-day interrupt 90 μs 80 μs 20 μs 12 μs
Time-delay interrupt 90 μs 80 μs 20 μs 12 μs
Cyclic interrupt 90 μs 80 μs 20 μs 12 μs
* Additional information about cycle and response times of R/H CPUs is available in the section "Cycle and response times
of the S7-1500R/H redundant system"
ET 200SP
1510SP(F)-1 PN 1512SP(F)-1 PN 1515SP(F)-PC
Hardware interrupt 90 μs 90 μs 80 μs
Time-of-day interrupt 90 μs 90 μs 80 μs
Time-delay interrupt 90 μs 90 μs 80 μs
Cyclic interrupt 90 μs 90 μs 80 μs
ET 200pro
1513pro(F)-2 PN 1516pro(F)-2 PN
Hardware interrupt 90 μs 80 μs
Time-of-day interrupt 90 μs 80 μs
Time-delay interrupt 90 μs 80 μs
Cyclic interrupt 90 μs 80 μs
S7-1500
1511(F)-1 PN 1515(F)-2 PN 1517(F)-3 PN/DP 1518(F)-4 PN/DP
1511T(F)-1 PN 1515T(F)-2 PN 1517T(F)-3 PN/DP 1518(F)-4 PN/DP MFP
1511C-1 PN 1516(F)-3 PN/DP
1512C-1 PN 1516T(F)-3 PN/DP
1513(F)-1 PN
Programming error 90 μs 80 μs 20 μs 12 μs
I/O access error 90 μs 80 μs 20 μs 12 μs
Time error 90 μs 80 μs 20 μs 12 μs
Diagnostic interrupt 90 μs 80 μs 20 μs 12 μs
Module fail- 90 μs 80 μs 20 μs 12 μs
ure/recovery
Station fail- 90 μs 80 μs 20 μs 12 μs
ure/recovery
* Additional information about cycle and response times of R/H CPUs is available in the section "Cycle and response times
of the S7-1500R/H redundant system"
ET 200SP
1510SP(F)-1 PN 1512SP(F)-1 PN 1515SP(F)-PC
Programming error 90 μs 90 μs 80 μs
I/O access error 90 μs 90 μs 80 μs
Time error 90 μs 90 μs 80 μs
Diagnostic interrupt 90 μs 90 μs 80 μs
Module fail- 90 μs 90 μs 80 μs
ure/recovery
Station fail- 90 μs 90 μs 80 μs
ure/recovery
CPU ET 200pro
1513pro(F)-2 PN 1516pro(F)-2 PN
Programming error 90 μs 80 μs
I/O access error 90 μs 80 μs
Time error 90 μs 80 μs
Diagnostic interrupt 90 μs 80 μs
Module failure/recovery 90 μs 80 μs
Station failure/recovery 90 μs 80 μs
Reference
You can find additional information on the topic of error handling in the Events and OBs
section of the
● S7-1500 automation system
(http://support.automation.siemens.com/WW/view/en/59191792) system manual
● S7-1500R/H redundant system
(https://support.industry.siemens.com/cs/ww/en/view/109754833) system manual
● ET 200SP distributed I/O system
(http://support.automation.siemens.com/WW/view/en/58649293) system manual
● In the CPU 1513pro-2 PN
(https://support.industry.siemens.com/cs/ww/en/view/109769507) and
CPU 1516pro-2 PN (https://support.industry.siemens.com/cs/ww/en/view/109482416)
operating instructions, each in the Events and OBs chapter
You can find additional information on the topic of the complete cycle time of a program in an
FAQ on the Internet (https://support.industry.siemens.com/cs/ww/en/view/87668055).
The following formula may be used to estimate the extension of the cycle time by
communication.
With a complete use of the communication load of 50% (default), the following value results:
The actual cycle time is up to twice as long as the cycle time without communication when
you use the default communication load.
① CPUs 1516T(F)-3 PN/DP, 1517(F)-3 PN/DP, CPU 1517T(F)-3 PN/DP, CPU 1518(F)-4 PN/DP,
1518(F)-4 PN/DP MFP: The (minimum) communication load that can be set is 5%.
Figure 3-7 Maximum cycle time depending on the configured communication load
Note
Checking parameter changes
• Check the effects of a value change on the "Cycle load due to communication" parameter
during system operation. You can use the "RT_INFO" instruction to determine which
portions of runtime are used for communication and the user program.
• Take the communication load into consideration when setting the maximum cycle time to
prevent time errors (for example, exceeding the cycle time within a cycle) from occurring.
Example 1
Example 1 shows an OB 1 with a runtime of 100 ms. The runtime of OB 1 is neither
interrupted by communication load nor by higher-priority OBs.
Example 2
Example 2 shows that the runtime of OB 1 increases by a factor of 2 to 200 ms with a
communication load of 50%.
Example 3
In example 3, OB 1 is interrupted every 20 ms by a cyclic higher-priority OB 30 (orange) with
a runtime of 5 ms. The cycle time is extended to 135 ms by the higher-priority OB.
Example 4
In example 4, OB 1 is also interrupted by an OB 30 with priority 13. In addition, OB 1 and
OB 30 are interrupted by communication tasks (priority 15). The cycle time increases to
400 ms.
Example 5
In example 5, OB 1 is also interrupted by an OB 30 with priority 17. In addition, OB 1 is
interrupted by communication tasks. Because the priority of OB 30 (priority 17) is higher than
the priority of the communication tasks (priority 15), the interrupt points differ from example
4. The communication tasks suppressed by OB 30 are made up for within specific limits.
Communication therefore completely suppresses the cyclic program within this time, 5 ms in
the example. The cycle time increases to 400 ms, just like in example 4.
The course of the two curves shows the extent to which the communication load and the
load from the higher-priority OBs influence the cycle time.
The longer the cycle time, the more the interruptions of OB 1 caused by higher-priority OBs
and communication increase.
If both the base load and the communication load are at 50%, no computing capacity
remains for the cyclic program and a time error occurs.
Note
Parameter assignment of the communication load
When the load in higher-priority OBs is high, reduce the configurable communication load.
Note
Parameter assignment of the communication load for the S7-1500R/H redundant system
Due to the synchronization of data between primary CPU and backup CPU, the S7-1500R/H
redundant system is subject to an additional synchronization load. Therefore, choose a lower
value for the communication load than for a non-redundant system.
Additional information on the particular features of the CPUs of the S7-1500R/H redundant
system is available in the section Cycle and response times of the S7-1500R/H redundant
system (Page 56).
Program/communication load
With the "Value refresh" function, you update the data displayed in the bar charts:
● At intervals of 1 second
● Automatic (as configured in STEP 7)
With the "Measurement" function, you can decide which measurement the bar charts
display. You can choose between:
● The current measurement
● The measurement of the longest cycle time
The legend of the program/communication load shows information on the following values,
highlighted in color:
● "Program load cyclic program OBs"
Required calculation time in percent within a cycle for program cycle OBs
● "Program load high-priority OBs"
Required calculation time in percent within a cycle for higher-priority OBs
● "Current communication load"
Required calculation time in percent for current communication tasks within a cycle
● "Maximum permissible communication load"
The configured maximum communication load as a percentage
● "No-load operation"
There is no program/communication load
Note
If you have configured a minimum cycle time, it can occur that no-load operation shows a
high percent value even though the value of the cycle time is also high.
The reason for this is that the loads are recorded as mathematical average of the last
second, but the cycle time relates to the last cycle.
If you click on a specific color, the selected color is highlighted in the chart. If you click on a
highlighted color, you remove the highlighting.
Example 1:
Figure 3-17 Cycle time < 70% of the maximum cycle time
Example 1 shows that the CPU can process the user program within the maximum cycle
time of 150 ms when the maximum communication load of 38% is reached. The predicted
cycle time is < 70% of the configured maximum cycle time.
Example 2:
In example 2, the CPU can also process the user program with maximum communication
load within the maximum cycle time. However, the predicted cycle time is already at 129 ms.
If the predicted cycle time is ≥ 70% of the maximum cycle time, the chart outputs a warning.
Example 3:
Example 3 shows that the CPU can no longer process the user program within the maximum
cycle time when the maximum communication load is reached. If the predicted cycle time is
longer than the maximum cycle time, the chart outputs an error message.
If it is predicted that the maximum cycle time will be exceeded, use the following controller in
order to reduce the maximum communication load.
Note
Setting the communication load
The controller predicts the effects of the changed communication load on the cycle time. You
configure the maximum communication load in STEP 7.
Note
For non-measurable fluctuations in the user program, e.g. for future changes in the user
program, plan a sufficiently low value for the maximum communication load.
Note
Due to the different calculation basis of cycle time and load, a steady state of the system is
the prerequisite for displaying reliable measured values.
Note
If you have selected the "Time" unit on the x-axis, all measured values that are more than
24 hours old are deleted automatically.
Cyclic interrupt
A cyclic interrupt is an interrupt initiated according to a defined cycle that causes a cyclic
interrupt OB to be processed. A cyclic interrupt OB is assigned to the "Cyclic interrupt" event
class.
S7-1500
1511(F)-1 PN 1515(F)-2 PN 1517(F)-3 PN/DP 1518(F)-4 PN/DP
1511T(F)-1 PN 1515T(F)-2 PN 1517T(F)-3 PN/DP 1518(F)-4 PN/DP MFP
1511C-1 PN 1516(F)-3 PN/DP
1512C-1 PN 1516T(F)-3 PN/DP
1513(F)-1 PN
Cyclic interrupt ±90 μs ±80 μs ±30 μs ±25 μs
* Additional information about cycle and response times of R/H CPUs is available in the section "Cycle and response times
of the S7-1500R/H redundant system"
ET 200SP
1510SP(F)-1 PN 1512SP(F)-1 PN 1515SP(F)-PC
Cyclic interrupt ±90 μs ±90 μs ±80 μs
ET 200pro
1513pro(F)-2 PN 1516pro(F)-2 PN
Cyclic interrupt ±90 μs ±80 μs
Note
Scope of validity
Please note that the accuracy data for the cyclic interrupt also applies to all other higher-
priority execution levels/OBs.
Note
With several cyclic interrupt OBs with identical parameterization, the processing sequence of
the cyclic interrupt OBs cannot be predicted.
If you want to ensure a defined execution sequence of cyclic interrupt OBs with the same
cycle time, configure a different phase offset in each case.
For information on how to assign parameters for cyclic interrupt OBs, refer to the STEP 7
online help.
Introduction
In this section you learn:
● How the response time is composed
● How to calculate the response time
Definition
The response time in the case of cyclic or time-controlled program execution is the time
between the detection of an input signal and the change of a connected output signal.
Factors
To determine the process response time, you must take account of the following factors in
addition to the CPU response time described above:
● Delay of the inputs and outputs at the I/O module
● Switching times of the sensors and actuators used
● Update times for PROFINET IO or DP cycle times on PROFIBUS DP; update time of the
backplane bus for ET 200SP CPUs
Note
Backplane bus of the S7-1500 CPUs
The update time of the backplane bus of the S7-1500 CPUs can be ignored here.
The table below is an orientation guide. It shows the approximate relationship between the
number of ET 200SP I/O modules and the bus cycle that is used. As an example, 8 bytes of
I/O data per I/O module are assumed in the table.
Number of ET 200SP I/O modules Input data (bytes) Output data (bytes) Used bus cycle (μs)
8 64 64 250
16 128 128 250
24 192 192 281.25
32 256 256 312.5
40 320 320 343.75
48 384 384 375
56 448 448 406.25
64 512 512 437.5
For I/O modules with more than 32 bytes of I/O data, the bus cycle is calculated with an I/O
module of 32 bytes. In this case the I/O module requires multiple bus cycles to update its I/O
data.
Reference
The following links provide additional information:
● Application example for determining the response time for PROFINET
(http://support.automation.siemens.com/WW/view/en/21869080)
● Transmission times and isochronous mode in function manual PROFINET with STEP 7
V15 (http://support.automation.siemens.com/WW/view/en/49948856); see also the
section "Tips on assembly"
● Transmission times and isochronous mode in function manual PROFIBUS with STEP 7
V15 (http://support.automation.siemens.com/WW/view/en/59193579); see also the
section "Network settings"
● Delays at the input or output of the modules can be found in the manual for the respective
device.
● Information on device-internal delays can be found in the manuals for the ET 200MP and
ET 200SP distributed I/O systems.
Introduction
Hardware interrupts are used to detect events in the process in the user program and to
react to them with an appropriate program. In STEP 7, the organization blocks OB 40 to
OB 47 are intended for processing hardware alarms. You can create additional hardware
interrupts starting with organization block OB 123. The number of available organization
blocks depends on the CPU used.
Hardware interrupt
A hardware interrupt is an interrupt that occurs during the running program execution, due to
an interrupt-triggering process event. The operating system calls the assigned interrupt OB;
as a result, the execution of the program cycle or of lower priority program parts is
interrupted. A hardware interrupt OB is assigned to the "Hardware interrupt" event class.
The following table contains the length of the typical response times of the CPUs for
hardware interrupts.
S7-1500
1511(F)-1 PN 1515(F)-2 PN 1517(F)-3 PN/DP 1518(F)-4 PN/DP
1511T(F)-1 PN 1515T(F)-2 PN 1517T(F)-3 PN/DP 1518(F)-4 PN/DP MFP
1511C-1 PN 1516(F)-3 PN/DP
1512C-1 PN 1516T(F)-3 PN/DP
1513(F)-1 PN
Interrupt re- Min. 100 μs 90 μs 30 μs 20 μs
sponse times Max. 400 μs 360 μs 120 μs 90 μs
* Additional information about cycle and response times of R/H CPUs is available in the section "Cycle and response times
of the S7-1500R/H redundant system"
ET 200SP
1510SP(F)-1 PN 1512SP(F)-1 PN 1515SP(F)-PC
Interrupt re- Min. 100 μs 100 μs 90 μs
sponse times Max. 400 μs 400 μs 360 μs
ET 200pro
1513pro(F)-2 PN 1516pro(F)-2 PN
Interrupt re- Min. 100 μs 90 μs
sponse times Max. 400 μs 360 μs
The following figure shows the individual execution steps for event-driven program
execution.
Note
Classification of this chapter
The statements in the previous chapters describe the response of an individual CPU.
The section "Cycle and response times of the S7-1500R/H redundant system" supplements
the information of the previous sections with information on the S7-1500R/H redundant
system.
Note
Maximum cycle time in SYNCUP system state
The length of the parameterized maximum cycle time also affects the SYNCUP system
state.
If the following condition is fulfilled during the SYNCUP, the system initiates a transition to
RUN-Redundant:
The actual cycle time is ≤ 80% of the maximum cycle time over several cycles.
More information on this is available in section Influences on the cycle time in SYNCUP
system state (Page 59).
Maximum cycle time in RUN-Redundant system state
On the failure of one of the two CPUs, the cycle time also contains a dead time of up to
300 ms for R-CPUs and up to 50 ms for the H-CPU. You must schedule this time as cycle
time reserve in case of failure of one of the two CPUs. Therefore, ensure that the longest
cycle time plus this dead time is < 60% of the configured maximum cycle time in RUN-
Redundant system state. By doing so, you prevent the parameterized maximum cycle time
from being exceeded in case of load fluctuations and delays due to synchronization.
Time error
As with non-redundant CPUs, you can specify the response to a time error for the CPUs of
the S7-1500R/H redundant system. In RUN-Solo system state, the redundant CPUs behave
like non-redundant CPUs when the maximum cycle time is exceeded (see section Cycle time
(Page 20)).
In the SYNCUP and RUN-Redundant system states the redundant CPUs behave as follows:
Table 5- 1 Response of the S7-1500R/H redundant system when cycle time is exceeded, without OB 80
System state 1st time cycle time is exceeded 2nd time cycle time is exceeded
Primary CPU Backup CPU Primary CPU Backup CPU
SYNCUP RUN 1) STOP 1) STOP STOP
RUN-Redundant RUN STOP STOP STOP
1) If the time error occurs before the time of creation of the snapshot of the work memory contents, for example during the
restart of the backup CPU, the primary CPU also goes into STOP mode and any running SYNCUP is aborted.
Table 5- 2 Response of S7-1500R/H redundant system when cycle time is exceeded with OB 80
System state 1st time cycle time is exceeded 2nd time cycle time is exceeded 3rd time cycle time is exceeded
Primary CPU Backup CPU Primary CPU Backup CPU Primary CPU Backup CPU
SYNCUP RUN-Syncup 1) SYNCUP 1) RUN STOP STOP STOP
RUN- RUN- RUN- RUN STOP STOP STOP
Redundant Redundant Redundant
1) If the time error occurs before the time of creation of the snapshot of the work memory contents, for example during the
restart of the backup CPU, the primary CPU also goes into STOP mode and any running SYNCUP is aborted.
Note
System state change after STOP with OB 80
The primary CPU also switches to STOP after the maximum cycle time has been exceeded
three times in the same cycle.
Ensure that the actual maximum cycle time is < 60% of the parameterized maximum cycle
time.
Switchover of the backup CPU to STOP operating state when the maximum cycle time is
exceeded
A switchover of the backup CPU to STOP operating state reduces the synchronization load
and relieves the load on the primary CPU.
Figure 5-1 Effects of the SYNCUP on the cycle times of the CPUs
In SYNCUP system state, all relevant data is synchronized from the primary CPU to the
backup CPU. At the end of SYNCUP, the backup CPU makes up the time lag to the primary
CPU caused by the synchronization.
CAUTION
SYNCUP system state
• The synchronization of data, in particular the snapshot of the work memory contents,
extends the cycle time. In addition, most test and commissioning functions cannot be
executed during SYNCUP.
• During SYNCUP, hardware interrupts and diagnostic interrupts are processed with a
very significant delay.
• The cycle time increases greatly during the transition from SYNCUP system state to
RUN-Redundant.
Therefore, only execute the SYNCUP during uncritical process states.
Note
No switchover possible during SYNCUP
If a fault occurs in the primary CPU during SYNCUP, no switchover to the backup CPU is
possible. The SYNCUP is canceled and the backup CPU returns to STOP operating state.
Note
Determination of the cycle time during the SYNCUP
You can track the progress of the SYNCUP on the display of the primary CPU and backup
CPU. At each cycle control point the backup CPU sends a status message on its program
progress to the primary CPU. The display of the primary CPU indicates the duration of the
time lag of the backup CPU.
In addition to viewing the progress in the displays, the progress of the SYNCUP can also be
read out using the "RT_INFO" instruction.
Disable SYNCUP
To avoid the described effects of the SYNCUP on the cycle times during critical process
states, use the instruction "RH_CTRL".
The "RH_CTRL" instruction can be used to disable the SYNCUP system state for the
S7-1500R/H redundant system. If the disable is no longer required, the "RH_CTRL"
instruction can be used to enable the SYNCUP system state once again.
More information on the "RH_CTRL" instruction is available in the system manual
S7-1500R/H redundant system
(https://support.industry.siemens.com/cs/ww/en/view/109754833).
Note
Too low cycle times
Cycle times that are too low can result in an excessive synchronization load and thus
terminate the SYNCUP.
Note
An increased synchronization load occurs in the SYNCUP system state. Because this
synchronization load places a load on the cycle in addition to the communication, it is
recommended to reduce the communication load to ≤ 30%.
① Cycle time
② Cycle of the backup CPU
③ Time lag
④ Cycle end and start of the next cycle (cycle control point)
Figure 5-2 Cycle time without interruption of the cyclic program
The cycle time ① includes the cycle of the backup CPU ② and the time lag ③ of the
backup CPU compared to the primary CPU. The time lag results from the time required for
the synchronization of the data between primary CPU and backup CPU. The synchronization
between primary CPU and backup CPU occurs automatically if required. The more data has
to be synchronized between the CPUs during a cycle, the greater the time lag. The program
cycle ends as soon as the backup CPU has reached the end of its cyclic program. The
primary CPU starts the next cycle as soon as the backup CPU reports the cycle end to the
primary CPU ④.
① Cycle time
② Cycle of the backup CPU
③ Time lag
④ Cycle end and start of the next cycle (cycle control point)
Figure 5-3 Processing of a higher-priority OB
Execution of the cyclic program (CP with priority 1) is complete. While the primary CPU waits
for the end of the cycle of the backup CPU, a higher priority OB (OB 30 with priority 7) starts.
The primary CPU starts the next cycle as soon as the following conditions have been
fulfilled:
● The primary CPU has received the message from the backup CPU that the backup CPU
has finished processing the cyclic program.
● The primary CPU has processed OB 30 and updated PIPQ1.
Note
Due to the change of the run level and the synchronization, interruptions of the program
cycle by higher-priority OBs result in a higher load. Interruptions of the program cycle extend
the cycle time.
S7-1500R S7-1500H
CPU 1513R-1 PN CPU 1515R-2 PN CPU 1517H-3 PN
Performance • Data transfer rate of 100 Mbps (for synchronization • Significantly greater performance than
and communication) S7-1500R due to
• Data work memory: max. • Data work memory: – Separate redundancy connections
over fiber-optic cables
1.5 MB max. 3 MB
– Greater computing power
• Code work memory: • Code work memory:
max. 300 KB max. 500 KB • Transmission rate of 1 Gbps (for the
synchronization)
• Data work memory: max. 8 MB
• Code work memory: max. 2 MB
S7-1500R S7-1500H
CPU 1513R-1 PN CPU 1515R-2 PN CPU 1517H-3 PN
Hardware • The CPUs are identical in design with the respective • The CPUs each have two optical inter-
S7-1500 standard versions. faces.
• The synchronization of the CPUs takes place over the • The synchronization of the CPUs
PROFINET ring. operates independently of the
• The H-Sync-Forwarding function is recommended for PROFINET ring over fiber-optic ca-
all devices in the PROFINET ring. bles.
• Part of the bandwidth on the PROFINET cable is • The full bandwidth on the PROFINET
used to synchronize the CPUs. Less bandwidth is cable is available for PROFINET IO
therefore available for PROFINET IO communication. communication.
Technical specifications
More information about the technical specifications is available in the manuals of the specific
CPUs.
Note
Dead time in case of a CPU failure
On the failure of a CPU, the cycle time also contains a dead time of up to 300 ms for
R-CPUs and up to 50 ms for the H-CPU. You must schedule this time as cycle time reserve
for a CPU failure.
To avoid excessive cycle times after a CPU failure, further increase the maximum cycle time
by this value.
Note
Change of the system state from RUN-Redundant to Run-Solo by the user
If you deliberately trigger a change of the system state, e.g. by switching the backup CPU to
STOP via the display, this will also extend the cycle time. However, the cycle time will not
increase to the same extent as with switchover of the CPUs in the event of an error (failure
of one of the CPUs).
Information on the causes for the failure of a CPU is available in the S7-1500R/H redundant
system (https://support.industry.siemens.com/cs/ww/en/view/109754833) system manual.
① Cycle time
② Failure of the primary CPU
③ Backup CPU continues processing the program
④ Backup CPU no longer receives synchronization telegrams
⑤ Backup CPU waits for the monitoring time to expire
⑥ End of the monitoring time, switchover time and system state transition
⑦ Cycle time of the new primary CPU in RUN operating state
Figure 5-4 Impact of the failure of the primary CPU on the cycle time
The example shows the failure of the primary CPU ② while it is processing the cyclic
program. The primary CPU no longer sends any synchronization telegrams to the backup
CPU. During the period ③, the backup CPU continues operating only on the basis of the
synchronization data transferred before the failure of the primary CPU. At ④, the backup
CPU has reached the point in the program where the primary CPU stopped sending
synchronization telegrams. During the phase ⑤, the backup CPU waits to see whether data
will again be sent from the primary CPU after all. Because no synchronization data is
transferred until the monitoring time has expired, the backup CPU becomes the new primary
CPU at point ⑥. The redundant system switches from RUN-Redundant system state to
RUN-Solo system state.
The cycle time ① extends from the time processing of the cyclic program is started in RUN-
Redundant to the time when processing of the cyclic program ends in RUN-Solo.
Because data can no longer be synchronized in the RUN-Solo system state, the cycle
time ⑦ is shorter than the cycle time ①.
Note
Monitoring time
The monitoring time is an internal time with fixed duration. You cannot assign parameters for
the internal time. The monitoring time starts as soon as the synchronization data arrives at
the backup CPU. If no synchronization data is received from the primary CPU, the system
automatically performs a system state change after the monitoring time has expired.
① Cycle time
② Failure of the backup CPU
③ Expiration of the monitoring time
④ System status transition
⑤ Cycle time of the primary CPU in RUN-Solo operating state
Figure 5-5 Impact of the failure of the backup CPU on the cycle time
The backup CPU fails before processing of the cyclic program has ended ②. The primary
CPU detects the failure of the backup CPU because no synchronization data has been
received until the monitoring time ③ has expired. The primary CPU terminates the
synchronization with the backup CPU. The redundant system switches from RUN-
Redundant system state to RUN-Solo system state ④.
Because no more data can be synchronized in RUN operating state, the cycle time ⑤ is
shorter than the cycle time ①.
In the figure below, the process image has already been updated by the time of the signal
change. It therefore takes one cycle until the system detects the change and sets the input in
the process image. The output signal is changed after an additional cycle.
The cycle times include the time lag. The time lag of the backup CPU to the primary CPU
depends on the synchronization load. The synchronization load results from the data to be
synchronized in the user program and in the communication.
Note
Effect of the time lag
The synchronization and transfer of the changes requires computing time. The time lag
therefore affects both CPUs (from the primary CPU to the backup CPU and from the backup
CPU to the primary CPU). The slower the CPU and the slower and longer the
synchronization connection, the greater the time lag.
Note
Response time when downloading a modified user program into the R/H CPUs in the
RUN-Redundant system state
During the download process in the RUN-Redundant system state, the response time of the
system is restricted compared with the normal redundant mode. The more changes the user
program contains, the higher the impact on the response time.
Advantages
The fact that the cycle time includes the time lag of the backup CPU to the primary CPU
offers the following advantages:
● By monitoring the cycle time in STEP 7, in the HMI or in the user program after SYNCUP,
it is possible to determine the cycle time in the event of a failure of the primary CPU.
● During commissioning it is not necessary to perform complicated tests to determine
whether the required response time can still be complied with if a CPU fails.
● During commissioning and ongoing operation you can estimate whether your automation
task can meet the response times required for the process.
The same functions as those for the non-redundant CPUs are available for determining the
cycle and response times:
Display of measurements (traces) which record special Function manual Using the trace and logic analyzer functions
time-critical signal characteristics (http://support.automation.siemens.com/WW/view/en/64897128)
Reading out the progress of the SYNCUP system state S7-1500R/H redundant system
using the display of the CPU (https://support.industry.siemens.com/cs/ww/en/view/109754833)
system manual
Table 5- 5 Data for estimating the typical update time of the process image partitions
A table of the update times of the CPUs in the RUN-Solo system state is available in section
Update time for process image partitions (Page 24).
A table of the program execution times of the CPUs in the RUN-Solo system state is
available in section User program execution time (Page 26).
Basic time expenditure of the CPUs for an interrupt in the RUN-Redundant system state
CPU 1513R-1 PN CPU 1515R-2 PN CPU 1517H-3 PN
Hardware interrupt 560 μs 430 μs 70 μs
Time-of-day interrupt 560 μs 430 μs 70 μs
Time-delay interrupt 560 μs 430 μs 70 μs
Cyclic interrupt 560 μs 430 μs 70 μs
A table of the time expenditure of the CPUs for an interrupt in the RUN-Solo system state is
available in section User program execution time (Page 26).
Basic time expenditure of the CPUs for an error OB in the RUN-Redundant system state
CPU 1513R-1 PN CPU 1515R-2 PN CPU 1517H-3 PN
Programming error 560 μs 430 μs 70 μs
I/O access error 560 μs 430 μs 70 μs
Time error 560 μs 430 μs 70 μs
Diagnostic interrupt 560 μs 430 μs 70 μs
Module fail- 560 μs 430 μs 70 μs
ure/recovery
Station fail- 560 μs 430 μs 70 μs
ure/recovery
A table with the basic time expenditure of the CPUs for an error OB in the RUN-Solo system
state is available in section User program execution time (Page 26).
A table with the accuracy of cyclic interrupts of the CPUs in the RUN-Solo system state is
available in section Time-driven program execution in cyclic interrupts (Page 44).
Note
Scope of validity
Please note that the accuracy data for the cyclic interrupt also applies to all other higher-
priority execution levels/OBs.
Interrupt response times of the CPUs for hardware interrupts in the RUN-Redundant system
state
CPU 1513R-1 PN CPU 1515R-2 PN CPU 1517H-3 PN
Interrupt re- Min. 180 μs 150 μs 40 μs
sponse times Max. 1420 μs 1360 μs 470 μs
A table of the interrupt response times of the CPUs in the RUN-Solo system state is
available in section Response time of the CPUs when program execution is event-controlled
(Page 52).
Backup CPU
Role of a CPU in the S7-1500R/H redundant system. If the R/H system is in RUN-Redundant
system state, the primary CPU guides the process. The backup CPU processes the user
program synchronously and can take over the process management if the primary CPU fails.
Cycle time
The cycle time represents the time a CPU requires to process the user program once.
Data block
Data blocks (DBs) are data areas in the user program that contain user data. The following
data blocks exist:
● Global data blocks which you can access from all code blocks.
● Instance data blocks that are assigned to a specific FB call.
Diagnostic interrupt
See "Interrupt, diagnostic"
Diagnostics
Monitoring functions include:
● The detection, localization and classification of errors, faults and alarms.
● Displaying and further evaluation of errors, faults and alarms.
They run automatically during plant operation. This increases the availability of systems by
reducing commissioning times and downtimes.
Diagnostics buffer
The diagnostics buffer represents a backup memory in the CPU, used to store diagnostics
events in their order of occurrence.
H-Sync Forwarding
H-Sync forwarding enables a PROFINET device with MRP to forward synchronization data
(synchronization frames) only within the PROFINET ring.
In addition, H-Sync forwarding forwards the synchronization data even during re-
configuration of the PROFINET ring. H-Sync forwarding avoids a cycle time increase if the
PROFINET ring is interrupted.
S7-1500R: H-Sync forwarding is recommended for all PROFINET devices with only 2 ports
in the PROFINET ring. All PROFINET devices with more than 2 ports (e.g. switch) in the
PROFINET ring must support H-Sync forwarding.
S7-1500H: H-Sync Forwarding is not relevant for redundant S7-1500H systems.
I/O module
Device of the distributed I/O that is used as interface between the controller and the process.
Interrupt
The CPU's operating system distinguishes between various priority classes that control the
execution of the user program. These priority classes include interrupts, such as hardware
interrupts. When an interrupt occurs, the operating system automatically calls an assigned
organization block. The required response is programmed in the organization block (for
example, in an FB).
Interrupt, cyclic
The CPU generates a cyclic interrupt periodically within a parameterizable time grid and then
processes the corresponding organization block.
Interrupt, diagnostics
Diagnostics-capable modules signal detected system errors to the CPU using diagnostic
interrupts.
Interrupt, hardware
A hardware interrupt is triggered by interrupt-triggering modules due to a certain event in the
process. The hardware interrupt is reported to the CPU. The CPU then processes the
assigned organization block according to the priority of this interrupt.
Interrupt, time-delay
The time-delay interrupt is one of the program execution priority classes of SIMATIC S7. The
time-delay interrupt is generated after the expiration of a timer started in the user program.
The CPU then processes the corresponding organization block.
Interrupt, time-of-day
The time-of-day interrupt is one of the program execution priority classes of SIMATIC S7.
The time-of-day interrupt is generated depending on a specific date and time. The CPU then
processes the corresponding organization block.
IO controller
See "PROFINET IO controller"
IO device
See "PROFINET IO device"
Operating states
Operating states describe the behavior of a single CPU at a specific time.
The CPUs of the SIMATIC standard systems have the STOP, STARTUP and RUN operating
states.
The primary CPU of the redundant system S7-1500R/H has the operating states STOP,
STARTUP, RUN, RUN-Syncup and RUN-Redundant. The backup CPU has the operating
states STOP, SYNCUP and RUN-Redundant.
Organization block
Organization blocks (OBs) form the interface between the CPU operating system and the
user program. The organization blocks determine the order in which the user program is
executed.
Parameter
● Tag of a STEP 7 code block:
● Tag for setting the behavior of a module (one or more per module). In as-delivered state,
every module has an appropriate basic setting, which you can change by configuring in
STEP 7. There are static and dynamic parameters.
Parameters, dynamic
Dynamic parameters of modules can be changed during operation by calling an SFC in the
user program, for example, limit values of an analog input module.
Parameters, static
Static parameters of modules cannot be changed by the user program but only by the
configuration in STEP 7, e.g. input delay of a digital input module.
Primary CPU
If the R/H system is in RUN-Redundant system state, the primary CPU guides the process.
The backup CPU processes the user program synchronously and can take over the process
management if the primary CPU fails.
PROFINET
PROcess FIeld NETwork, open Industrial Ethernet standard which further develops
PROFIBUS and Industrial Ethernet. A cross-manufacturer communication, automation, and
engineering model defined by PROFIBUS International e.V. as an automation standard.
PROFINET IO
Communication concept for the realization of modular, distributed applications within the
scope of PROFINET.
PROFINET IO controller
Device used to address connected I/O devices (e.g. distributed I/O systems). The IO
controller exchanges input and output signals with assigned I/O devices. The IO controller
often corresponds to the CPU in which the automation program is running.
PROFINET IO device
Distributed field device that can be assigned to one or more IO controllers (e.g. distributed
I/O system, valve terminals, frequency converters, switches).
Redundancy connection
The redundancy connection in an S7-1500R system is the PROFINET ring with MRP. The
redundancy connection uses part of the bandwidth on the PROFINET cable to synchronize
the CPUs, which means the bandwidth is not available for PROFINET IO communication.
Contrary to S7-1500R, PROFINET ring and redundancy connection are separate in an
S7-1500H. The two redundancy connections are fiber-optic cables which directly connect the
CPUs to each other via synchronization modules. The bandwidth on the PROFINET cable is
available for PROFINET IO communication.
Redundant systems
Redundant systems are identified by the fact that important automation components are
available in multiple units (redundant). Process control is maintained if a redundant
component fails.
Retentivity
A memory area whose content is retained even after a power failure and after a transition
from STOP to RUN is retentive. The non-retentive bit memory area, timers and counters are
reset after a power failure and after a STOP-RUN transition.
System states
The system states of the S7-1500R/H redundant system result from the operating states of
the primary and backup CPU. The term system state is used as a simplified expression that
identifies the operating states of the two CPUs that occur at the same time. The S7-1500R/H
redundant system features the STOP, STARTUP, RUN-Solo, SYNCUP and RUN-
Redundant system states.
TIA Portal
Totally Integrated Automation Portal
The TIA Portal is the key to the full performance capability of Totally Integrated Automation.
The software optimizes all operating, machine and process sequences.
Timers
Timers are components of the CPU system memory. The operating system automatically
updates the content of the "timer cells" asynchronously to the user program. STEP 7
instructions define the precise function of the timer cell (e.g. on-delay) and trigger its
execution.
User program
In SIMATIC, a distinction is made between user programs and the firmware of the CPU.
The user program contains all instructions, declarations and data by which a system or
process can be controlled. The user program is assigned to a programmable module (for
example, CPU, FM) and can be structured in smaller units.
Firmware: see glossary entry "Firmware of the CPU"
C M
Cycle Maximum cycle time, 22, 31, 57
Definition, 18 Minimum cycle time, 19, 22, 62
Cycle control point, 19
Cycle time
Definition, 20 O
Different, 21
OB 80
Process image partition, 24
Time error OB, 22
Update, 24
Cycle time statistics, 23
P
D Parameter
Enable time error, 14
Dead time, 57, 66
Event threshold for time error, 14
Events to be queued, 13
Report event overflow into diagnostic buffer, 14
E
Process image partitions, 11
Execution Program execution, 10
Event-driven, 10 Program execution in the cyclic program, 10
Time-driven, 10 Program execution times
Without interruption, 26
Program execution times of R/H CPUs
F Without interruption, 72
Program organization, 10
FAQ
Total cycle time of a program, 30
R
H R/H CPUs
Interrupt response times, 74
Hardware interrupts, 10, 52
Response time
Definition, 46
Response time of CPU, 47
I
Fluctuation, 47
Instruction Response time of R/H CPUs
RE_TRIGR, 22 Fluctuation, 69
RT_Info, 23, 32, 42, 61, 71
RUNTIME, 27
Interrupt response times S
CPU, 52
Synchronization
R/H CPUs, 74
in RUN-Redundant system state, 63
Interruptibility, 11
in SYNCUP system state, 59
T
Time error OB
OB 80, 22, 57
Times
Basic expenditure for error OB, 29, 73
Basic expenditure for interrupts, 28, 73
Cyclic interrupts for S7-1500 CPUs, 45
Cyclic interrupts for S7-1500R/H-CPUs, 74
For one operation, 26, 29, 29, 29, 30, 73
U
Update times
Backplane bus ET 200SP CPUs, 49
PROFIBUS DP, 48
PROFINET IO, 48
S7-1500 CPUs, 24
S7-1500R/H-CPUs, 72