Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - mas_Sam50

Pages: [1]
1
Support Questions / CompactLogix Over Net-Eni
« on: July 18, 2014, 11:08:29 AM »
Hello. Anyone know how to read tag  from a CompactLogix using Net-Eni ?
this is what i Try so far. C#

This is a basic connection without using threads or any type of validation .

Thank you guys.


private EthernetIPforCLXComm pumpRoom2;


 private Void InitializeConnection()
 {
   
                pumpRoom2 = new EthernetIPforCLXComm();

               
                pumpRoom2.IPAddress = _PumpRoomIPAddressENI;

}

private void PumpRoom()
        {
            while (isScanning)
            {
                try
                {
                   
                   //FirstTry
                    N7PumpRoom[0] = int.Parse(pumpRoom2.ReadAny("integers[0]"));
                   
                    //Secondtry
                    N7PumpRoom[0] = int.Parse(pumpRoom2.ReadAny("N7:0"));

                     ....
 
                }
                catch { }
            }

        }

Pages: [1]