Technical data

6.11 OB 152: Cycle Statistics
A series of statistical data relating to the duration of the cycle can be
recorded in the CPU 928B (cycle statistics). Using OB 152, you can
initialize the cycle statistics, read out the statistical data and enable
and disable the recording of statistical data.
Overview
The statistical data include the following:
the duration of the previous cycle,
the time elapsed in the currently active cycle since the last cycle
boundary,
the minimum and maximum cycle time since the last initialization
of the cycle statistics,
the number of cycles since the last initialization of the cycle
statistics,
the average cycle time: a maximum of the last 256 cycles recorded
in the statistics are used to calculate the average value.
Note
Only "normal" cycles are recorded in the cycle statistics. If the
recording of the duration of the current cycle would falsify the
cycle statistics, e.g. by retriggering or restarting the cycle
monitoring time, these data are
not included in the statistics. This
means that "mavericks" do not affect the statistics.
This does, however, have the effect that if the cycle monitoring
time is repeatedly restarted, then only a few or even no data will
be recorded for the statistics (please see in this context the Notes
at the end of Section 6.11 "Falsifying the statistical data").
Enabling/disabling the
statistics function
Following a COLD RESTART (automatic or manual), the statistics
function is
always disabled and the statistical data are deleted (the
cycle statistics are initialized). A WARM RESTART (automatic or
manual) does not affect the statistics function or the statistical data.
You can activate the statistics function in the RESTART or RUN
modes using OB 152.
OB 152: Cycle Statistics
CPU 928B Programming Guide
6 - 40 C79000-B8576-C898-01