EasyManua.ls Logo

Siemens SIMATIC S7-1200 - Page 417

Siemens SIMATIC S7-1200
1614 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
9.3 Distributed I/O (PROFINET, PROFIBUS, or AS-i)
S7-1200 Programmable controller
System Manual, V4.2, 09/2016, A5E02486680-AK
417
Table 9- 94 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 trans-
ferred is entered in RET_VAL.
RECORD OUT 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 trans-
ferred to the destination area, and the overflow bit is set in the data.
BUSY
OUT
Bool
BUSY=1: The read job is not yet completed
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 9- 95 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 of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals