I gave AdvancedHMIv399yBeta38 a try, and did not have any success.
I included the test program.
If I comment out the BoolTest list and the for loop that initializes the list the ReadUDT returns as expected.
I am grateful for any help.
Module Module1
Sub Main()
Dim plc As New AdvancedHMIDrivers.EthernetIPforCLXCom
With plc
.IPAddress = "192.168.1.9"
.PollRateOverride = 1000
.ProcessorSlot = 0
End With
Dim obj As SRTest1 = plc.ReadUDT(Of SRTest1)("SRTest1") <--- Error happens on ReadUDT <Index was out of range. Must be non-negative and less than the size of the collection.>
End Sub
Public Class SRTest1
Public Property TestS1 As String
Public Property TestS2 As New UDT_Pan_Stile
Public Property SRTestS3 As Int32
Public Property BoolTest As New List(Of Boolean)
Public Sub New()
For i = 0 To 31
BoolTest.Add(False)
Next
End Sub
End Class
Public Class UDT_Pan_Stile
Public Property Location As Single
Public Property Type As Int32
Public Property Gauge As Single
End Class
End Module