AdvancedHMI Software
General Category => Open Discussion => Topic started by: pk on December 20, 2022, 09:51:36 AM
-
Hi
Started Advanced HMI, abandoned it and now trying again to get it going
Trying to build a very simple drag and drop project
Bought a Temperature / Humidity Sensor - Modbus RTU (XY - MD02)
I can read the values on a Generic Modbus Tester
Tried it on Advanced HMI by giving the same address and get an ILLEGAL DATA ADDRESS - 2 error
Tried 3 different panel meters with different formats in PLCAddressValue (30001, 030001, 300001...)
Can see someone did a similar project and got it going - https://youtu.be/pEtde_xk-zU
Can some one help me out, determined to get it working :)
Thanks
-
Can you show the properties for the Modbus driver and the DigitalPanelMeter? Add a BasicLabel and test with that, it sometimes shows more error details.
The Illegal Data Address is a response from the Modbus device, so it doesn't like something. Try to use the function code forcing by putting 4:0000 in the PLCAddressVale property.
-
I took a look at the manual and the address 30002 should be the correct address for reading the temperature.
-
Hi Archie
Thanks for the info, The address is 30002
Had to do the panel meters one at a time and they are working now
Thanks a lot Archie, getting more confidence
Regards, Philips
-
Thanks for the info, The address is 30002
Had to do the panel meters one at a time and they are working now
That makes sense because the driver will group reads together to optimize the read speed. If you had one panel meter using 30001 and another using 30002, the driver would try to use one read of 2 registers starting at 30001, therefore the illegal address error.