101BExtended instructions
8.4 Interrupts
S7-1200 Programmable controller
System Manual, 11/2011, A5E02486680-05
273
Error code
Description
Restriction
80C2
The module is currently processing the maximum possible number of jobs
for a CPU.
-
80C3
The required resources (memory, etc.) are currently occupied.
-
80C4
Internal temporary error. The job could not be processed.
Repeat the job. If this error occurs frequently, check your system for
electrical disturbance sources.
-
80C5
Distributed I/Os not available
Distributed I/Os
80C6
Data record transfer was stopped due to a priority class abort (restart or
background)
Distributed I/Os
8xyy
1
General error codes
Refer to "Extended instructions, Distributed I/O: Error information for RDREC, WRREC, and
RALRM" (Page 265) for more information on general error codes.
8.4
Interrupts
8.4.1
Attach and detach instructions
You can activate and deactivate interrupt event-driven subprograms with the ATTACH and
DETACH instructions.
Table 8- 86 ATTACH and DETACH instructions
LAD / FBD
SCL
Description
ret_val := ATTACH(
ob_nr:=_int_in_,
event:=_event_att_in_,
add:=_bool_in_);
ATTACH enables interrupt OB subprogram
execution for a hardware interrupt event.
ret_val := DETACH(
ob_nr:=_int_in_,
event:=_event_att_ in);
DETACH disables interrupt OB subprogram
execution for a hardware interrupt event.