105BCommunication processor
12.3 Point-to-Point (PtP) communication
12.3.1.9
SGN_SET instruction
Table 12- 31 SGN_SET (Set RS232 signals) instruction
LAD / FBD
STEP 7 automatically creates the DB when you insert the instruction.
1
Table 12- 32 Data types for parameters
Parameter and type
REQ
IN
PORT
IN
SIGNAL
IN
RTS
IN
DTR
IN
DSR
IN
DONE
OUT
ERROR
OUT
STATUS
OUT
548
SCL
"SGN_SET_DB"(
REQ:=_bool_in_,
PORT:=_uint_in_,
SIGNAL:=_byte_in_,
RTS:=_bool_in_,
DTR:=_bool_in_,
DSR:=_bool_in_,
DONE=>_bool_out_,
ERROR=>_bool_out_,
STATUS=>_word_out_);
Data type
Description
Bool
Start the set RS232 signals operation, on the rising edge of this input
(Default value: False)
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 symbolic name is
assigned in the "System constants" tab of the PLC tag table. (Default
value: 0)
Byte
Selects which signal to set: (multiple allowed). Default value: 0
01H = Set RTS
02H = Set DTR
04H = Set DSR
Bool
Request to send, module ready to send value to set (true or false),
Default value: False
Bool
Data terminal ready, module ready to send value to set (true or false).
Default value: False
Bool
Data set ready (only applies to DCE type interfaces), not used.
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
SGN_SET sets the states of RS232 communication
signals.
This function is valid only for the RS232 CM.
System Manual, 11/2011, A5E02486680-05
S7-1200 Programmable controller