Extended instructions
9.3 Distributed I/O (PROFINET, PROFIBUS, or AS-i)
S7-1200 Programmable controller
416 System Manual, V4.2, 09/2016, A5E02486680-AK
The following table shows the parameters of the PRVREC instruction:
F_ID IN HW_SUBMODULE 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.
STATUS OUT DWord Error information. Refer to "STATUS parameter" (Page 403) for
Number of the data record to be sent
Length of the data record to be sent
Data record made available
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
req:=_bool_in_,
laddr:=_word_in_,
record=>_variant_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.