The source and target field must not overlap.
If the specified target field is larger than the source field, only the amount
of data located in the source field will be copied into the target field.
However, if the size of the specified target field is less than the size of the
source field, then only the amount of data that will fit into the target field
will be copied.
If the data type of the ANY-pointer (source or target) is BOOL, then the
specified length must be divisible by 8, otherwise the SFC will not be exe-
cuted.
If the data type of the ANY-pointer is STRING the specified length must
be 1.
Value Description
0000h no error
8091h The source area is located in a data block that is not relevant to execution.
14.1.57 SFC 101 - RTM - Handling Runtime meters
Call SFC 101 RTM (runtime meter) to set, start, stop and read a 32-bit runtime meter of
your CPU. To fetch the values of all 32-bit runtime meters of your CPU, call SFC 51
RDSYSST with SZL_ID=W#16#0132 and INDEX=W#16#000B (for runtime meters 0 …
7) or INDEX=W#16#000C (for runtime meters 8 … 15).
Parameter Deklaration Datentyp Speicherber-
eich
Beschreibung
NR INPUT BYTE I, Q, M, D, L,
constant
Number of the runtime meter
Numbering starts at 0. You will find the number of
runtime meters of your CPU in the technical spec-
ifications.
MODE INPUT BYTE I, Q, M, D, L,
constant
Job ID:
n 0: fetch (the status is then written to CQ and
the current value to CV). After the runtime
meter has reached (2E31) -1 hours, it stops at
the highest value that can be displayed and
outputs an "Overflow" error message.
n 1: start (at the last counter value)
n 2: stop
n 4: set (to the value specified in PV)
n 5: set (to the value specified in PV) and then
start
n 6: set (to the value specified in PV) and then
stop
PV INPUT DINT I, Q, M, D, L,
constant
New value for the runtime meter
RET_VAL (Return value)
Description
Parameters
VIPA SPEED7
Integrated Standard
System Functions > SFC 101 - RTM - Handling Runtime meters
HB00 | OPL_SP7 | Operation list | en | 18-30 721