Author Topic: Illegal Data Address - 2  (Read 1491 times)

pk

  • Newbie
  • *
  • Posts: 9
    • View Profile
Illegal Data Address - 2
« 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


Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Illegal Data Address - 2
« Reply #1 on: December 20, 2022, 10:04:59 AM »
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.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Illegal Data Address - 2
« Reply #2 on: December 20, 2022, 10:13:08 AM »
I took a look at the manual and the address 30002 should be the correct address for reading the temperature.

pk

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Illegal Data Address - 2
« Reply #3 on: December 20, 2022, 04:18:47 PM »
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

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Illegal Data Address - 2
« Reply #4 on: December 20, 2022, 04:30:19 PM »
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.