EasyManua.ls Logo

Siemens Simatic S7 Series

Siemens Simatic S7 Series
726 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
Loading...
Program instructions
7.10 Interrupt
S7-200 SMART
System Manual, 09/2015, A5E03822230-AC
283
ATCH, DTCH, and CEVENT
LAD / FBD
STL
Description
ATCH INT, EVNT
The attach interrupt instruction associates an interrupt event EVNT with an inter-
rupt routine number INT and enables the interrupt event.
DTCH EVNT
The detach interrupt instruction disassociates an interrupt event EVNT from all
interrupt routines and disables the interrupt event.
CEVENT EVNT
The clear interrupt event instruction removes all interrupt events of type EVNT
from the interrupt queue. Use this instruction to clear the interrupt queue of un-
wanted interrupt events. If this instruction is being used to clear out spurious
interrupt events, then you should detach the event before clearing the events
from the queue. Otherwise new events will be added to the queue after the clear
event instruction has been executed.
Non-fatal errors with ENO = 0
SM bits affected
0002H Conflicting assignment of
inputs to an HSC
0016H Attempt to use HSC or edge
interrupt on input channel that is al-
ready allocated to a motion control
function
0019H Attempt to use a signal
board function without a signal
board installed and configured
0090H Invalid operand (illegal event
number)
None
Input / output
Data type
Operand
INT
BYTE
Constant: interrupt routine number (0 to 127)
EVNT BYTE Constant: interrupt event number
CPU CR40, CR60: 0-13, 16-18, 21-23, 27, 28, and 32
CPU SR20/ST20, SR30/ST30, SR40/ST40, SR60/ST60: 0-13, 16-28, 32, and 34-
38

Table of Contents

Other manuals for Siemens Simatic S7 Series

Related product manuals