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 :
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 :
If NetToPlcSim fail to close this service, you might do it manually (as administrator) :
2.3 Configuration
We need to “add” a new server:
We start by the “Network IP Address”, use the “…” and choose your computer IP :
Then do the same for the PlcSim IP (PlcSim has to be running) :
Your configuration should now looks like this :
Then we can click on “Start” to start the server:
Your gateway is ready !
3. Galileo Software (HMI)
The panel has to support Ethernet as we’ll use this for the communication between the PLC and HMI :
For the PLC IP, use the same as for PlcSim :
Create a new byte and not a bit (see below)
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’
Then we can map our byte to our bit in our DB :
Create a new value display/entry :
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!
Hi,
I’m not working with Eaton products since a while, no idea on this specific issue ! Sorry.
Ronan
Have u found solution? I have same problem with you .
Have u found solution? I have same problem with you .
I need delta HMI Simulation Image