7
« on: September 16, 2017, 12:14:58 PM »
Hello, I have an application that use datasubscriber object and in the past, connected with DF1Comm driver to a Micrologix1500 worked fine. Now I changed the PLC with a new Micrologix1400 with Ethernet port so I must use EthernetIPforSLCMicroCom driver but I'm not able to make datasubscriber working. I have an exception when I assign new tag address. For best understand I show you the instruction:
Old working
arraydatasubscriber(i - 1) = New MfgControl.AdvancedHMI.DataSubscriber(Me.components)
CType(arraydatasubscriber(i - 1), System.ComponentModel.ISupportInitialize).BeginInit()
arraydatasubscriber(i - 1).CommComponent = Me.DF1Comm1
arraydatasubscriber(i - 1).PLCAddressValue = "B39:0/0"
arraydatasubscriber(i - 1).SynchronizingObject = Me
arraydatasubscriber(i - 1).PollRate = 0
arraydatasubscriber(i - 1).Value = Nothing
CType(arraydatasubscriber(i - 1), System.ComponentModel.ISupportInitialize).EndInit()
New with exception in red row
arraydatasubscriber(i - 1) = New DataSubscriber(Me.components)
CType(arraydatasubscriber(i - 1), System.ComponentModel.ISupportInitialize).BeginInit()
arraydatasubscriber(i - 1).ComComponent = Me.EthernetIPforSLCMicroCom1
arraydatasubscriber(i - 1).PLCAddressValue.PLCAddress = "B39:0/0"
'arraydatasubscriber(i - 1).SynchronizingObject = Me
'arraydatasubscriber(i - 1).PollRate = 0
'arraydatasubscriber(i - 1).Value = Nothing
CType(arraydatasubscriber(i - 1), System.ComponentModel.ISupportInitialize).EndInit()
Can someone help me?
thank you in advance