
11.92 5 Organization Blocks
5.3.6 Priority assignment for interrupts
5.3.6 Priority assignment for interrupts
If several interrupts occur simultaneously, the interrupts are processed in the following
sequence:
Increasing priority
OB 1
OB 7
OB 6
OB 5
OB 4
OB 3
OB 2
cyclic processing
time-controlled processing
aperiodic processing
interrupt-controlled processing
OB 2 and OB 5 are only processed if PLC machine data bit 6051.0 is 0 (Special mode see
Installation Guide, "PLC MD bits for basic program").
If the cyclic program is interrupted by an interrupt, all interrupts present are serviced before
cyclic program processing is continued. This applies both to interrupts which cause interruption
of cyclic operation and all interrupts which occur during interrupt servicing. Hereby after the
processing of each interrupt service routine, the interrupt with the next highest priority is found
and processed.
5.4 Programming the cyclic program
A programmable controller's program is "normally" scanned cyclically (Fig. 5.4). The
processor starts at the beginning of the STEP 5 program, scans the STEP 5 statements
sequentially until it reaches the end of the program, and then repeats the entire procedure.
5.4.1 Interface between system program and cyclic program
Organization block OB 1 is the interface between the system program and the cyclic user
program. The first STEP 5 statement in OB 1 is also the first statement in the user program,
i. e. is equivalent to the beginning of the cyclic program.
The program, sequence and function blocks comprising the cyclic program are called in
organization block 1. These blocks may themselves contain block calls, i. e. the blocks can be
nested (see Section "Program organization").
© Siemens AG 1992 All Rights Reserved 6FC5197- AA80 5–9
SINUMERIK 840C/880 (PJ)
Commenti su questo manuale