EasyManua.ls Logo

Siemens S7-1200 - RCV_CFG (Configure Serial Receive Parameters Dynamically) Instruction

Siemens S7-1200
1028 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...
Communication processor and Modbus TCP
12.3 Point-to-point (PtP) communication
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
689
Parameter and type
Data type
Description
IDLELINE IN 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)
DONE
OUT
Bool
TRUE for one execution after the last request was completed with no error
ERROR
OUT
Bool
TRUE for one execution after the last request was completed with an error
STATUS
OUT
Word
Execution condition code (Default value: 0)
Table 12- 12 Condition codes
STATUS (W#16#....)
Description
80B0
Transmit interrupt configuration is not allowed.
80B1
Break time is greater than the maximum allowed value.
80B2
Idle time is greater than the maximum allowed value.
12.3.3.4
RCV_CFG (Configure serial receive parameters dynamically) instruction
Table 12- 13 RCV_CFG (Receive Configuration) instruction
LAD / FBD
SCL
Description
"RCV_CFG_DB"(
REQ:=_bool_in_,
PORT:=_uint_in_,
CONDITIONS:=_struct_in_,
DONE=>_bool_out_,
ERROR=>_bool_out_,
STATUS=>_word_out_);
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.
1
STEP 7 automatically creates the DB when you insert the instruction.
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.

Table of Contents

Other manuals for Siemens S7-1200

Related product manuals