Author Topic: Display text  (Read 610 times)

alanjr

  • Newbie
  • *
  • Posts: 2
    • View Profile
Display text
« on: November 16, 2024, 09:08:09 PM »
Hello,

I have a Click PLC communicating via ModbusTCP. I am able to use the basic label to display a number by setting the PLCAddressValue to the MODBUS address in the Click PLC. However when I try use the MODBUS address for TXT value the basic label displays a 0.

I would appreciate any help.

Thanks

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Display text
« Reply #1 on: November 17, 2024, 08:16:12 AM »
Modbus as a protocol doesn't support string natively, but there is a way to tell the driver to convert an array of values into a string by using an address modifier.

For example,

40001@S10


https://www.advancedhmi.com/forum/index.php?topic=2657.msg15970#msg15970

alanjr

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Display text
« Reply #2 on: November 20, 2024, 03:33:44 PM »
Archie,

I have been unable to get this to work. Is it possible because the Click PLC has a text address in the 9000h range? (Or starting at 436865 for MODBUS 984 addressing)

Just a guess but I wasn't sure if the driver isn't converting it because of the address range.

Thanks

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Display text
« Reply #3 on: November 20, 2024, 04:03:36 PM »
Are you still only seeing a "0" if you use the address 436865@S10 for PLCAddressValue in a BasicLabel ?

What character is in the data table for the first address?