Extended instructions
8.3 Distributed I/O (PROFINET, PROFIBUS, or AS-i)
Calling RALRM
You can call the RALRM instruction in three different operating modes (MODE).
Table 8- 74
RALRM instruction operating modes
MODE
Description
0
ID contains the hardware identifier of the I/O module that triggered the interrupt.
•
Output parameter NEW is set to TRUE.
•
LEN produces an output of 0.
•
AINFO and TINFO are not updated with any information.
•
1
ID contains the hardware identifier of the I/O module that triggered the interrupt.
•
Output parameter NEW is set to TRUE.
•
LEN produces an output of the amount in bytes of AINFO data that is returned.
•
AINFO and TINFO are updated with interrupt-related information.
•
2
If the hardware identifier assigned to input parameter F_ID has triggered the interrupt then:
ID contains the hardware identifier of the I/O module that triggered the interrupt. Should be the same
•
as the value at F_ID.
Output parameter NEW is set to TRUE.
•
LEN produces an output of the amount in bytes of AINFO data that is returned.
•
AINFO and TINFO are updated with interrupt-related information.
•
Note
If you assign a destination area for TINFO or AINFO that is too short, RALRM cannot return
the full information.
MLEN can limit the amount of AINFO data that is returned.
Refer to the AINFO parameters and TINFO parameters of the online information system of
STEP 7 for information on how to interpret the TINFO and AINFO data.
320
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG