Technical data

Possible errors
An error occurs if an incorrect function no. is transferred to
ACCU-1-L (only the numbers 0 to 3, 8 and 15 are permissible).
In the event of an error,
OB 31 (other runtime errors) is called. If
OB 31 is not loaded, the CPU goes to the stop mode.
In both cases, the error ID
1A4EH is entered in ACCU-1-L and
0001H is entered in ACCU-2-L.
Special Features
This section explains several special features of OB 152 during a
COLD RESTART, following a RESTART or when certain events
occur and you should take note of these points if you want to use
OB 152.
Reaction to a COLD
RESTART
The statistical data are initialized during a COLD RESTART. Calling
OB 152 in the first cycle following COLD RESTART reestablishes
the initialization data.
The following table shows how the statistical data are
initialized following a COLD RESTART
and
modified during the first three cycles by the system program.
CURCYC
1)
--- ---
CURCYC
(1.)
---
CURCYC
(2.)
--- CURCYC
(3.)
LASTCYC 0 0 0
Cycle time
(1.)
Cycle time
(1.)
Cycle time
(2.)
Cycle time
(2.)
MINCYC 13 000 13 000 13 000
Cycle time
(1.)
Cycle time
(1.)
min. c.t. min. c.t.
MAXCYC 0 0 0
Cycle time
(1.)
Cycle time
(1.)
max. c.t.
max. c.t.
AVERAGE 0 0 0
Cycle time
(1.)
Cycle time
(1.)
aver. c.t.
aver. c.t.
CYCLE C.0001122
1)
The value for CURCYC is always read out via OB 152, the cycle monitoring timer. For this reason, it is already
available during the first cycle.
COLD
RESTART
Initialization of
stat. data by
system program
OB 20
OB 152:
"stat. on."
1st cycle
Update
stat. data
by system
2nd cycle
Update
stat. data
by system
program
3rd cycle
OB 152:
"read stat."
OB 152:
"read stat."
OB 152:
"read stat."
OB 152: Cycle Statistics
CPU 928B Programming Guide
6 - 44 C79000-B8576-C898-01