
5 Organization Blocks 11.92
5.3.1 Normal mode
5.3.1 Normal mode
In normal mode the cyclically processed program can only be interrupted at the block limits by
interrupt-controlled processing (Fig. 5.2). Only when a change is made from one block to
another - either by calling a new block or by returning to a higher-order block after a block end
statement - can the system program call up an organization block for interrupt servicing.
Organization blocks OB 2 and OB 5 cannot be called up in normal mode. If these blocks are
available in the user program and enabled via machine data (see Interface Description Part 1:
Signals, "PLC MD bits for basic program"), they are nevertheless not processed.
Fig. 5.2 Point of interruption of the cyclically processed program in normal mode
JU PB 3
JU PB 13
JU FB 5
PB 13
BE BE BE
BE
FB 5PB 3OB 1
Point of interruption
at which interrupt servicing can be erfolgen
5.3.2 Response time
In normal mode interrupt-controlled processing cannot normally take place while a block is
being processed. An interrupt is only serviced on a block change, i.e. when a block is called or
terminated. The maximum response time between an interrupt occuring and being serviced is
therefore, in the worst case, the processing time of the longest block. If two alarms occur
simultaneously, the response time for the interrupt increases for the interrupt with lower
priority. First the cyclic program is processed up to the next block change and then the
processor processes the "interrupt service routine" with the highest priority. Once the
"interrupt service routine" with the higher priority has been completed, the "interrupt service
routine" with lower priority is then processed. The response time of this lower-priority program
has thus been increased by the processing time of the higher-priority program (see Section
"Priority assignments for interrupts").
If several interrupts occur simultaneously, the interrupt with the lowest priority is only serviced
when all higher-priority interrupts have been serviced.
The priorities of an interrupt-controlled processing can be shifted if an interrupt occurs while an
interrupt-controlled program is being processed. After completion of the servicing of the higher-
priority interrupt, the priorities are reassigned, causing the response time for the lowest-priority
interrupt to be further increased.
5–4
© Siemens AG 1992 All Rights Reserved 6FC5197- AA80
SINUMERIK 840C/880 (PJ)
Commenti su questo manuale