Esempio n. 1
0
        public RobotToolsPlc()
        {
            _robotToolsPlcHelper = new RobotToolsPlcHelper();
            _robotToolsPlcHelper.Connect("192.168.1.7", 0, 0);

            context = new RobotToolsContext();

            OnPlcValuesRefreshed(null, null);
            _robotToolsPlcHelper.ValuesRefreshed += OnPlcValuesRefreshed;
        }
 private void Connect()
 {
     if (PlcIpAddress == "192.168.1.1")
     {
         _smartWorkshopPlcHelper.Connect(PlcIpAddress, 0, 0);
     }
     else if (PlcIpAddress == "192.168.1.7")
     {
         _robotToolsPlcHelper.Connect(PlcIpAddress, 0, 0);
     }
 }