Siemens SIMATIC S7-200 System Manual page 168

Programmable controller
Hide thumbs Also See for SIMATIC S7-200:
Table of Contents

Advertisement

S7-200 Programmable Controller System Manual
Operation of the Attach Interrupt and Detach Interrupt Instructions
Before an interrupt routine can be invoked, an association must be established between the
interrupt event and the program segment that you want to execute when the event occurs. Use
the Attach Interrupt instruction to associate an interrupt event (specified by the interrupt event
number) and the program segment (specified by an interrupt routine number). You can attach
multiple interrupt events to one interrupt routine, but one event cannot be concurrently attached to
multiple interrupt routines.
When you attach an interrupt event to an interrupt routine, that interrupt is automatically enabled. If
you disable all interrupts using the global disable interrupt instruction, each occurrence of the
interrupt event is queued until interrupts are re-enabled, using the global enable interrupt
instruction, or the interrupt queue overflows.
You can disable individual interrupt events by breaking the association between the interrupt
event and the interrupt routine with the Detach Interrupt instruction. The Detach Interrupt
instruction returns the interrupt to an inactive or ignored state. Table 6-46 lists the different types of
interrupt events.
Table 6-46
Interrupt Events
Event
Description
0
I0.0
1
I0.0
2
I0.1
3
I0.1
4
I0.2
5
I0.2
6
I0.3
7
I0.3
8
Port 0
9
Port 0
10
Timed interrupt 0
11
Timed interrupt 1
12
HSC0
13
HSC1
14
HSC1
15
HSC1
16
HSC2
17
HSC2
18
HSC2
19
PLS0
20
PLS1
21
Timer T32
154
Rising edge
Falling edge
Rising edge
Falling edge
Rising edge
Falling edge
Rising edge
Falling edge
Receive character
Transmit complete
SMB34
SMB35
CV=PV
(current value = preset value)
CV=PV
(current value = preset value)
Direction changed
External reset
CV=PV
(current value = preset value)
Direction changed
External reset
PTO pulse count complete interrupt
PTO pulse count complete interrupt
CT=PT interrupt
CPU 221
CPU 224XP
CPU 224
CPU 222
CPU 226
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents