Author Topic: Not possible to direct read values in user structure  (Read 1244 times)

andreaboschetti71

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Not possible to direct read values in user structure
« 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


Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Not possible to direct read values in user structure
« Reply #1 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.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Not possible to direct read values in user structure
« Reply #2 on: January 23, 2015, 08:46:57 PM »

andreaboschetti71

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: Not possible to direct read values in user structure
« Reply #3 on: January 26, 2015, 04:56:34 AM »
In version 3.82 I was able to read this

andreaboschetti71

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: Not possible to direct read values in user structure
« Reply #4 on: January 26, 2015, 04:59:36 AM »
The patch seems work. thank you