Simulation : PLC (Siemens) and HMI (Eaton/Moeller with Galileo)

This post is following the one on Siemens PLC simulation with PlcSim.

1. PlcSim

We need a running program on PlcSim. PlcSim has to use the PLCSIM(TCP/IP) interface and has to be listening on the same IP as the computer.

Here a DB with one bit that is toggled every second :
21-S7-plcsim-simulation-running

Your PLC side is ready !

2. NetToPlcSim Software

2.1 Install

To allow Galileo and PlcSim to communicate we need a third party software that will act as a gateway : NetToPlcSim (OpenSource).

Download from : http://sourceforge.net/projects/nettoplcsim/

2.2 Startup

At startup, it’ll ask to close the service using the port 102 :
1-nettoplcsim-port-102

If NetToPlcSim fail to close this service, you might do it manually (as administrator) :
2-stop-Simatic-IEPG-help-service

2.3 Configuration

We need to “add” a new server:
3-nettoplcsim-add-new-server

The pamameters window :
4-nettoplcsim-add-new-server

We start by the “Network IP Address”, use the “…” and choose your computer IP :
5-nettoplcsim-add-new-server

Then do the same for the PlcSim IP (PlcSim has to be running) :
6-nettoplcsim-add-new-server

Your configuration should now looks like this :
7-nettoplcsim-add-new-server

Then we can click on “Start” to start the server:
8-nettoplcsim-start

Your gateway is ready !

3. Galileo Software (HMI)

Create a new project :
9-galileo-new-project

The panel has to support Ethernet as we’ll use this for the communication between the PLC and HMI :
10-galileo-panel-selection

11-galileo-panel-selection

For the PLC IP, use the same as for PlcSim :
12-galileo-select-PLC

13-galileo-IP-config

Create a new mask :
14-galileo-new-mask

Create a new byte and not a bit (see below)
15-galileo-new-byte

Why a byte and not a bit ?
Read and write 1 bit is not supported by Galileo via Ethernet. If you try to do so, you’ll have the following message when compiling :
ERROR: bit ‘MyBit’:the size of 1 bits is not supported (increase to 8 bits) — PLC ‘Siemens – Industrial Ethernet’
24-galileo-siemens-1bit-bug

Then we can map our byte to our bit in our DB :
16-galileo-address-byte

Create a new value display/entry :
17-galileo-new-value-display

And map it to our byte :
18-galileo-map-value-display-to-byte

Save and then compile :
19-galileo-compile

And we can start the simulation :
21-galileo-start-simulation

Booting step :
20-galileo-simulation-boot

And simulation running :
22-galileo-simulation-running

23-galileo-simulation-running

2 thoughts on “Simulation : PLC (Siemens) and HMI (Eaton/Moeller with Galileo)”

  1. Hello,

    I tried to connect the Galileo 10 simulator to the PLCSim via the NetToPlcSim interface. If you got only DB variables and not the byte / bit arrays with MBxx addressing, it works. But everything that has the EB/AB/MB address fails to be read – typically the bit arrays for alarms/warnings. Is there any way how to solve it, please? I did try everything to get it working… but to no avail. I actually can transfer all alarm statuses in my PLC program into a DB, but that’s means a lot of more work and increased risk of making an error. So in my case this is not the solution…
    Thanks!

    1. Hi,

      I’m not working with Eaton products since a while, no idea on this specific issue ! Sorry.

      Ronan

Leave a Reply

Your email address will not be published. Required fields are marked *