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...
Communication processor and Modbus TCP
13.3 Point-to-point (PtP) communication
S7-1200 Programmable controller
System Manual, V4.2, 09/2016, A5E02486680-AK
1115
13.3.5.4
Receive_Config (Configure serial receive parameters dynamically)
Table 13- 13 Receive_Config (Receive Configuration) instruction
LAD / FBD
SCL
Description
"Receive_Config_DB"(
REQ:=_bool_in_,
PORT:=_uint_in_,
Re-
ceive_Conditions:=_struct_in_,
DONE=>_bool_out_,
ERROR=>_bool_out_,
STATUS=>_word_out_);
Receive_Config performs dynamic
configuration of serial receiver
parameters for a PtP communica-
tion port. This instruction config-
ures the conditions that signal the
start and end of a received mes-
sage. Any queued messages within
a CM or CB are discarded when
Receive_Config 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 Receive_Config
instruction in your program to change the configuration.
The CPU does not permanently store the values you set with the Receive_Config instruction.
The CPU restores the parameters configured in the device configuration when the CPU
transitions from RUN to STOP mode and after a power cycle. See the topic "Configuring
receive parameters (Page 1097)" for more information.
Table 13- 14 Data types for the parameters
Parameter and type
Data type
Description
REQ IN Bool Activate the configuration change on the rising edge of this input.
(Default value: False)
PORT IN PORT After you install and configure a CM or CB communication device,
the port identifier appears in the parameter helper drop-list available
at the PORT box connection. The assigned CM or CB port value is
the device configuration property "hardware identifier". The port sym-
bolic name is assigned in the "System constants" tab of the PLC tag
table. (Default value: 0)
CONDITIONS IN CONDITIONS The Conditions data structure specifies the starting and ending mes-
sage conditions as described below.
DONE OUT Bool TRUE for one scan, after the last request was completed with no
error
ERROR OUT Bool TRUE for one scan, after the last request was completed with an
error
STATUS
OUT
Word
Execution condition code (Default value: 0)

Table of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals