1
Support Questions / Re: Reading all PLC Tags (not data but literal string values for tag names)
« on: June 17, 2024, 02:14:01 PM »
With AB I linked this to a button click (BtnReadTags) event then populated a combo box (CBTags) with all of the tag names
Code: [Select]
Private Sub BtnReadTags_Click(sender As Object, e As EventArgs) Handles BtnReadTags.Click
Try
Dim tags() As MfgControl.AdvancedHMI.Drivers.CLXTag = SeeThruForm.EthernetIPforCLXCom1.GetTagList
Dim TagIndex As Integer = 0
For Each TagID In tags
CBTags.Items.Add(tags(TagIndex).TagName)
TagIndex = TagIndex + 1
Next
CBTags.Sorted = True
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub