Author Topic: List of tags...  (Read 1836 times)

ScottyP

  • Newbie
  • *
  • Posts: 15
    • View Profile
List of tags...
« on: September 29, 2023, 09:48:02 AM »
Hi folks, when using EthernetIPforCLX.GetTagList - I get a lot of things which are not visible in the PLC tag list, and things which are the top level of an array, and not the members of the array. (MyFLoat[100] just comes out as MyFloat)

I only have controller-scoped tags and no program scoped ones, there are also lots of things like _DEFVAL_0000DEE etc, what are these and why do they show up when they aren't visible in the controller tag list in Studio?

dmroeder

  • Administrator
  • Full Member
  • *****
  • Posts: 212
    • View Profile
Re: List of tags...
« Reply #1 on: September 29, 2023, 10:48:28 AM »
The tag "MyFloat" is in fact just "MyFloat".  The tag name is not "MyFloat[100]".  You need to look at some additional properties of each tag that is returned.

Code: [Select]
Dim TagList() As AdvancedHMI.Drivers.CLXTag = EthernetIPforCLXCom1.GetTagList
MessageBox.Show(TagList(0).ArrayElements1)

The CIP object that returns the tag database contains other things as well.  In your example, __DEFVAL has to do with AOI definitions. 

Godra

  • Hero Member
  • *****
  • Posts: 1447
    • View Profile
Re: List of tags...
« Reply #2 on: September 30, 2023, 03:47:01 AM »
ScottyP, just so you are aware, there are also AHMI controls that get tag list and could be added to the project:

  https://www.advancedhmi.com/forum/index.php?topic=2850.0