Cause of error
Organization
block called
Reaction of CPU
if OB is not
programmed
Table 5-7 continued:
Load and transfer error (TRAF)
OB 32
STOP
Collision of timed interrupts:
a) queue overflow (control bit WEFES)
b) timed interrupt clock was masked (ignored) for too long
(WEFEH)
OB 33
STOP
none
Error during STEP 5 operation "G DB/GX DX"
(control bit FEDBX)
OB 34
STOP
Error in self-test (refer to Section 5.7)
OB 36
none
1)
The CPU changes to the STOP mode only if the addressing error is not disabled by the STEP 5 operation "IAE".
Examples of reactions to
organization blocks which are
not loaded
a) No reaction; cyclic program processing is not interrupted.
If a timeout error occurs and neither OB 23 nor OB 25 is loaded, cyclic program processing is not
interrupted according to the table above. The CPU does not react.
If you want the CPU to go into the STOP mode when a timeout error occurs, you must enter a stop
statement (STP for STOP at cycle end) in the appropriate organization block (e.g. OB 23 with QVZ) and
terminate it with the block end statement ’BE’.
Example of OB 23:
:
QVZ has occurred
:
:STP
Cyclic processing is aborted
:BE
CPU changes to the stop mode
b) Reaction : the CPU changes to the STOP mode.
The CPU changes to the STOP mode immediately when a corresponding error (e.g. cycle or
load/transfer error) occurs - if you did not load the appropriate organization blocks.
If, as an exception, you do not want one of these errors to interrupt cyclic program processing
(e.g. while putting the system into operation), a block end statement in the appropriate
organization block is sufficient.
Example of OB 25:
:
ADF occurred
:
:BE
Cyclic processing is continued, no CPU STOP
Error Handling Using Organization Blocks
CPU 948 Programming Guide
C79000-G8576-C848-04
5 - 21
Содержание CPU 948
Страница 10: ...Contents CPU 948 Programming Guide 1 2 C79000 G8576 C848 04 ...
Страница 32: ...Contents CPU 948 Programming Guide 2 2 C79000 G8576 C848 04 ...
Страница 72: ...Data Blocks CPU 948 Programming Guide 2 42 C79000 G8576 C848 04 ...
Страница 74: ...Contents CPU 948 Programming Guide 3 2 C79000 G8576 C848 04 ...
Страница 154: ...Contents CPU 948 Programming Guide 4 2 C79000 G8576 C848 04 ...
Страница 200: ...Contents CPU 948 Programming Guide 5 2 C79000 G8576 C848 04 ...
Страница 308: ...Contents CPU 948 Programming Guide 7 2 C79000 G8576 C848 04 ...
Страница 324: ...Examples of Parameter Assignment CPU 948 Programming Guide 7 18 C79000 G8576 C848 04 ...
Страница 326: ...Contents CPU 948 Programming Guide 8 2 C79000 G8576 C848 04 ...
Страница 370: ...Addressable System Data Area CPU 948 Programming Guide 8 46 C79000 G8576 C848 04 ...
Страница 372: ...Contents CPU 948 Programming Guide 9 2 C79000 G8576 C848 04 ...
Страница 404: ...Operations with the Base Address Register BR Register CPU 948 Programming Guide 9 34 C79000 G8576 C848 04 ...
Страница 486: ...Contents CPU 948 Programming Guide 11 2 C79000 G8576 C848 04 ...
Страница 522: ...PG Functions via the S5 Bus CPU 948 Programming Guide 11 38 C79000 G8576 C848 04 ...
Страница 524: ...Contents CPU 948 Programming Guide 12 2 C79000 G8576 C848 04 ...
Страница 538: ...Contents CPU 948 Programming Guide 13 2 C79000 G8576 C848 04 ...
Страница 546: ...List of Key Words CPU 948 Programming Guide Index 6 C79000 G8576 C848 04 ...