×
Siemens Industry Online Support
Siemens AG
Entry type: FAQ Entry ID: 22660304, Entry date: 12/27/2017
(19)
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 or use an external CP 343-1 / CP 443-1 .

The following products 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 166AV6676-6MB20-3AX0
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 166AV6676-6MB00-6AX0
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".
In STEP 7 (TIA Portal) V14 SP1 the Help for the MODBUSPN V2.0 instruction is shown for the MODBUSPN V1.1 instruction. To obtain the Help for the MODBUSPN V1.1 instruction you should get in touch with Technical Support.

The contents of the SIMATIC Modbus/TCP PN CP are included in STEP 7 (TIA Portal) V14 and higher. The MODBUSCP 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 6AV6676-6MB00-6AX0
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

6AV6676-6MB20-3AX0

Modbus/TCP PN CPU Redundant 1, 2, 3, 4, 5, 6, 15 and 16 6AV6676-6MB10-0AX0
Modbus/TCP 20 SENTRON PAC Integrated PROFINET interface of the CPU CPU with integrated PROFINET interface up to 20 SENTRON PAC 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 PAC CPU with integrated PROFINET interface up to 100 SENTRON PAC 6AV6676-6MA30-1AX0
Modbus/TCP 512 SENTRON PAC CPU with integrated PROFINET interface up to 512 SENTRON PAC 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.

  • Modbus/TCP PN CPU
    (Article number: 6AV6676-6MB20-3AX0)
    Download: 109745187
  • Modbus/TCP PN CPU Redundant
    (Article number: 6AV6676-6MB10-0AX0)
    Download: 103475102 
  • Modbus/TCP CP Redundant
    (Article number: 6AV6676-6MB30-3AX0)
    Download: 109739221
  • Modbus/TCP CP
    (Article number: 6AV6676-6MB00-6AX0)
    Download: 109749851 
  • Modbus/TCP SENTRON PAC
    (Article number: 6AV6676-6MA30-0AX0, 6AV6676-6MA30-1AX0, 6AV6676-6MA30-2AX0)
    Download: 103474714

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

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.
Support to the statistics
With this function the IDs found are listed according to number (format .txt).

Generate list
Copy URL
Display page in new design
mySupport Cockpit
Related links