EasyManua.ls Logo

Siemens SIMATIC S7-1200

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
416 System Manual, V4.2, 09/2016, A5E02486680-AK
Parameters
The following table shows the parameters of the PRVREC instruction:
Parameter
Declara-
tion
Data type
Description
MODE
IN
Int
Mode
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.
CODE1
IN
Byte
Zero (for MODE = 3) and/or Error Code 1 (for MODE = 4)
CODE2
IN
Byte
Zero (for MODE = 3) and/or Error Code 2 (for MODE = 4)
LEN
IN
UInt
Maximum length of the data record to be sent in bytes
NEW
OUT
Bool
The new data record was requested by the higher-level controller.
STATUS OUT DWord Error information. Refer to "STATUS parameter" (Page 403) for
more information.
SLOT
OUT
HW_SUBMODULE
Identical to F_ID
SUBSLOT
OUT
HW_SUBMODULE
Identical to F_ID
INDEX
OUT
UInt
Number of the data record to be sent
RLEN
OUT
UInt
Length of the data record to be sent
RECORD
IN_OUT
Variant
Data record made available
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
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 of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals