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
System Manual, V4.2, 09/2016, A5E02486680-AK
413
Parameters
The following table shows the parameters of the RCVREC 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 received (only relevant for MODE = 2). The high word is always
set to zero.
MLEN
IN
Int
Maximum length of the data record to be received in bytes
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)
NEW OUT Bool
MODE = 0: New data record was received
MODE = 1 or 2: Data record was transferred to RECORD
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 received
LEN
OUT
UInt
Length of the data record received
RECORD
IN_OUT
Variant
Target range for the data record received
9.3.10.3
PRVREC (I-device/I-slave make data record available)
An I-device can receive a request from a higher-level controller to make a data record
available. The I-device makes the data record available in the user program with the
PRVREC instruction (make data record available).
Table 9- 92 PRVREC instruction
LAD / FBD
SCL
Description
"PRVREC_SFB_DB"(
mode:=_int_in_,
F_ID:=_uint_in_,
code1:=_byte_in_,
code2:=_byte_in_,
len:=_uint_in_,
new=>_bool_out_,
status=>_dword_out_,
slot=>_uint_out_,
subslot=>_uint_out_,
index=>_uint_out_
rlen=>_uint_out_,
rec-
ord:=_variant_inout_);
Use the PRVREC instruction to re-
ceive a request from a higher-level
controller to make a data record
available.
1
STEP 7 automatically creates the DB when you insert the instruction.
2
In the SCL example, "PRVREC_SFB_DB" is the name of the instance DB.

Table of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals