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?
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?
Part number:

Instructions:
In an Industrial Ethernet network, data communication between a SIMATIC S7-300/400 and an external PC is via ISO transport, ISO-on-TCP or TCP protocol. In this case, an Industrial Ethernet CP is implemented in the SIMATIC S7-300/400.
The SIMATIC S7-300/400 participates passively in establishing the communication connection. The PC establishes the communication connection actively. Using the WRITE service, it writes data to the SIMATIC S7-300/400, and using the FETCH service, it reads data from the SIMATIC S7-300/400.

The following IE CPs of the S7-300 support the FETCH and WRITE services:
 
IE CP Order number
CP343-1 PN 6GK7343-1HX00-0XE0
CP343-1 Standard 6GK7343-1EX11-0XE0
CP343-1 Standard 6GK7343-1EX20-0XE0
CP343-1 Standard 6GK7343-1EX21-0XE0
CP343-1 Standard 6GK7343-1EX30-0XE0
CP343-1 Lean 6GK7343-1CX00-0XE0
CP343-1 Lean 6GK7343-1CX10-0XE0
CP343-1 IT 6GK7343-1GX11-0XE0
CP343-1 IT 6GK7343-1GX20-0XE0
CP343-1 Advanced 6GK7343-1GX21-0XE0
CP343-1 Advanced 6GK7343-1GX30-0XE0
CP343-1 ERPC 6GK7343-1FX00-0XE0

The following IE CPs of the S7-400 support the FETCH and WRITE services:
 
IE CP Order number
CP443-1 Standard 6GK7443-1EX11-0XE0
CP443-1 Standard 6GK7443-1EX20-0XE0
CP443-1 IT 6GK7443-1GX11-0XE0
CP443-1 Advanced 6GK7443-1EX40-0XE0
CP443-1 Advanced 6GK7443-1EX41-0XE0
CP443-1 Advanced 6GK7443-1GX20-0XE0

An overview of the properties, services and quantity frameworks that the IE CPs of the S7-300 support is available in Entry ID: 16767769. Here you will find information about whether the FETCH and WRITE services are supported.

An overview of the properties, services and quantity frameworks that the IE CPs of the S7-400 support is available in Entry ID: 15368142. Here you will find information about whether the FETCH and WRITE services are supported.

The manual of the IE CPs also contains information about whether the FETCH and WRITE services are supported (chapter 1, "Properties / Services").

Example:
The following instructions explain how to configure an ISO transport connection for an S7-400 station in order to be able to implement data communication using the FETCH and WRITE services.

You can use the same procedure for an S7-300 station and for the FETCH and WRITE services via an ISO-on-TCP connection or a TCP connection.
 
No. Procedure
1 Open the hardware configuration of the S7-400 station and drag-and-drop a CP443-1 into the rack. In the rack, you double-click on the CP443-1 or on the PN IO interface of the CP443-1 in order to open the Properties dialog of the CP443-1. Click the "Properties" button.

 
Fig. 01

2

In the dialog that opens, you enter the IP address of the CP443-1. If data communication is made via ISO transport protocol, then you must also enable the "Set MAC address / Use ISO protocol" function and enter the MAC address of the CP443-1.

Connect the CP443-1 with a subnetwork, "Ethernet(1)", for example. If there is no subnetwork available, create a new one.

Confirm the settings with "OK".


Fig. 02

Note:
Click the "New" button to insert a new subnetwork.

3 Save and compile the hardware configuration.
4 Then load the configuration into the CPU.
5 In the SIMATIC Manager you open the "NetPro" tool via the menu "Options > Configure Network". You configure the connection in NetPro.
6 Mark the CPU in the S7-400 station and insert a new connection via "Insert > New Connection...". You send the data via this connection using the WRITE service.
7 Select "unspecified" under "Connection partner".
Under "Connection" you select "ISO transport connection" as type.

Click "Apply". The properties dialog box for the ISO transport connection opens.


Fig. 03

Note:
Alternatively, you can select ISO-on-TCP connection or TCP connection as type.

8 In the Properties dialog of the ISO transport connection, you switch to the "General" tab. Disable the "Active connection establishment" function.


Fig. 04

9 In the Properties dialog of the ISO transport connection, you switch to the "Addresses" tab. Enter the local and remote TSAPs and the MAC address of the partner.


Fig. 05

Note:
If you have configured an ISO-on-TCP connection or a TCP connection, then enter the IP address of the partner.

10 In the Properties dialog of the ISO transport connection, you switch to the "Options" tab. Select "Write passive" mode. Confirm the settings with "OK".


Fig. 06

Note:
If a data block (DB) or TIMER is specified as the target of the FETCH or WRITE job, then the following holds for addressing the data.

  • If the S7 addressing mode is enabled, the start address of the data is interpreted as byte address (suitable for communication between S7 stations).
  • If the S7 addressing mode is disabled, the start address of the data is interpreted as word address (corresponding to the S5 addressing mode).

The start address of the data is a byte address for all other memory areas.

11 Insert another ISO transport connection. You receive the data via this connection using the FETCH service.
12

In the Properties dialog of the second ISO transport connection, you switch to the "General" tab. Disable the "Active connection establishment" function.

13

In the Properties dialog of the second ISO transport connection, you switch to the "Addresses" tab. Enter the local and remote TSAPs and the MAC address of the partner.

14 In the Properties dialog of the second ISO transport connection, you switch to the "Options" tab. Select "Fetch passive" mode. Confirm the settings with "OK". The connection configuration is now complete.


Fig. 07

15

Mark the S7-400 station. Save and compile the configuration and load it in the CPU.

You can use the AG_LOCK (FC7) and AG_UNLOCK (FC8) functions from the "SIMATIC_NET_CP" library to lock individual FETCH / WRITE jobs, and thus associated data areas, against read or write access by an external station. The FC7 "AG_LOCK" and FC8 "AG_UNLOCK" functions are useful for ensuring data consistency, among other things.

S7-300 stations support the FC7 "AG_LOCK" and FC8 "AG_UNLOCK" functions automatically whenever you use an IE CP that supports the Fetch and Write services.

In the case of S7-400 stations, you must enable the "Address setting for LOCK/UNLOCK with FETCH/WRITE" checkbox in the "Addresses" tab of the CP 443-1 Properties dialog when using the FC7 "AG_LOCK" and FC8 "AG_UNLOCK" functions.


Fig. 08

Note:
If the "Address setting for LOCK/UNLOCK with FETCH/WRITE" function is not available in "Addresses" tab of the Properties dialog of the IE CP, then the "LOCK" and "UNLOCK" function are not supported by the CPU being used.

More information about the Fetch and Write services is available in the "NCM S7 for Industrial Ethernet" manual, section 4.8 "FETCH WRITE Mode" in Entry ID: 1172423.
 

 Entry ID:1853547   Date:2010-12-14 
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