×
Siemens Industry Online Support
Siemens AG
Entry type: FAQ Entry ID: 75312612, Entry date: 03/29/2018
(4)
Rate

How do you use the blocks for MODBUS/TCP communication via an Industrial Ethernet CP of S7-300 and S7-400 in STEP 7 Professional (TIA Portal)?

  • Entry
  • Associated product(s)
This entry gives you sample applications for Modbus/TCP communication via an Industrial Ethernet CP of S7-300 and S7-400 in the TIA Portal.

Instructions
The "MODBUSCP" blocks enables MODBUS/TCP communication via an Industrial Ethernet CP of the S7-300 and S7-400. In STEP 7 Professional V14 (TIA Portal V14) and higher the"MODBUSCP" block is included in the "Instructions" task card in the "Communication > Communications processor > MODBUS TCP" palette.

If you are using TIA Portal V11, TIA Portal V12 or TIA Portal V13, then you must migrate the "MODBUSCP" block from the "Modbus_TCP_CP" block library. The block library is a component of the "SIMATIC Modbus/TCP PN CPU" product which is available for downloading in Entry ID103474603.

You can only install the "Modbus_TCP_CP" block library on PCs on which STEP 7 V5.4 or V5.5 is already installed. The instructions below are for migrating the blocks of the "Modbus_TCP_CP" block library to TIA Portal V11, TIA Portal V12 or TIA Portal V13.

NET_Migration_Library_Modbus_CP_en.pdf (5.4 MB)

Download for STEP 7 Professional V11 (TIA Portal)
The download includes the "MODBUS_TCP_CP_EXAMPLE.zip" project that was created in STEP 7 Professional V11 (TIA Portal). This project includes examples with the migrated Modbus blocks for Modbus/TCP communication between a CP 343-1 / CP 443-1 and a third-party device. The blocks of the "Modbus_TCP_CP" V4.3 library are used. There are four examples each for CP 343-1 and CP 443-1:

  • Configuration as client with a CP that supports the F10 "AG_CNTRL".
  • Configuration as server with a CP that supports the F10 "AG_CNTRL".
  • Configuration as client with a CP that does not support the F10 "AG_CNTRL".
  • Configuration as server with a CP that does not support FC10 "AG_CNTRL".

For CPs that support the multiple port you must use the block with FC10 "AG_CNTRL"
(see Entry 104946406).

Extract the files in "MODBUS_TCP_CP_EXAMPLE.zip" into a separate directory. You can than use STEP 7 to open and process the extracted project.

Registration requiredMODBUS_TCP_CP_EXAMPLE.zip (3.2 MB)

Download for STEP 7 Professional V12 (TIA Portal)
The download includes the "MODBUS_TCP_CP_EXAMPLE_V12.zip" project that was created in STEP 7 Professional V12 (TIA Portal). This project includes examples with the migrated Modbus blocks for Modbus/TCP communication between a CP 343-1 / CP 443-1 and a third-party device. The blocks of the "Modbus_TCP_CP" V4.3 library are used. There are four examples each for CP 343-1 and CP 443-1:

  • Configuration as client with a CP that supports the F10 "AG_CNTRL".
  • Configuration as server with a CP that supports the F10 "AG_CNTRL".
  • Configuration as client with a CP that does not support the F10 "AG_CNTRL".
  • Configuration as server with a CP that does not support FC10 "AG_CNTRL".

For CPs that support the multiple port you must use the block with FC10 "AG_CNTRL"
(see Entry 104946406).

Extract the files in "MODBUS_TCP_CP_EXAMPLE_V12.zip" into a separate directory. You can then use STEP 7 to open and process the extracted project.

Registration requiredMODBUS_TCP_CP_EXAMPLE_V12.zip (4.9 MB)

Download for STEP 7 Professional V12 SP1 Upd2 (TIA Portal)
The download includes the "MODBUS_TCP_CP_EXAMPLE_V12_SP1_Upd2.zip" project that was created in STEP 7 Professional V12 (TIA Portal). This project includes examples with the migrated Modbus blocks for Modbus/TCP communication between a CP 343-1 / CP 443-1 and a third-party device. The blocks of the "Modbus_TCP_CP" V4.3 library are used. There are four examples each for CP 343-1 and CP 443-1:

  • Configuration as client with a CP that supports the F10 "AG_CNTRL".
  • Configuration as server with a CP that supports the F10 "AG_CNTRL".
  • Configuration as client with a CP that does not support the F10 "AG_CNTRL".
  • Configuration as server with a CP that does not support FC10 "AG_CNTRL".

For CPs that support the multiple port you must use the block with FC10 "AG_CNTRL"
(see Entry 104946406).

Extract the files in "MODBUS_TCP_CP_EXAMPLE_V12_SP1_Upd2.zip" into a separate directory. You can then use STEP 7 to open and process the extracted project.

Registration requiredMODBUS_TCP_CP_EXAMPLE_V12_SP1_Upd2.zip (5.4 MB)

Download for STEP 7 Professional V13 SP1 (TIA Portal)
The download includes the "MODBUS_TCP_CP_EXAMPLE_V13_SP1.zip" project that was created in STEP 7 Professional V13 SP1 (TIA Portal). This project includes examples with the migrated Modbus blocks for Modbus/TCP communication between a CP 343-1 / CP 443-1 and a third-party device. The blocks of the "Modbus_TCP_CP" V5.0 library are used. The blocks of this library are released only for CPs which support the FC10 "AG_CNTRL". There are two examples each for CP 343-1 and CP 443-1:

  • Configuration as Client
  • Configuration as Server

Extract the files in "MODBUS_TCP_CP_EXAMPLE_V13_SP1.zip" into a separate directory. You can then use STEP 7 to open and process the extracted project.

Registration required MODBUS_TCP_CP_EXAMPLE_V13_SP1.zip (2.7 MB)

Download for STEP 7 Professional V14 (TIA Portal)
The download includes the "MODBUS_TCP_CP_EXAMPLE_V14.zip" project that was created in STEP 7 Professional V14 (TIA Portal). This project includes examples with the migrated Modbus blocks for Modbus/TCP communication between a CP 343-1 / CP 443-1 and a third-party device. The blocks of the "Modbus_TCP_CP" V5.0 library are used. The blocks of this library are released only for CPs which support the FC10 "AG_CNTRL". There are two examples each for CP 343-1 and CP 443-1:

  • Configuration as Client
  • Configuration as Server

Extract the files in "MODBUS_TCP_CP_EXAMPLE_V14.zip" into a separate directory. You can then use STEP 7 to open and process the extracted project.

 Registrierung notwendig  MODBUS_TCP_CP_EXAMPLE_V14.zip (1,6 MB)

Download for STEP 7 Professional V14 SP1 Upd3 (TIA Portal)
The download includes the "MODBUS_TCP_CP_EXAMPLE_V14_SP1_UPD3.zip" project that was created in STEP 7 Professional V14 SP1 Upd3 (TIA Portal). This project includes examples with the migrated Modbus blocks for Modbus/TCP communication between a CP 343-1 / CP 443-1 and a third-party device. The blocks of the "Modbus_TCP_CP" V5.0 library are used. The blocks of this library are released only for CPs which support the FC10 "AG_CNTRL". There are two examples each for CP 343-1 and CP 443-1:

  • Configuration as Client
  • Configuration as Server

Extract the files in "MODBUS_TCP_CP_EXAMPLE_V14_SP1_UPD3.zip" into a separate directory. You can then use STEP 7 to open and process the extracted project.

 Registrierung notwendig  MODBUS_TCP_CP_EXAMPLE_V14_SP1_UPD3.zip (1,2 MB)

Download for STEP 7 Professional V15 (TIA Portal)
The download includes the "MODBUS_TCP_CP_EXAMPLE_V15.zip" project that was created in STEP 7 Professional V15 (TIA Portal). This project includes examples with the migrated Modbus blocks for Modbus/TCP communication between a CP 343-1 / CP 443-1 and a third-party device. The blocks of the "Modbus_TCP_CP" V5.0 library are used. The blocks of this library are released only for CPs which support the FC10 "AG_CNTRL". There are two examples each for CP 343-1 and CP 443-1:

  • Configuration as Client
  • Configuration as Server

Extract the files in "MODBUS_TCP_CP_EXAMPLE_V15.zip" into a separate directory. You can then use STEP 7 to open and process the extracted project.

 Registrierung notwendig  MODBUS_TCP_CP_EXAMPLE_V15.zip (2,8 MB)

Further Information
Detailed information on the topic of MODBUS/TCP communication is available at: http://www.siemens.de/s7modbus

Security information
In order to protect technical infrastructures, systems, machines and networks against cyber threats, it is necessary to implement – and continuously maintain – a holistic, state-of-the-art IT security concept. Siemens’ products and solutions constitute one element of such a concept. For more information about cyber security, please visit
https://www.siemens.com/cybersecurity#Ouraspiration.