LupoTB
Hello All,

I am really hoping this question will come off as idiotic because at this point I don't mind being the court jester...I just need answers.

I have OpenPLC running on a raspberry pi and my program works flawlessly.  I cannot, however, get my AdvancedHMI application to work.  I have gotten to the point where I just made a program with one button and one coil to try and troubleshoot it.  But no luck. 

I have seen so many posts on here with people saying they've gotten it working without a problem, that i think I must have missed something very fundamental and simple. 

I am using a windows 7 pc to make the hmi (temporarily, i plan on migrating it over to the pi later).  Is there a very detailed, step by step, description of what needs to be done to get these two things talking to each other?  I feel that I've tried everything in this forum and others but am just not making any headway.  I am using the ModbusTCPCom1 driver for this app.  I will change it later when I move it over.  

I have tried moving the Modbus port to a number over 1024 (which was suggested by Comfile).  No luck.  

Modbus Poll says its connected and will write successfully.

Ideally a working project would be a good starting point for me if anyone has one.  If I can get one button or light to work, I'll be on my way.

Thanks for your time.

Rob

 
Reply 0 0
Rox
be aware that advancehmi registers  starts at 1, so if you want to write to a coil 0, put 0001 in advancehmi.
Reply 0 0
thiagoralves
Start by making sure your windows pc can talk to your Pi. It could be a network issue. Download Radzio Modbus to simply read all Modbus registers on the Pi while OpenPLC is running. If it doesn’t work, then you need to troubleshoot your network.
Reply 0 0
LupoTB
Thank you for your reply. I have checked the registers with Radzio Modbus and all the data is readable including my analog values. Still no luck with advancedhmi though.
Reply 0 0
Josef Bernhardt
Hello,
I also tested the Advanced HMI software with the Raspberry PI and Modbus TCP with the ESP8266. It works without problems if the addresses are set correctly.
Here is the table with the correct data:
Greetings to Josef
ScreenShootModbusTable.jpg 
Reply 0 0
Josef Bernhardt
Here an Example with AdvancedHMI: ScreenshootESP8266.jpg 
Reply 0 0
Josef Bernhardt
Here an Example Board with ESP 8266 with Modbus TCP Software over WIFI !

ModbusModuleESP8266EA.jpg 
Reply 0 0
LupoTB
Thanks for the information.  I managed to solve my problems Friday night and it was as stupid oversight as I feared.  The AdvancedHMI wasn't populating each object I added with a driver.  After I fixed one, any new ones I added did autopopulate.  Very odd, but ok.  My only issue now is the GPIO on the ComfilePi isn't behaving properly. Because it's compute module based, I'm getting a not very helpful output when I use gpio readall.  If I ground a used input, the mapped input doesn't go low and the output I've set high is 0V.  I think I need to reassign the IO I'm using.  I am only using IX0.3 and QX0.0 but no luck.  Once again, I'm sure it's a silly mistake.  I'm doing this at night after a 12 hour shift, so I'm not so sharp. 

Thanks again for replying.  I'm glad this community is active and helpful.
Reply 0 0
Reply