101BExtended instructions
8.3 Distributed I/O (PROFINET, PROFIBUS, or AS-i)
S7-1200 Programmable controller
System Manual, 11/2011, A5E02486680-05
265
Note
If you assign a destination area for TINFO or AINFO that is too short, RALRM cannot return
the full information. Refer to the online information system of STEP 7 for immediate access
to information on how to interpret the TINFO and AINFO returned buffers.
8.3.3
STATUS parameter for RDREC, WRREC, and RALRM
The output parameter STATUS contains error information that is interpreted as ARRAY[1...4]
OF BYTE, with the following structure:
Table 8- 76 STATUS output array
Array element
Name
Description
STATUS[1]
Function_Num
B#16#00, if no error
Function ID from DPV1-PDU: If an error occurs, B#16#80 is OR'ed (for read
data record: B#16#DE; for write data record: B#16#DF). If no DPV1 protocol
element is used, then B#16#C0 will be output.
STATUS[2]
Error_Decode
Location of the error ID
STATUS[3]
Error_Code_1
Error ID
STATUS[4]
Error_Code_2
Manufacturer-specific error ID expansion
Table 8- 77 STATUS[2] values
Error_decode
(B#16#....)
Source
Description
00 to 7F
CPU
No error or no warning
80
DPV1
Error according to IEC 61158-6
81 to 8F
CPU
B#16#8x shows an error in the "xth" call parameter of the instruction.
FE, FF
DP Profile
Profile-specific error
Table 8- 78 STATUS[3] values
Error_decode
(B#16#....)
Error_code_1
(B#16#....)
Explanation (DVP1)
Description
00
00
No error, no warning
00
Reserved, reject
Initial call; no active data record transfer
01
Reserved, reject
Initial call; data record transfer has started
70
02
Reserved, reject
Intermediate call; data record transfer already active
90
Reserved, pass
Invalid logical start address
80
92
Reserved, pass
Illegal type for Variant pointer