Program instructions
7.10 Interrupt
S7-200 SMART
System Manual, 09/2015, A5E03822230-AC
283
The attach interrupt instruction associates an interrupt event EVNT with an inter-
rupt routine number INT and enables the interrupt event.
The detach interrupt instruction disassociates an interrupt event EVNT from all
interrupt routines and disables the interrupt event.
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
• 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
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-