Author Topic: Get maximum number of elements of a tag  (Read 1202 times)

lorenzocase94@gmail.com

  • Newbie
  • *
  • Posts: 1
    • View Profile
Get maximum number of elements of a tag
« on: June 17, 2020, 08:17:46 AM »
Hello, is it possible to obtain the maximum number of elements correlated to a TAG?
If yes, how?
I would like to read all the tags in my PLC (using GetTagList() method) and for each one of them automatically read all the available elements (i.e. setting the numberOfElements parameter to the maximum value).
Thank you in advance for you help!

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5320
    • View Profile
    • AdvancedHMI
Re: Get maximum number of elements of a tag
« Reply #1 on: July 02, 2020, 11:51:41 AM »
I assume you mean the limit of an array. The GetTagList returns a value of ArrayDimensions and NumberOfDimensions, but right off I don't remember exactly where those values come from. I would have to set a demo to check.