Author Topic: Reading array  (Read 4894 times)

andreaboschetti71

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Reading array
« on: November 18, 2013, 03:40:32 AM »
In previous version there was a command for reading an array in one shot. How can I do this in last version? thank you

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Reading array
« Reply #1 on: November 18, 2013, 06:23:47 AM »
This is how to read an array from a ControlLogix:

Dim MyArray() as string
MyArray=EthernetIPforCLXCom1.Read("MyTagArray",10)

andreaboschetti71

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: Reading array
« Reply #2 on: November 25, 2013, 07:24:16 AM »
Also for DFComm driver?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Reading array
« Reply #3 on: November 25, 2013, 05:08:36 PM »
This is defined in the interface of the drivers, so all drivers use the same syntax for reading multiple consecutive elements.