Extended instructions
8.3 Distributed I/O (PROFINET, PROFIBUS, or AS-i)
S7-1200 Programmable controller
328 System Manual, 03/2014, A5E02486680-AG
System error with external DP interface module (DPRD_DAT)
8xyy General error information
Refer to "Common error codes for the 'Extended' instructions" (Page 407) for more information on
Note
If you access DPV1 slaves, error information from these slaves can be forwarded from the
DP master to the instr
uction.
DPNRM_DG (Read diagnostic data from a DP slave) instruction
You can use the DPNRM_DG (Read diagnostic data) instruction with PROFIBUS.
Table 8- 81 DPNRM_DG instruction
req:=_bool_in_,
laddr:=_word_in_,
record=>_variant_out_,
Use the DPNRM_DG instruction to read the current diagnostic data of
a DP slave in the format specified by EN 50 170 Volume 2,
PROFIBUS. The data that has been read is entered in the destination
area indicated by RECORD following error-free data transfer.
Table 8- 82 DPNRM_DG instruction data types for the parameters
LADDR IN HW_DPSLAVE Configured diagnostic address of the DP slave: Must be the address of
the station and not for the I/O device. Select the station (and not the
image of the device) in the "Network" view of the "Device configuration"
to determine the diagnostic address.
Enter the addresses in hexadecimal format. For example, diagnostic
address 1022 means LADDR:=W#16#3FE.
RET_VAL OUT Int If an error occurs while the function is active, the return value contains
an error code. If no error occurs, the length of the data actually
transferred is entered in RET_VAL.