Communication 
  3.2 Communication services 
CPU 31xC and CPU 31x, Technical Data 
Manual, 01/2006 Edition, A5E00105475-06 
3-25 
How to use open IE communication 
To allow data to be exchanged with other communication partners, STEP 7 provides the 
following FBs and UDTs under "Communication Blocks" in the "Standard Library": 
•  Connection oriented protocols: TCP-native, ISO-on-TCP 
–  FB 63 "TSEND" for sending data 
–  FB 64 "TRCV" for receiving data 
–  FB 65 "TCON", for connecting 
–  FB 66 "TDISCON", for disconnecting 
–  UDT 65 "TCON_PAR" with the data structure for the configuration of the connection 
•  Connectionless protocol: UDP 
–  FB 67 "TUSEND" for sending data 
–  FB 68 "TURCV" for receiving data 
–  FB 65 "TCON" for establishing the local communication access point 
–  FB 66 "TDISCON" for resolving the local communication access point 
–  UDT 65 "TCON_PAR" with the data structure for configuring the local communication 
access point 
–  UDT 66 "TCON_ADR" with the data structure of the address parameters of the remote 
partner 
Data blocks for the configuration of the connection 
•  Data blocks for configuring TCP native and ISO-on-TCP connections. 
To configure your connection, you need to create a DB that contains the data structure of 
UDT 65 "TCON_PAR." This data structure contains all parameters you need to establish 
the connection. You need to create such a data structure for each connection, and you 
can also organize it in a global DB. 
Connection parameter CONNECT of FB 65 "TCON" reports the address of the 
corresponding connection description to the user program (for example, 
P#DB100.DBX0.0 byte 64). 
•  Data blocks for the configuration the local UDP communication access point 
To assign parameters for the local communication access point, create a DB containing 
the data structure from the UDT 65 "TCON_PAR" This data structure contains the 
required parameters you need to establish the connection between the user program and 
the communication level of the operating system 
The CONNECT parameter of the FB 65 "TCON" contains a reference to the address of 
the corresponding connection description (e.g. P#DB100.DBX0.0 Byte 64). 
 
 
 
Note 
Setting up the connection description (UDT 65) 
The interface to be used for for communication (for example B#16#03: Communication 
via the integrated IE interface for the CPU 319-3 PN/DP) has to be entered in the UDT 65 
"TCON_PAR" in the parameter "local_device_id".