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
The following table shows the parameters of the RCVREC instruction:
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.
Maximum length of the data record to be received in bytes
Zero (for MODE = 3) and/or Error Code 1 (for MODE = 4)
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
Number of the data record received
Length of the data record received
Target range for the data record received
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
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-
Use the PRVREC instruction to re-
ceive a request from a higher-level
controller to make a data record
available.
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.