Author Topic: Two driver objects with equal IP - Error  (Read 1051 times)

Dean

  • Newbie
  • *
  • Posts: 7
    • View Profile
Two driver objects with equal IP - Error
« on: December 01, 2015, 08:04:15 AM »
Hello,

I'm using two objects of EthernetIPforCLXCom. The two object have the same IP but different ports/slots. Obviously one of them has wrong port number. When I try to use the correct one it returns error.
Is that a bug or this is expected ?
Here is the code:

           _clxDriver = new EthernetIPforCLXCom();
            _clxDriver2 = new EthernetIPforCLXCom();

            _clxDriver.IPAddress = "192.168.1.102";
            _clxDriver.Port = 44818;
            _clxDriver.ProcessorSlot = 0;

            _clxDriver2.IPAddress = "192.168.1.102";
            _clxDriver2.Port = 44819;      //wrong port number
            _clxDriver2.ProcessorSlot = 0;
           
          _clxDriver.ComError += _clxDriver_ComError;
----
          _clxDriver.Subscribe(tagName, 1, 1000, _clxDriver_CallBack);   //this should be working but _clxDriver_ComError returns Error

Thanks!