Parameter and type
RECORD
OUT
BUSY
OUT
You start the read job by assigning 1 to the input parameter REQ in the DPNRM_DG
instruction call. The read job is executed asynchronously, in other words, it requires several
DPNRM_DG instruction calls. The status of the job is indicated by the output parameters
RET_VAL and BUSY.
Table 8- 83
Slave diagnostic data structure
Byte
Description
0
Station status 1
1
Station status 2
2
Station status 3
3
Master station number
4
Vendor ID (high byte)
5
Vendor ID (low byte)
6 ...
Additional slave-specific diagnostic information
Table 8- 84
DPNRM_DG instruction error codes
Error code
Description
0000
No error
7000
First call with REQ=0: No data transfer active; BUSY has the value 0.
7001
First call with REQ =1: No data transfer active; BUSY has the value 1.
7002
Interim call (REQ irrelevant): Data transfer already active; BUSY has the
value 1.
8090
Specified logical base address invalid: There is no base address.
8092
The RECORD parameter supports the following data types: Byte, Char,
Word, DWord, Int, UInt, USInt, SInt, DInt, UDInt, and arrays of these types.
8093
This instruction is not permitted for the module specified by LADDR
•
(S7-DP modules for S7-1200 are permitted).
LADDR specifies the I/O device instead of specifying the station. Select
•
the station (and not the image of the device) in the "Network" view of
the "Device configuration" to determine the diagnostic address for
LADDR.
80A2
DP protocol error at layer 2 (for example, slave failure or bus problems)
•
For ET200S, data record cannot be read in DPV0 mode.
•
80A3
DP protocol error with user interface/user
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
Data type
Description
Variant
Destination area for the diagnostic data that were read. The minimum
length of the data record to be read (or the destination area) is 6 bytes.
The maximum length of the data record to be sent is 240 bytes.
Standard slaves can provide more than 240 bytes of diagnostic data up
to a maximum of 244 bytes. In this case, the first 240 bytes are
transferred to the destination area, and the overflow bit is set in the
data.
Bool
BUSY=1: The read job is not yet completed
8.3 Distributed I/O (PROFINET, PROFIBUS, or AS-i)
Extended instructions
Restriction
-
-
Distributed I/Os
Distributed I/Os
-
-
-
Distributed I/Os
Distributed I/Os
329