AdvancedHMI Software

General Category => Support Questions => Topic started by: andreaboschetti71 on January 23, 2015, 07:57:14 AM

Title: Not possible to direct read values in user structure
Post by: andreaboschetti71 on January 23, 2015, 07:57:14 AM
I'm using 3.97d version. I have a user defined structure as this:
 "Registro" is a structure of 4 DINT : day,month,year, and nummod
then I have an array ("Deposti") of 4 "Registro" and I want to access to:
EthernetIPforCLXCom.read(Deposti[1].day) but always -20 value returned

Title: Re: Not possible to direct read values in user structure
Post by: Archie on January 23, 2015, 08:28:47 AM
A similar subject recently came up. The current address parser is unable to handle arrays of complex data types. The tag Deposit[1].day will get interpreted as Deposit.day[1]

I'm currently investigating this ability for a future version.
Title: Re: Not possible to direct read values in user structure
Post by: Archie on January 23, 2015, 08:46:57 PM
Try this patch file in this post:

http://advancedhmi.com/forum/index.php?topic=614.0

Title: Re: Not possible to direct read values in user structure
Post by: andreaboschetti71 on January 26, 2015, 04:56:34 AM
In version 3.82 I was able to read this
Title: Re: Not possible to direct read values in user structure
Post by: andreaboschetti71 on January 26, 2015, 04:59:36 AM
The patch seems work. thank you