Author Topic: CLX reading sub elements of an array  (Read 1737 times)

dryheat

  • Newbie
  • *
  • Posts: 5
    • View Profile
CLX reading sub elements of an array
« on: May 12, 2015, 02:57:46 PM »
In the form activated event I'm getting a read error when trying to do this:

RecipeName = EthernetIPforCLXCom1.Read("gC20_Recipes.List[1].Name")

This does work:

RecipeName = EthernetIPforCLXCom1.Read("_JR_TestString")

Can I not read sub elements of an array? THX


Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: CLX reading sub elements of an array
« Reply #1 on: May 12, 2015, 03:13:16 PM »
What version are you using?

dryheat

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: CLX reading sub elements of an array
« Reply #2 on: May 12, 2015, 03:18:03 PM »
Version 3.97

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: CLX reading sub elements of an array
« Reply #3 on: May 12, 2015, 03:30:05 PM »
3.97g?

dryheat

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: CLX reading sub elements of an array
« Reply #4 on: May 12, 2015, 03:31:48 PM »
I must be 3.97c. That's the last entry in the ReleaseNotes.txt

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: CLX reading sub elements of an array
« Reply #5 on: May 12, 2015, 03:43:08 PM »
Try the latest version because there have been several changes in the last few versions that affect arrays and sub-elements of ControlLogix tags.

dryheat

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: CLX reading sub elements of an array
« Reply #6 on: May 12, 2015, 04:28:28 PM »
I downloaded version 39.8g. It won't open in VB Express 2010. Do I need to upgrade to Visual Studio Express 2013 for Windows Desktop?

If so do you have a link to VB Express 2013 download. There are a few different versions and I only need VB, not C#, Python etc.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: CLX reading sub elements of an array
« Reply #7 on: May 12, 2015, 04:34:53 PM »
The recommended version to use is Visual Studio Community Edition

https://www.visualstudio.com/en-us/products/visual-studio-community-vs.aspx

dryheat

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: CLX reading sub elements of an array
« Reply #8 on: May 13, 2015, 09:00:33 AM »
Version upgrades did the trick. Thanks..