AdvancedHMI Software

General Category => Support Questions => Topic started by: paintman on June 07, 2024, 11:07:16 AM

Title: Reading all PLC Tags (not data but literal string values for tag names)
Post by: paintman on June 07, 2024, 11:07:16 AM
Not sure if there is a way to do this, but I was curious if it was possible to be able to download the tag list itself.
I am currently working on a project which would be used for AB/Omron/Siemens to integrate fastec as a data monitoring system. The only problem is these machines are proprietary and I am unable to look at the tag names to reference them using AHMI, so I was hoping there would be a way to pull the tag names themselves into say a text document or a spreadsheet.

Does anyone have any ideas?
Title: Re: Reading all PLC Tags (not data but literal string values for tag names)
Post by: dmroeder on June 07, 2024, 12:20:38 PM
You can probably only do this with AB, not sure about Omron.  See if this post helps:

https://www.advancedhmi.com/forum/index.php?topic=3266.msg18519#msg18519
Title: Re: Reading all PLC Tags (not data but literal string values for tag names)
Post by: billerl 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