Reactions to interrupts
and errors
To allow you to specify the reactions to interrupts or errors, special
organization blocks (OB 2 to OB 18 for interrupt servicing, OB 19
and OB 23 to OB 34 for reactions to errors) are available on the
CPU 948. You can store an appropriate STEP 5 program in these blocks.
When interrupts or errors are to be processed, the system program
activates the corresponding organization block during cyclic
processing. This means that the cyclic processing is interrupted to
service an interrupt or to react to an error. The nesting of the
organization blocks has a fixed priority (for further information, refer
to Chapters 4 and 5).
In addition to the organization blocks, you can also influence the
reaction of the CPU to interrupt servicing by assigning parameters in
data block DX 0.
Organization blocks OB 1 to OB 39 can be called by the system
program as soon as they are loaded in the program memory (also
during operation).
If the OBs are not loaded, there is either no reaction from the CPU or
(in the event of errors) it goes to the stop mode (refer also to Section
5.4).
You can also load data block DX 0 into the program memory during
operation like the organization blocks. It is, however, only effective
after the next COLD RESTART. If DX 0 is not loaded, the standard
settings apply (refer to Chapter 7).
3.4.1
Definition of Terms used in
Program Execution
Cycle time
The cycle begins when the cycle monitoring time is triggered and ends
with the next trigger. The time that the CPU requires to execute the
program between two triggers is called the cycle time. The cycle time
consists of the runtime of the system program and the runtime of the
user program.
The cycle time therefore includes the following:
••
the time required to process the cyclic program (system and user
program),
••
the time required to process interrupts (e.g. time-controlled
interrupt),
••
the time required to process interruptions (errors).
Processing the User Program
CPU 948 Programming Guide
3 - 12
C79000-G8576-C848-04
Содержание 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 ...