AdvancedHMI Software

General Category => Support Questions => Topic started by: rmncavaco on July 06, 2016, 10:24:42 AM

Title: Retrieve UDT Structure
Post by: rmncavaco on July 06, 2016, 10:24:42 AM
Hello,

Is it possible to retrieve the UDT structures from a CLX? Or the plc only stores the tag name and the structure become a byte structure, which can be interpreted only by the programming IDE?

I searched a lot in the forum about my question i couldn't find an answer.

Thank you!

Ramon.
Title: Re: Retrieve UDT Structure
Post by: Archie on July 06, 2016, 10:39:56 AM
The AdvancedHMI driver does not support retrieving a UDT structure definition. If you read a UDT, it will return a string of encoded bytes that you can then extract and reconstruct the data. In the following thread, I posted a function that shows an example of extracting the data:

http://advancedhmi.com/forum/index.php?topic=1363.0
Title: Re: Retrieve UDT Structure
Post by: rmncavaco on July 06, 2016, 10:48:08 AM
Great!

Thanks a lot Archie.