EasyManua.ls Logo

Siemens SIMATIC S7-1200 - Page 315

Siemens SIMATIC S7-1200
1614 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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
Parameter
Data type
Description
MEM
LReal
Starting poing of the runtime measurement
RET_VAL
LReal
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:
Network 1:
Network 2:
Network 3:

Table of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals