EasyManua.ls Logo

Siemens S7-1200 - DPNRM_DG (Read Diagnostic Data from a DP Slave) Instruction

Siemens S7-1200
1028 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Extended instructions
8.3 Distributed I/O (PROFINET, PROFIBUS, or AS-i)
S7-1200 Programmable controller
328 System Manual, 03/2014, A5E02486680-AG
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 instr
uction.
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
Description
ret_val := DPNRM_DG(
req:=_bool_in_,
laddr:=_word_in_,
record=>_variant_out_,
busy=>_bool_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
Parameter and type
Data type
Description
REQ
IN
Bool
REQ=1: Read request
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.

Table of Contents

Other manuals for Siemens S7-1200

Related product manuals