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.
|