4 open communication via industrial ethernet – Siemens Simatic S7-300 CPU 31xC and CPU 31x S7-300 User Manual

Page 52

Advertising
background image

Communication

3.2 Communication services

CPU 31xC and CPU 31x, Technical data

3-24

Manual, Edition 08/2004, A5E00105475-05

Detailed Information

For detailed descriptions of the individual system status lists, refer to the manual

System

Software for S7-300/400 System and Standard Functions.

3.2.10.4 Open communication via Industrial Ethernet

Requirements

CPU 31x-2 PN/DP with firmware version 2.2.0 or higher:

STEP 7 V5.3 + Servicepack 1 or higher

Functionality

CPUs with Firmware V2.3.0 or higher and integrated PROFINET interface support the open

communication functionality via Industrial Ethernet (in short:

open IE communication)

Open IE communication is always handled directly via TCP/IP.

How to use open IE communication

To be able to exchange data with other TCP/IP-compatible communication partners by

means of the user program, STEP 7 provides four FBs and one UDT for the configuration of

your connection:

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" contains the data structure for the configuration of your

connection.

Data block for the configuration of the connection

TCP/IP communication is connection-oriented. Data can only be transferred when a

connection to the communication partner is established. The CPU supports multiple parallel

connections to a communication partner.
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 (for example, ARRAY[1..8] "T_ADDR_INFO".)
Connection parameter CONNECT of FB 65 "TCON" reports the address of the

corresponding connection description to the user program (for example, P#DBa.DBXb.c

byte 64).

Advertising