AdvancedHMI Software

General Category => Support Questions => Topic started by: alanjr on November 16, 2024, 09:08:09 PM

Title: Display text
Post by: alanjr 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
Title: Re: Display text
Post by: Archie 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
Title: Re: Display text
Post by: alanjr 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
Title: Re: Display text
Post by: Archie 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?