Author Topic: Reading all PLC Tags (not data but literal string values for tag names)  (Read 3026 times)

paintman

  • Newbie
  • *
  • Posts: 17
    • View Profile
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?

dmroeder

  • Administrator
  • Full Member
  • *****
  • Posts: 212
    • View Profile
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

billerl

  • Newbie
  • *
  • Posts: 15
    • View Profile
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