Dpnrm_Dg (Read Diagnostic Data From A Dp Slave) 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)
Error code
Description
808x
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
general error codes.
x = parameter number
y = event number
Note
If you access DPV1 slaves, error information from these slaves can be forwarded from the
DP master to the instruction.
8.3.6

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
LAD / FBD
SCL
ret_val := DPNRM_DG(
req:=_bool_in_,
laddr:=_word_in_,
record=>_variant_out_,
busy=>_bool_out_);
Table 8- 82
DPNRM_DG instruction data types for the parameters
Parameter and type
REQ
IN
LADDR
IN
RET_VAL
OUT
328
Description
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.
Data type
Description
Bool
REQ=1: Read request
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.
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.
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
Table of Contents
loading

Table of Contents