Entry type: FAQ, Entry ID: 22660304, Entry date: 02/14/2017
(9)
Rate

How do you establish a Modbus/TCP communication from a SIMATIC S7-300/S7-400 and where can you find further information?

  • Entry
  • Associated product(s)
This entry shows you how to establish a Modbus/TCP communication from a SIMATIC S7 and where you can find further information.

STEP 7 (TIA Portal)
You can use the integrated PROFINET interface of the CPU to establish a connection between a SIMATIC S7-300/400 and a third-party device via Modbus/TCP.

The products below are offered.

ProductCommunication viaConnectionSupported function codesArticle number
Modbus/TCP PN CPUIntegrated PROFINET interface of the CPUCPU with integrated PROFINET interface to third-party devices1, 2, 3, 4, 5, 6, 15 and 162XV9450-1MB02
Modbus/TCP CPCP 343-1 and
CP 443-1
S7 controller with external CP 343-1 or CP 443-1 to third-party devices1, 2, 3, 4, 5, 6, 15 and 162XV9450-1MB00
Table 1

The contents of the SIMATIC Modbus/TCP PN CPU are included in STEP 7 V13 Update 3 (TIA Portal) and higher. The MODBUSPN instruction is to be found under "Instructions > Communication > Other".

The contents of the SIMATIC Modbus/TCP CP are included in STEP 7 (TIA Portal) V14 and higher. The MODBUSPN instruction is to be found under "Instructions > Communication > Communications Processor >MODBUS TCP".

Use of this instruction is charged and must be licensed separately on each CPU. For license ordering, please get in touch with your Siemens sales partner. The CD then supplied includes the SOFTWARE REGISTRATION FORM which you use to call the license code. You do not need to run the setup on the CD for TIA Portal. This is only necessary for STEP 7 V5.x.

Manual SIMATIC Modbus/TCP PN CPU (STEP 7 (TIA Portal))
modbustcppncpu_en.pdf (867.3 KB)

STEP 7 V5.x
You have two communication options for establishing a connection between a SIMATIC S7 and a third-party device using Modbus/TCP:

  • Via an external CP 343-1 or CP 443-1
  • Via the integrated PROFINET interface of the CPU or H-CPU

Both communication options can be used for non-redundant and for redundant Modbus/TCP communication.

The products below are offered.

Product Communication via Connection Supported function codes Article number
Modbus/TCP CP CP 343-1 and
CP 443-1
S7 controller with external CP 343-1 or CP 443-1 to third-party devices 1, 2, 3, 4, 5, 6, 15 and 16 2XV9450-1MB00
Modbus/TCP CP Redundant CP 343-1 and
CP 443-1
S7-400 H-Station or S7-300/400 station with 2 CPs to third-party devices 1, 2, 3, 4, 5, 6, 15 and 16

6AV6676-6MB30-3AX0

Modbus/TCP PN CPU Integrated PROFINET interface of the CPU and H-CPU CPU and
H-CPU with integrated PROFINET interface to third-party devices
1, 2, 3, 4, 5, 6, 15 and 16 2XV9450-1MB02
Modbus/TCP PN CPU Redundant 1, 2, 3, 4, 5, 6, 15 and 16 6AV6676-6MB10-0AX0
Modbus/TCP 20 SENTRON PACs Integrated PROFINET interface of the CPU CPU with integrated PROFINET interface with up to 20 SENTRON PACs 4 (for reading out the base type 3 and the energy meters)

6 (for resetting the energy meters)

6AV6676-6MA30-0AX0
Modbus/TCP 100 SENTRON PACs CPU with integrated PROFINET interface with up to 100 SENTRON PACs 6AV6676-6MA30-1AX0
Modbus/TCP 512 SENTRON PACs CPU with integrated PROFINET interface with up to 512 SENTRON PACs 6AV6676-6MA30-2AX0
Table 2

The 3 products SIMATIC Modbus/TCP 20/100/512 SENTRON PACs make it possible to easily establish a Modbus/TCP communication with little need for parameters between a CPU with integrated PROFINET interface and up to 512 SENTRON PAC devices (PAC4200 firmware 1.5.1 onwards and PAC3200 V2.2.1 onwards). In this case, the data of the base type 3 and energy meters are read out cyclically. In addition, the energy meters can be reset.

License request
Fill in the SOFTWARE REGISTRATION form with the "IDENT_CODE" and "License No.".
Send the form to Customer Support as a Service Request. Here you enable the checkbox "Problem with SIMATIC authorization/license".
You will then be sent the REG_KEY activation code for your CPU.

Download
There is a demo version available for downloading for the following products.

Note

  • Entry ID 60735352includes the Modbus TCP Wizard for creating the parameters for the Modbus/TCP communication.
  • Entry ID 49973600 includes the Modbus/TCP PAC Wizard for creating the parameters for the Modbus/TCP communication for CPUs with integrated PROFINET interface.
  • Entry ID 38586568 includes a sample application for configuring a Modbus/TCP connection between SIMATIC S7 and Modicon M340 with the blocks from Modbus/TCP CP and Modbus/TCP PN-CPU.

Additional Keywords
Loadable drivers, Communication blocks, Modbus, Redundancy