Siemens 6AV6651-7KA01-3AA4 - S7-1200 + KTP400 Basic Starter Kit 6AV6651-7KA01-3AA4 Manuel D’Utilisation

Codes de produits
6AV6651-7KA01-3AA4
Page de 364
 
Easy to communicate between devices 
 
7.5 PROFINET 
Easy Book 
Manual, 03/2014, A5E02486774-AF 
137
 
As shown in the following example, you can also use individual TSEND and TRCV 
instruction to communication over a connection created by a TSEND_C or TRCV_C 
instruction. The TSEND and TRCV instructions do not themselves create a new connection, 
so must use the DB and connection ID that was created by a TSEND_C, TRCV_C or TCON 
instruction. 
 
 
  TSEND_C on CPU_1 creates a 
connection and assigns a connection 
ID to that connection (ID=1). 
  TRCV_C on CPU_2 creates a 
connection and assigns the 
connection ID to that connection on 
CPU_2 (ID=1). 
  TSEND and TRCV on CPU_1 use the 
connection ID created by the 
TSEND_C on CPU_1 (ID=1). 
TSEND and TRCV on CPU_2 use the 
connection ID created by the TRCV_C 
on CPU_2 (ID=1). 
7.5.1.3 
Parameters for the PROFINET connection 
The TSEND_C, TRCV_C and TCON instructions require that connection-related parameters 
be specified in order to connect to the partner device. These parameters are assigned by the 
TCON_Param structure for the TCP, ISO-on-TCP, and UDP protocols. Typically, you use the 
"Configuration" tab of the "Properties" of the instruction to specify these parameters. If the 
"Configuration" tab is not accessible, then you must specify the TCON_Param structure 
programmatically.