Siemens S7-1200 System Manual page 523

Hide thumbs Also See for S7-1200:
Table of Contents

Advertisement

TSEND_C operations
The following functions describe the operation of the TSEND_C instruction:
● To establish a connection, execute TSEND_C with CONT = 1.
● After successful establishing of the connection, TSEND_C sets the DONE parameter for
● To terminate the communication connection, execute TSEND_C with CONT = 0. The
● To send data over an established connection, execute TSEND_C with a rising edge on
● To establish a connection and send data, execute TSEND_C with CONT =1 and REQ =
TRCV_C operations
The following functions describe the operation of the TRCV_C instruction:
● To establish a connection, execute TRCV_C with parameter CONT = 1.
● To receive data, execute TRCV_C with parameter EN_R = 1. TRCV_C receives the data
● To terminate the connection, execute TRCV_C with parameter CONT = 0. The
TRCV_C handles the same receive modes as the TRCV instruction. The following table
shows how data is entered in the receive area:
Table 10- 4
Entering the data into the receive area
Protocol
Entering the data 
 i n the
variant
receive area
TCP
Ad hoc mode
TCP
Data reception with
specified length
ISO on TCP
Ad hoc mode
ISO on TCP
Protocol-controlled
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
one cycle.
connection will be aborted immediately. This also affects the receiving station. The
connection will be closed there and data inside the receive buffer could be lost.
REQ. After a successful send operation, TSEND_C sets the DONE parameter for one
cycle.
1. After a successful send operation, TSEND_C sets the DONE parameter for one cycle.
continuously when parameters EN_R = 1 and CONT = 1.
connection will be aborted immediately, and data could be lost.
Parameter

 " connection_type"
B#16#11
B#16#11
B#16#12
B#16#12
Value of the LEN parameter
65535
0 (recommended) or 1 to
8192, except 65535
65535
0 (recommended) or 1 to
8192, except 65535
Communication
10.2 PROFINET
Value of the RCVD_LEN
parameter (bytes)
1 to 1472
1 to 8192
1 to 1472
1 to 8192
523

Advertisement

Table of Contents
loading

Table of Contents