RET_VAL (Return value)
Value Description
0000h no error
8080h Incorrect number for the run-time meter
8081h A negative value was supplied to parameter PV.
14.1.5 SFC 3 - CTRL_RTM - Control run-time meter
The SFC 3 CTRL_RTM (control run-time meter) starts or stops the run-time meter
depending on the status of input S.
Parameter Declaration Data type Memory block Description
NR INPUT BYTE I, Q, M, D, L,
constant
Input NR contains the number of the run-time
meter that you wish to set.
Range: 0 ... 7
S INPUT BOOL I, Q, M, D, L,
constant
Input S starts or stops the run-time meter. Set
this signal to "0" to stop the run-time meter. Set
this signal to "1" to start the run-time meter.
RET_VAL OUTPUT INT I, Q, M, D, L The return value contains an error code if an
error is detected when the function is being
processed.
Value Description
0000h no error
8080h Incorrect number for the run-time meter
14.1.6 SFC 4 - READ_RTM - Read run-time meter
The SFC 4 READ_RTM (read run-time meter) reads the contents of the run-time meter.
The output data indicates the current run-time and the status of the meter ("stopped" or
"started").
When the run-time meter has been active for more than 32767 hours it will stop with this
value and return value RET_VAL indicates the error message "8081h: overflow".
Description
Parameters
RET_VAL (Return value)
Description
VIPA SPEED7
Integrated Standard
System Functions > SFC 4 - READ_RTM - Read run-time meter
HB00 | OPL_SP7 | Operation list | en | 18-30 647