Hi Archie,
Thanks for the quick response.
If I try to put "FAULT[231]" into a BasicLabel, it displays an error:
Read Failed. The particular item referenced (usually instance) could not be found, Status Code=5
If I put "FAULT[0]", the label shows "False". If I try any other values like 100 and 200, I'll get the same error as above. If I try doing "FAULT[1]", it gets an error on this line in the EthernetIPforCLXCom.vb file saying "Arithmetic operation resulted in an overflow".
BitResult(0) = CStr((CInt(2 ^ SubscriptionList(i).PLCAddress.BitNumber) And CInt(BitResult(0))) > 0)
If I try to read doing this, it seems to work. I can stop the program and see that values has 320 items in it with True/False:
Dim values(320) As String
values = EthernetIPforCLXCom1.Read("FAULT[0]", 320)
Dim x As String = values(0)
If I do this, it gets an error in the Read Function in EthernetIPforCLXCom.vb .
Read Failed. The particular item referenced (usually instance) could not be found, Status Code=5
Dim valuesy(7) As String
values = EthernetIPforCLXCom1.Read("FAULT[231]",
Dim y As String = values(0)
If I'm trying to do DataSubscribers in code, using something like this:
For i = 231 To 238
objDataSubscribers(DataSubscriberCount) = New MfgControl.AdvancedHMI.DataSubscriber
objDataSubscribers(DataSubscriberCount).CommComponent = EthernetIPforCLXCom1
objDataSubscribers(DataSubscriberCount).SynchronizingObject = Me
objDataSubscribers(DataSubscriberCount).PLCAddressValue = "FAULT[" & i.ToString & "]"
AddHandler objDataSubscribers(DataSubscriberCount).DataChanged, AddressOf DataSubscriber_DataChanged
DataSubscriberCount += 1
Next
How should I reference the PLCAddressValue?
Thanks,
Chris