Technical data

If the statistics function is enabled with OB 152, the statistical data are
updated at each cycle boundary and you can read them out by calling
OB 152.
If you no longer require the statistics function, you can disable the
function in the RESTART or RUN modes, once again using OB 152.
This reduces the cycle time load caused by the updating of the cycle
data at each cycle boundary.
You can also initialize the cycle statistics using OB 152 in the
RESTART or RUN modes. It may, for example, be useful to initialize
the cycle statistics after evaluating the statistical data (possibly also
dependent on the value of the cycle counter).
Statistical data
The statistical data are read out directly as individual values using
OB 152 or calculated when OB 152 is called. They are transferred by
OB 152 to ACCU-1-L or ACCU-2-L.
You can determine the following statistical values by calling OB 152:
Statistical
value
Significance Format Unit Range of
values
LASTCYC Duration of the last completed cycle. Fixed
point
number
Milli-
seconds
0 to 13000
CURCYC Time already elapsed in the current cycle. Fixed
point
number
Milli-
seconds
0 to 13000
MINCYC Duration of the shortest cycle since the last
initialization of the cycle statistics.
Fixed
point
number
Milli-
seconds
0 to 13000
MAXCYC Duration of the longest cycle since the last
initialization of the cycle statistics.
Fixed
point
number
Milli-
seconds
0 to 13000
AVERAGE Average of the cycle times of the last
(maximum 256) cycles
1)
Fixed
point
number
Milli-
seconds
0 to 13000
CYCLE
COUNTER
Number of cycles recorded in the statistics
since the last initialization of the cycle statistics.
Hexa-
decimal
number
Number
of cycles
0 to
0FFFFH
1)
see "calculation of the average value"
Table 6-5 Cycle statistics variables - OB 152
6
OB 152: Cycle Statistics
CPU 928B Programming Guide
C79000-B8576-C898-01
6 - 41