AdvancedHMI Software
General Category => Support Questions => Topic started by: ScottyP 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?
-
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.
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.
-
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