Rcv_Cfg (Configure Serial Receive Parameters Dynamically) Instruction - Siemens S7-1200 System Manual

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

Advertisement

Parameter and type
IDLELINE
IN
DONE
OUT
ERROR
OUT
STATUS
OUT
Table 12- 12 Condition codes
STATUS (W#16#....)
80B0
80B1
80B2
12.3.3.4

RCV_CFG (Configure serial receive parameters dynamically) instruction

Table 12- 13 RCV_CFG (Receive Configuration) instruction
LAD / FBD
STEP 7 automatically creates the DB when you insert the instruction.
1
You can set up the initial static configuration of the communication port in the device
configuration properties, or just use the default values. You can execute the RCV_CFG
instruction in your program to change the configuration.
The RCV_CFG configuration changes are not permanently stored in the CPU. The
parameters configured in the device configuration are restored when the CPU transitions
from RUN to STOP mode and after a power cycle. See Configuring receive parameters
(Page 675) for more information.
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
Data type
Description
UInt
This parameter specifies that the line will remain idle for the specified
number of bit times before the start of each message. The maximum is
65535 bit times up to an eight second maximum. A value of 0 disables the
feature. (Default value: 12)
Bool
TRUE for one execution after the last request was completed with no error
Bool
TRUE for one execution after the last request was completed with an error
Word
Execution condition code (Default value: 0)
Description
Transmit interrupt configuration is not allowed.
Break time is greater than the maximum allowed value.
Idle time is greater than the maximum allowed value.
SCL
"RCV_CFG_DB"(
REQ:=_bool_in_,
PORT:=_uint_in_,
CONDITIONS:=_struct_in_,
DONE=>_bool_out_,
ERROR=>_bool_out_,
STATUS=>_word_out_);
Communication processor and Modbus TCP
12.3 Point-to-point (PtP) communication
Description
RCV_CFG performs dynamic configuration of
serial receiver parameters for a PtP
communication port. This instruction configures the
conditions that signal the start and end of a
received message. Any queued messages within a
CM or CB are discarded when RCV_CFG is
executed.
689

Advertisement

Table of Contents
loading

Table of Contents