AdvancedHMI Software

General Category => Support Questions => Topic started by: mpfs on February 19, 2018, 04:33:42 AM

Title: Determine structure of UDT at runtime? (ClxDriver 1.2.3.0)
Post by: mpfs on February 19, 2018, 04:33:42 AM
Hello,

with the introduction of WriteRaw / WriteUDT I can seamlessly write data to a UDT. So far so good.  ;)
The only drawback of this is that I need to know how the UDT is structured, that is to say, what kind of elements make up my UDT (REAL, BOOL, and so forth).

Is there a method or a possibility to determine - from a UDT tag - how it is structured? This way I would not have to create a structure in my program and maintain it if the UDT's structure should change. If there is no such method, I think this would be a very useful, as it would provide flexibility.

Thanks!
Title: Re: Determine structure of UDT at runtime? (ClxDriver 1.2.3.0)
Post by: Archie on February 19, 2018, 08:33:10 PM
Retrieving UDT definition is a 3 step process:

1) Read ALL tags ( this can take several minutes on a large program)
2) From the Instance ID, retrieve the symbol type (UDT)
3) From the symbol type information, read the template (UDT) member information 

The current driver only supports reading all of the tags. In a future version, more generic CIP control will be added to execute the services for steps 2 and 3
Title: Re: Determine structure of UDT at runtime? (ClxDriver 1.2.3.0)
Post by: mpfs on February 21, 2018, 11:16:26 AM
Hello Archie,

thank you for the information.
Title: Re: Determine structure of UDT at runtime? (ClxDriver 1.2.3.0)
Post by: mpfs on April 20, 2018, 09:46:06 AM
Hello Archie,

is a new version soon to be released? Do you have an ETA when we can expect a new version?
Thank you very much!