Dpnrm_Dg (Read Diagnostic Data From A Profibus Dp Slave) - Siemens SIMATIC S7-1200 System Manual

Hide thumbs Also See for SIMATIC S7-1200:
Table of Contents

Advertisement

Extended instructions
9.3 Distributed I/O (PROFINET, PROFIBUS, or AS-i)
Parameters
The following table shows the parameters of the PRVREC instruction:
Parameter Declara-
tion
MODE
IN
F_ID
IN
CODE1
IN
CODE2
IN
LEN
IN
NEW
OUT
STATUS
OUT
SLOT
OUT
SUBSLOT OUT
INDEX
OUT
RLEN
OUT
RECORD
IN_OUT
9.3.10.4

DPNRM_DG (Read diagnostic data from a PROFIBUS DP slave)

You can use the DPNRM_DG (Read diagnostic data) instruction with PROFIBUS.
Table 9- 93
DPNRM_DG instruction
LAD / FBD
SCL
ret_val := DPNRM_DG(
req:=_bool_in_,
laddr:=_word_in_,
record=>_variant_out_,
busy=>_bool_out_);
416
Data type
Int
HW_SUBMODULE
Byte
Byte
UInt
Bool
DWord
HW_SUBMODULE
HW_SUBMODULE
UInt
UInt
Variant
Description
Mode
Subslot in the transfer area of the I-device for the data record to be
sent (only relevant for MODE = 2). The high word is always set to
zero.
Zero (for MODE = 3) and/or Error Code 1 (for MODE = 4)
Zero (for MODE = 3) and/or Error Code 2 (for MODE = 4)
Maximum length of the data record to be sent in bytes
The new data record was requested by the higher-level controller.
Error information. Refer to "STATUS parameter" (Page 403) for
more information.
Identical to F_ID
Identical to F_ID
Number of the data record to be sent
Length of the data record to be sent
Data record made available
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.
S7-1200 Programmable controller
System Manual, V4.2, 09/2016, A5E02486680-AK

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SIMATIC S7-1200 and is the answer not in the manual?

Table of Contents

Save PDF