Communication
11.2 PROFINET
S7-1200 Programmable controller
838 System Manual, V4.2, 09/2016, A5E02486680-AK
Table 11- 12 TSEND_C and TRCV_C data types for the parameters
REQ
IN Bool Starts the send job on a rising edge
EN_R
(TRCV_C)
IN Bool Receive enable
CONT IN Bool Controls the communication connection:
• 0: Disconnect the communication connection after data is
sent.
• 1: Establish and maintain the communication connection.
When sending data (TSEND_C) (rising edge at the REQ pa-
rameter) or receiving data (TRCV_C) (rising edge at the EN_R
parameter), the CONT parameter must have the value TRUE in
order to establish or maintain a connection.
LEN IN UDInt Optional parameter (hidden)
Maximum number of bytes to be sent (TSEND_C) or received
(TRCV_C) with the job. If you use purely symbolic values at the
DATA parameter, the LEN parameter must have the value "0".
ADHOC
(TRCV_C)
IN Bool Optional parameter (hidden)
Ad hoc mode request for connection type TCP.
CONNECT IN_OUT TCON_Param Pointer to the connection description corresponding to the struc-
ture of connection to be described:
• For TCP or UDP, use the structure TCON_IP_v4
• For further information on TCON_IP_v4, refer to: "Parame-
ters for the PROFINET connection" (Page 832).
• For ISO-on-TCP, use the structure TCON_IP_RFC
• For further information on TCON_IP_RFC, refer to: "Parame-
ters for the PROFINET connection" (Page 832).
The CONNECT parameter is only evaluated upon a positive
edge at REQ (TSEND_C), when connection establishment
starts (TRCV_C), or when COM_RST = 1.
DATA IN_OUT Variant Pointer to the send area containing:
• Address and length of data to be sent (TSEND_C)
• Address and maximum length of received data (TRCV_C)
ADDR IN_OUT Variant Optional parameter (hidden)
Pointer to the address of the recipient with the connection type
UDP. The address information is mapped in the structure