Interruptprocessing - Siemens SIMATIC S5 Equipment Manual

Digital position decoder ip 241 with fb 156/1 57 158
Hide thumbs Also See for SIMATIC S5:
Table of Contents

Advertisement

Programming Instructions
9.3.8 Interrupt Processing
If one of the setpoints or a zero shift value is to receive an interrupt identification, the module must
be preset to a group interrupt bit of the input byte IB or to an interrupt line by means of jumper
setting. (See operating instructions of the individual programmable controllers.)
To ensure that in case of programmable controllers with group interrupt (S5– 150U/S, S5– 155U in
the interrupt signal) via input byte IB O, the number of this group interrupt bit must be specified at
parameter ABIT:
X, y
X =
x =
If this bit is not reset in the system data of the respective programmable controllers, the corre-
sponding alarm block is processed again when the interrupt signal disappears. (S5–155U: in
If an interrupt occurs (in accordance with the jumper setting), a block of the interrupt–controlled
processing is called.
This block contains the call for function block FB 157 with the parameter assignment BEF=KB.
After the call, the parameter ST indicates from which channel the interrupt arrived. Now a special
interrupt program can be processed.
If an interrupt occurs during processing of function block FB 157 in the cyclic program, the group
interrupt at the bus is deleted again in FB 157 when byte 7 is read. Consequently no organization
block of the interrupt–controlled processing is called. The function block, however, updates the
control bits so that subsequently an interrupt program can be called depending on the interrupt
bits.
9 – 28
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
255, y = 255
Module without interrupt
o,
o
y =
to 7
Reset of the correlated interrupt bit in the
system data
R 02/92

Advertisement

Table of Contents
loading

Table of Contents