Author Topic: Retrieve UDT Structure  (Read 1486 times)

rmncavaco

  • Newbie
  • *
  • Posts: 2
    • View Profile
Retrieve UDT Structure
« 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.
Ramon Cavaco

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5317
    • View Profile
    • AdvancedHMI
Re: Retrieve UDT Structure
« Reply #1 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
« Last Edit: July 06, 2016, 11:07:37 AM by Archie »

rmncavaco

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Retrieve UDT Structure
« Reply #2 on: July 06, 2016, 10:48:08 AM »
Great!

Thanks a lot Archie.

Ramon Cavaco