Technical data

Table Of Contents
SFCs for Handling Run-Time Meters
System Software for S7-300/400 System and Standard Functions - Volume 1/2
A5E00709327-01
6-5
6.4 Starting and Stopping a Run-time Meter with SFC 3
"CTRL_RTM"
Description
With SFC 3 "CTRL_RTM" (control runtime meter), you can start or stop a runtime
meter of the CPU.
Parameter Declaration Data Type Memory Area Description
NR INPUT BYTE I, Q, M, D, L,
constant
Input NR contains the number of the
runtime meter you want to start or stop
(possible values: 0 to 7).
S INPUT BOOL I, Q, M, D, L,
constant
Input S starts or stops the runtime meter.
Set the signal state to "0" when you want
to stop the counter. Set the signal state to
"1" when you want to start the counter.
RET_VAL OUTPUT INT I, Q, M, D, L If an error occurs while the function is
being executed, the return value contains
an error code.
Error Information
Error Code (W#16#...) Explanation
0000 No error
8080 Wrong number for the runtime meter
8xyy General error codes, see Evaluating Errors with Output Parameter
RET_VAL