Basic instructions
8.8 Program control operations
S7-1200 Programmable controller
System Manual, V4.2, 09/2016, A5E02486680-AK
315
The Measure program runtime" instruction uses an internal high-frequency counter to
calculate the time. If the counter overruns, the instruction returns values <= 0.0. Ignore these
runtime values.
Note
The CPU cannot exactly determine the runtime of a command sequence, because the
sequence of instructions within a command sequence changes during optimized compilation
of the program.
Table 8- 151 Data types for the parameters
Starting poing of the runtime measurement
Measured runtime in seconds
Example: RUNTIME instruction
The following example shows the use of the RUNTIME instruction to measure the execution
time of a function block: