Sgn_Get Instruction - Siemens SIMATIC S7 System Manual

Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

12.3.1.8

SGN_GET instruction

Table 12- 28 SGN_GET (Get RS232 signals) instruction
LAD / FBD
STEP 7 automatically creates the DB when you insert the instruction.
1
Table 12- 29 Data types for the parameters
Parameter and type
REQ
IN
PORT
IN
NDR
OUT
ERROR
OUT
STATUS
OUT
DTR
OUT
DSR
OUT
RTS
OUT
CTS
OUT
DCD
OUT
RING
OUT
Table 12- 30 Condition codes
STATUS (W#16#....)
80F0
S7-1200 Programmable controller
System Manual, 11/2011, A5E02486680-05
SCL
"SGN_GET_DB"(
REQ:=_bool_in_,
PORT:=_uint_in_,
NDR=>_bool_out_,
ERROR=>_bool_out_,
STATUS=>_word_out_,
DTR=>_bool_out_,
DSR=>_bool_out_,
RTS=>_bool_out_,
CTS=>_bool_out_,
DCD=>_bool_out_,
RING=>_bool_out_);
Data type
Description
Bool
Get RS232 signal state values 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.
Bool
TRUE for one scan, when new data is ready and the operation is complete
with no errors
Bool
TRUE for one scan, after the operation was completed with an error
Word
Execution condition code (Default value: 0)
Bool
Data terminal ready, module ready (output). Default value: False
Bool
Data set ready, communication partner ready (input). Default value: False
Bool
Request to send, module ready to send (output). Default value: False
Bool
Clear to send, communication partner can receive data (input). Default value:
False
Bool
Data carrier detect, receive signal level (always False, not supported)
Bool
Ring indicator, indication of incoming call (always False, not supported)
Description
CM or CB is RS485 and no signals are available
105BCommunication processor
12.3 Point-to-Point (PtP) communication
Description
SGN_GET reads the current states of RS232
communication signals.
This function is valid only for the RS232 CM.
547

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-1200

Table of Contents