Ralrm (Receive Interrupt) Instruction - Siemens S7-1200 System Manual

Hide thumbs Also See for S7-1200:
Table of Contents
Extended instructions
8.3 Distributed I/O (PROFINET, PROFIBUS, or AS-i)
8.3.3

RALRM (Receive interrupt) instruction

You can use the RALRM (Read alarm) instruction with PROFINET and PROFIBUS.
Table 8- 72
RALRM instruction
LAD / FBD
SCL
"RALRM_DB"(
mode:=_int_in_,
f_ID:=_word_in_,
mlen:=_uint_in_,
new=>_bool_out_,
status=>_dword_out_,
ID=>_word_out_,
len=>_uint_out_,
tinfo:=_variant_inout_,
ainfo:=_variant_inout_);
STEP 7 automatically creates the DB when you insert the instruction.
1
In the SCL example, "RALRM_DB" is the name of the instance DB.
2
Table 8- 73
Data types for the parameters
Parameter and type
MODE
IN
F_ID
IN
MLEN
IN
NEW
OUT
STATUS
OUT
318
Data type
Description
Byte, USInt, SInt, Int
Operating mode
HW_IO (Word)
Logical start address of the component (module) from which interrupts
are to be received
Note: The device ID can be determined in one of two ways:
Byte, USInt, UInt
Maximum length in bytes of the data interrupt information to be
received. MLEN of 0 will allow receipt of as much data interrupt
information as is available in the AINFO Target Area.
Bool
A new interrupt was received.
DWord
Status of the RALRM instruction. Refer to "STATUS parameter for
RDREC, WRREC, and RALRM" (Page 322) for more information.
Description
Use the RALRM (read alarm) instruction to read diagnostic
interrupt information from PROFIBUS or PROFINET I/O
modules/devices.
The information in the output parameters contains the start
information of the called OB as well as information of the
interrupt source.
Call RALRM in an interrupt OB to return information regarding
the event(s) that caused the interrupt. In the S7-1200. The
following Diagnostic OB interrupts are supported: Status,
Update, Profile, Diagnostic error interrupt, Pull or plug of
modules, Rack or station failure
By making the following "Network view" selections:
Device (gray box)
"Properties" of the device
"Hardware identifier"
Note: Not all devices display their Hardware identifiers.
By making the following "Project tree" menu selections:
PLC tags
Default tag table
System constants tab
All configured device Hardware identifiers are displayed.
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
Table of Contents
loading

Table of Contents