Technical data

Table Of Contents
SFCs for Diagnostics
System Software for S7-300/400 System and Standard Functions - Volume 1/2
13-14
A5E00709327-01
13.5 Determining the OB Program Runtime with SFC 78
"OB_RT"
Description
With SFC 78 ”OB_RT” you can determine the run times for individual OBs over
different time periods.
Note
SFC 78 returns the last recorded time values for the required OB, regardless of
whether or not this OB is currently being loaded. SFC 78 data are not deleted or
overwritten but are rather reset only after a restart (warm start).
Parameters
Parameter Declaration Data type Memory area Meaning
OB_NR INPUT INT I, Q, M, D, L OB whose last evaluated times are to
be queried. Valid numbers are all those
in the OB configuration of your CPU,
except for OB 121 and OB 122.
Synchronous error processing time is
included in the time required for
processing the OB that has caused the
error. The declaration of OBs 121 and
122, or of OBs not configured in the
CPU, will result in an error message.
When OB_NR=0, data of the OB that
has called the SFC will be transferred.
When SFC 78 is called in OB 121 or OB
122 and OB_NR=0, all time data of the
interrupt triggering OB are output,
including the time data in OB 12x.
RET_VAL OUTPUT INT I, Q, M, D, L If an error occurs while processing this
function, the return value contains an
error code. Otherwise, RET_VAL
contains the OB number for which these
data were requested.
PRIO OUTPUT INT I, Q, M, D, L The priority class of the queried OB is
output in PRIO