
A5E33284667-AF Page 3
Contents of the comparison list
• Measuring program runtimes – see below.
• Load objects to the CPU: Which modifications and which modified blocks you load to the CPU in which operating
mode – next page.
• Overview, requirements, general conditions and legend for the comparison list (Page 7)
• Comparison list for S7-300, S7-400 (not H-Systems), S7-1200, S7-1500 including CPU 150xS Software
Controllers:
Which instructions and functions you can use for which controller family – as of Page 8.
• Instructions for SIMATIC Ident and SIMATIC Energy Suite – appendix.
Measuring program runtimes
The runtime of parts of the user program depends on many factors. A listing of runtimes of individual instructions in a table is
thus not possible.
The RUNTIME (runtime measuring) instruction is used to measure the runtime of the entire program, individual blocks or
command sequences. The runtime measurement begins with the first call of the RUNTIME instruction and ends with the
second call.
Use an OB priority >15 for runtime measurement. This ensures that "online monitoring" does not falsify the runtime. You can
find more detailed information in the SIMATIC STEP 7 online help. Enter "RUNTIME" in the search and select "S7-1200", "S7-
1500" or "S7-1500T" as validity identifier.
Programming examples in SCL:
"Common_Data".opt.Last_Cycle := RUNTIME(#Tag_Memory); //Start of the runtime measurement,
LReal
"speed test FB opt_DB"(ON_2:="i1",…);//Runtime measurement through RUNTIME
"Common_Data".opt.Last_Cycle := RUNTIME(#Tag_Memory); //End of the runtime measurement
The Last_Cycle tag contains the time that has passed from the preceding call to the current call of RUNTIME.