105BCommunication processor
12.3 Point-to-Point (PtP) communication
S7-1200 Programmable controller
System Manual, 11/2011, A5E02486680-05
535
Parameter and type
Data type
Description
FLOWCTRL
IN
UInt
Flow control (Default value: 0):
1 = No flow control, 2 = XON/XOFF, 3 = Hardware RTS always ON,
4 = Hardware RTS switched
XONCHAR
IN
Char
Specifies the character that is used as the XON character. This is typically a
DC1 character (11H). This parameter is only evaluated if flow control is
enabled. (Default value: 0)
XOFFCHAR
IN
Char
Specifies the character that is used as the XOFF character. This is typically
a DC3 character (13H). This parameter is only evaluated if flow control is
enabled. (Default value: 0)
XWAITIME
IN
UInt
Specifies how long to wait for a XON character after receiving a XOFF
character, or how long to wait for the CTS signal after enabling RTS (0 to
65535 ms). This parameter is only evaluated if flow control is enabled.
(Default value: 2000)
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- 9 Condition codes
STATUS (W#16#....)
Description
80A0
Specific protocol does not exist.
80A1
Specific baud rate does not exist.
80A2
Specific parity option does not exist.
80A3
Specific number of data bits does not exist.
80A4
Specific number of stop bits does not exist.
80A5
Specific type of flow control does not exist.
80A6
Wait time is 0 and flow control enabled
80A7
XON and XOFF are illegal values (for example, the same value)
12.3.1.3
SEND_CFG instruction
Table 12- 10 SEND_CFG (Send Configuration) instruction
LAD / FBD
SCL
Description
"SEND_CFG_DB"(
REQ:=_bool_in_,
PORT:=_uint_in_,
RTSONDLY:=_uint_in_,
RTSOFFDLY:=_uint_in_,
BREAK:=_uint_in_,
IDLELINE:=_uint_in_,
DONE=>_bool_out_,
ERROR=>_bool_out_,
STATUS=>_word_out_);
SEND_CFG allows the dynamic configuration of serial
transmission parameters for a PtP communication port.
Any queued messages within a CM or CB are
discarded when SEND_CFG is executed.
1
STEP 7 automatically creates the DB when you insert the instruction.