Hey all,
First I have to say that this is fantastic software, so props to Archie for working so hard to get to this point.
I have the subscribe/read/write process working successfully, but rather then entering in the tags manually I was hoping to get a list.
I am trying to get a tag list from a CLX PLC which has *a lot* of tags (including UDT, DINT arrays etc) using the following code: - [Now my understanding is that I wont be able to get the UDT as they require special communications using the driver, but was hoping that I could still get all other variables (including arrays)]
Try
Dim tags() As MfgControl.AdvancedHMI.Drivers.CLXTag = Me.EthernetIPforCLXComm1.GetTagList
Dim TagIndex As Integer = 0
For Each TagID In tags
ComboBox1.Items.Add(tags(TagIndex).TagName & " " & tags(TagIndex).Instance)
TagIndex = TagIndex + 1
Next
ComboBox1.Sorted = True
Catch ex As Exception
MsgBox(ex.Message)
End Try
When I try to run its gets the following exception message: "Timeout when retrieving ControlLogix tags"
I am assuming the error is related to the number of tags that are declared in the PLC (out of my control), so I was wondering if there was a fix or workaround for this?
Cheers,
Steve