Technical data

Table Of Contents
SFCs for Handling Run-Time Meters
System Software for S7-300/400 System and Standard Functions - Volume 1/2
6-4
A5E00709327-01
6.3 Setting the Runtime Meter with SFC 2 "SET_RTM"
Description
With SFC 2 "SET_RTM" (set runtime meter), you set a runtime meter of the CPU to
a selected value. The number of runtime meters you can set depends on the
particular CPU you are using.
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 set (possible
values: 0 to 7).
PV INPUT INT I, Q, M, D, L,
constant
Input PV contains the setting for the
runtime meter (default).
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
8081 A negative value was transferred to the PV parameter.
8xyy General error codes, see Evaluating Errors with Output Parameter
RET_VAL