Sei sulla pagina 1di 14

S7 - OPEN MODBUS / TCP Communication between Siemens

& GE PLC

Contents
Project Details ............................................................................................................................................... 2
Getting Started.............................................................................................................................................. 3
Commissioning .............................................................................................................................................. 4
Parameterization of Modbus Communication ............................................................................................. 6
Testing ......................................................................................................................................................... 11
Project Details

 Hardware

S7 PLC: CPU 315-2 PN/DP

6ES7 315-2EH14-0AB0 V3.2

GE PLC

You can find the latest hardware prerequisites on the internet:

http://w3.siemens.com/mcms/human-machine-interface/en/customized-
products/customized-
software/Pages/default.aspx?tabcardname=simatic%20modbus/tcp.

 Software

The usage of the FB MODBUSPN is possible with STEP7 Version 5.4 SP4 or
higher.

1. The FB MODBUSPN requires 6048 byte work memory and 7294 byte
load memory.
2. The FB MOD_CLI requires 11184 byte work memory and 12054 byte
load memory.
3. The FB MOD_SERV requires 10660 byte work memory and 11452
byte load memory.
4. The FB TCP_COMM requires 1880 byte work memory and 2224 byte
load memory.
Getting Started

 Procedure
1. Install “OpenModbusTCP PN CPU“ and insert the Modbus function
blocks into your SIMATIC project.
2. Parameterize the connection parameters regarding your
requirements (IP-address, port number, etc.).
3. Parameterize the Parameter-DBs MODBUS_PARAM regarding your
requirements (client/server, connect at start-up, register numbers,
DB numbers, etc.).
4. Call the Modbus block FB102 in the required OBs.
5. Parameterize the Modbus block for initialization and runtime.
6. Load the user program into the PLC and license the Modbus block for
this CPU.
For Step 2 and 3 used Run Modbus TCP Wizard and set all
parameter
Commissioning

 Installing Library

The attached CD contains a setup which installs the library


“Modbus_PN_CPU”, the sample projects and the manuals in English and
German in the corresponding STEP7 directories.

Or

Use Sarla tested backup “Ldc_Modbus_20112015_testedok.Zip” File

Follow Following Steps by using Sarla Tested backup

In Sample Project S7 PLC: Master (Client) and GE PLC: Slave (Server)

1. Create S7 project.
2. Copy and Paste OB, FB’s, FC’s and DB’s from Tested sample project.

In Tested project following IP used for Controllers

S7 PLC: 192.168.2.105

GE PLC: 192.168.2.110
3. Run Modbus TCP Wizard

For More details please refer Parameterization of Modbus Communication


section.
Parameterization of Modbus Communication

For Parameterization, Installed Modbus TCP Wizard Software and follow


following steps for configuration.

1.
2.

3.
4.

5.
For More information on Modbus Parameterization . Kindly read
following pdf file from Page 15 to 17.

S7 - OPEN MODBUS /
TCP Communication via the integrated PN interface of the PLC
After Parameterization steps follow following checks procedure before
download.
1. Open DB 2 and check following parameter as per your requirement.
2. Data type in sample project we used holding register (3) .
3. Once done above checking, Download hardware and software in PLC.

Testing

 Installed Modbus Poll (Modbus Simulator) software for Modbus Server (GE
PLC) data flow testing and give connection details in Connection >>
Connection Setup
 If Hardware of Server PLC and Connection settings are ok, it reads value
from Server. It shows everything is ok from Server (GE side)
 In Siemens PLC , After download Software and Hardware . Open VAT table
“Client_read_from_server” and check connection established bit status and
error code. If Connection Established bit is “True” and Connection Status is
“Zero” then connection is established and we are able to receive data from
server (GE PLC).
 For Licensing Error, Please refer PDF from Page 23 to 26 , But we can
established and able to send and receive data without License.

S7 - OPEN MODBUS /
TCP Communication via the integrated PN interface of the PLC

 Once communication is established, Check sends and receives data from


Server.

Potrebbero piacerti anche