Technical data

Parameters
ACCU-1-L
ACCU-1-L contains the function no.; it must have the following
structure:
Function no.,
permitted values: see table 6-6
Bit nos. 4 to 15 must always be 0!
Result
After OB 152 is called, the condition codes OS, OR and ERAB = 0’,
the RLO is also 0 except in the cases listed below. In addition to this,
the statistical values requested by some functions are transferred to
ACCU-1-L and ACCU-2-L with some functions (see table below).
Function Results of the functions
ACCU-1-
L
ACCU-2-
L
Significance
of "RLO = 1"
Disable cycle statistics Unchanged --
Read CURCYC / LASTCYC CURCYC LAST-CYC CURCYC is incorrect,
the data of the current
cycle are not used in the
statistics
1)
Read MINCYC / MAXCYC MINCYC MAXCYC --
Read AVERAGE VALUE / CYCLE
COUNTER
AVERAGE
VALUE
CYCLE
COUNTER
CYCLE COUNTER
overflow
2)
Initialize cycle statistics Unchanged --
Enable cycle statistics Unchanged --
1)
Due to starting/restarting the cycle monitoring time, cycle error or WARM RESTART
2)
If RLO = 1 is set when you read out the cycle counter, then when the condition code is transferred, a system
internal flag for cycle overflow is cleared. This flag is then only set again when the cycle counter overflows again.
15 0Bit no. 4 3
Function no.0
Table 6-7 Results of the OB 152 functions
6
OB 152: Cycle Statistics
CPU 928B Programming Guide
C79000-B8576-C898-01
6 - 43