show the entry list
Industrial Ethernet S7-300/400 CPs -- Configuring and programming communication -- Configuring connections
What should you watch out for when configuring fault-tolerant S7 connections over ISO-on-TCP?
How do you configure an ISO transport connection for data exchange between S7-300 and/or S7-400 by way of Industrial Ethernet CPs?
How do you configure a UDP connection for data exchange between S7-300 and/or S7-400 by way of Industrial Ethernet CPs?
How do you configure an ISO-on-TCP connection for data exchange between S7-300 and/or S7-400 by way of Industrial Ethernet CPs?
Where can you find sample S7 programs and documentation for communication via PROFINET on the SIMATIC NET Quick Start Collection?
Where can you find sample S7 programs and documentation for communication in the IWLAN in the SIMATIC NET Quick Start Collection?
Where can you find sample programs and documentation for communication from SIMATIC S5 modules to SIMATIC S5, S7 and PC modules in the SIMATIC NET Quick Start Collection?
Where can you find sample S7 programs and documentation for communication via Industrial Ethernet in the SIMATIC NET Quick Start Collection?
How do you send/receive data to/from multiple communication partners via the IE CP of an S7-300 or S7-400 station using the UDP protocol?
How do you configure a PC station as PROFINET IO controller for connecting to a S7 station (as PROFINET IO device) for the SIMATIC NET OPC server with the SIMATIC NET PC software?
How do you configure S5-compatible communication to the SIMATIC S7 via Industrial Ethernet for the SIMATIC NET OPC server with the SIMATIC NET PC software?
How do you configure an S7 connection for data communication between an S7-200 and an S7-300 or S7-400 on the Industrial Ethernet?
Establishing a connection from a PC to the S7-400 
What differences are there when configuring S7 connections?
What restrictions are there with Industrial Ethernet CPs when the communications service ISO-on-TCP is being used in parallel via the open TCP/IP communication and the SEND/RECEIVE interface?
What do you have to watch out for, in particular, in the assigning of TSAPs in ISO transport connections and ISO-on-TCP connections?
Procedure and meaning of multicast connections with Industrial Ethernet CPs
How do I set up an ISO connection between a SIMATIC S7 (CP343-1) and a SIMATIC 505 (CP1434) via INDUSTRIAL ETHERNET?
How do you configure the WRITE and FETCH services via Industrial Ethernet (ISO transport connection, ISO-on-TCP connection) for the S7-300/400 with Industrial Ethernet CP343-1 or CP443-1?
Commissioning and Configuring an ISO Transport Connection between the SIMATIC S5 and SIMATIC S7 via Industrial Ethernet
How do you configure a specified and an unspecified S7 connection for data exchange between S7-300 and/or S7-400 by way of Industrial Ethernet CPs?
Configuring a TCP connection via Ethernet (TCP native) between a SIMATIC S7 and a PC with Socket Interface
How do you configure a TCP connection for data exchange between S7-300 and/or S7-400 by way of Industrial Ethernet CPs?
Configuring a TCP connection via Ethernet (TCP native) between a SIMATIC S7 and a PC with Socket Interface
Part number:

QUESTION:  
How should you configure a TCP connection via Ethernet (TCP native) between a SIMATIC S7 and a PC with Socket Interface?

ANSWER:  
A TCP connection via Ethernet (TCP native) is configured in two steps:

  • Create the TCP connection in NetPro
  • Call the communication blocks in the S7 program of the CPU (see Entry ID: 17853532)

Create the TCP connection in NetPro

  1. Open the S7 project with the SIMATIC Manager.
  2. To create connections you switch to the NetPro program via "Options > Configure Network".



Fig. 1: Starting NetPro

  1. Mark the CPU in your S7 station.



Fig. 2: Mark CPU

  1. You can create new connections via "Insert > New Connection".
  2. Select "unspecified" as Connection Partner and "TCP connection as Connection Type. Close the dialog with "OK".



Fig. 3: Creating a connection

  1. You can close the message that is displayed with "OK".



Fig. 4: Message about routers

  1. The Properties dialog of the TCP connection opens. In the "General Information" tab you can define a name for the connection. This connection endpoint is "passive", i.e. the option "Active connection setup" remains disabled.  



Fig. 5: General connection specifications

  1. Switch to the "Addresses" tab. The partner IP address and the partner's port are not specified (remain blank). This means that for each new connection setup the partner can also specify a new port.



Fig. 6: Partner addresses

  1. In the "Options" tab you set the operating mode "Send/Recv".



Fig. 7: Setting the Send/Recv operating mode

  1. Close the Properties dialog with "OK". The TCP connection created is displayed in the connection table.



Fig. 8: Display in NetPro

  1. Save and compile the station.
  2. Then load the connection into the S7 controller.

Call the communication blocks in the S7 program of the CPU

Data communication between the two connection partners is done via communication blocks. The function blocks AGSEND (FC5) and AGRECV (FC6) are available to you for this.

A sample program for the Send-Receive interface with blocks FC5 (AG_SEND) and FC6 (AG_RECV) can be downloaded in Entry ID: 17853532.


 Entry ID:18843927   Date:2004-04-26 
I regard this article....as helpfulas not helpful                                 
mySupport
My Documentation Manager 
Newsletter 
CAx-Download-Manager 
Support Request
To this entry
Print
Create PDF 
Send to a friend
QuickLinks
Compatibility tool 
Help
Online Help
Guided Tour