101BExtended instructions
8.3 Distributed I/O (PROFINET, PROFIBUS, or AS-i)
S7-1200 Programmable controller
264
System Manual, 11/2011, A5E02486680-05
Parameter and type
Data type
Description
ID
OUT
HW_IO (Word)
Logical start address of the component (module) from which an
interrupt was received. Bit 15 contains the I/O ID:
0 for an input address
1 for and output address
Note: Refer to the F_ID parameter for an explanation of how to
determine the device ID.
LEN
OUT
DWord, UInt, UDInt,
DInt, Real, LReal
Length of the received interrupt information
TINFO
IN_OUT
Variant
Task information: Target range for OB start and management
information
AINFO
IN_OUT
Variant
Interrupt information: Target area for header information and additional
interrupt information. For AINFO, provide a length of at least the MLEN
bytes.
Note
If you call "RALRM" in an OB whose start event is not an I/O interrupt, the instruction will
provide correspondingly reduced information in its outputs.
Make sure to use different instance DBs when you call "RALRM" in different OBs. If you
evaluate data resulting from a "RALRM" call outside of the associated interrupt OB, you
should use a separate instance DB per OB start event.
Note
The interface of the "RALRM" instruction is identical to the "RALRM" FB defined in
"PROFIBUS Guideline PROFIBUS Communication and Proxy Function Blocks according to
IEC 61131-3".
Calling RALRM
You can call the RALRM instruction in three different operating modes (MODE).
Table 8- 75 RALRM instruction operating modes
MODE
Description
0
Shows the component that triggered the interrupt in the output parameter ID and sets the output
parameter NEW to TRUE.
1
Describes all output parameters, independent of the interrupt triggering component.
2
Checks whether the component specified in input parameter F_ID has triggered the interrupt.
If not, NEW = FALSE
If yes, NEW = TRUE, and all other outputs parameters are described.