EasyManuals Logo

Siemens SIMATIC S5 Equipment Manual

Siemens SIMATIC S5
197 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #164 background imageLoading...
Page #164 background image
R 02/92
Programming Instructions
9.4.8 Processing Interrupts
See the description of function block FB 157 for the processing of interrupts. Only the differences
will be covered here.
Data word Dw
n+7
in the working data block of function block FB 158 corresponds to the ABIT
parameter of function block FB 157.
DW
n+7:
KY
= X,
y
X = 255, y = 255
Module without interrupt
x =
o,
y =
o
to 7
Reset appropriate alarm bits in the system
data
A block of the alarm–controlled processing is called when an interrupt occurs (based on the
jumper setting). The scratchpad flags must be saved at the beginning of this block, and reloaded
from it again at the end.
in a data block at the beginning, and reloaded again at the end.
DW n
DW
n+l
DW n+2
DW
n+3
DW
n+4
DW
n+5
DW
n+6
DW
n+7
The
interru~t
processing block contains the call of function block
KS
KY
KM
KY
FB 158. Parameter DW n of the
working data block
mu~
be supplied with the “KB” command before this function block is called.
After function block FB 158 is called, the ST parameter indicates which channel triggered the inter-
rupt. A special “interrupt program” can now be processed.
When an interrupt occurs during the processing of function block FB 158 in the cyclic program, the
group alarm on the bus is deleted again in FB 158 during reading of byte 7. This means that no
organization block of alarm–controlled processing is called. However, function block FB 158 does
update the control bits (DR
n+6)
so that an alarm program can then be called based on the inter-
rupt bits. Evaluation must be performed, however, before the cyclic control information is loaded in
data word DR
n+6.
1P
241 Equipment Manual
@
Siemens AG 1989, Order No.: 6ES5
998-0KD21
9 – 43
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Table of Contents

Other manuals for Siemens SIMATIC S5

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SIMATIC S5 and is the answer not in the manual?

Siemens SIMATIC S5 Specifications

General IconGeneral
Product type designationSIMATIC S5
Programming languageSTEP 5
Digital inputsVaries by model
Digital outputsVaries by model
Analog inputsVaries by model
Analog outputsVaries by model
Supply voltage24V DC
CPU TypeVaries by model
MemoryVaries by model
Digital I/OVaries by model
Analog I/OVaries by model
CommunicationPROFIBUS
Operating Temperature0°C to 60°C
Relative Humidity5% to 95% (non-condensing)

Related product manuals