示例#1
0
        }                      //constructor (private becouse can be created only once)

        private void Init()
        {
            robotConnection  = new RobotConnection();
            visionParam      = new VisionParam();
            calculate        = new Calculate();
            mainCycle        = new Stahli2Robots.MainCycle();
            errorDescription = new ErrorDescription();

////////////////////////////
            loadCarrier   = new Carrier();
            loadTray      = new Tray();
            unLoadTray    = new Tray();  //no camera
            unLoadCarrier = new Tray();
            cam1          = new VisionState();
            cam2          = new VisionState();
            cam3          = new VisionState();
////////////////////////////

            xmlSerialize = new Stahli2Robots.XMLSerialize();
            appSetting   = new AppSettings();
            orderParams  = new OrderParams();

            appSetting.Init();
            orderParams.Init();
        }
示例#2
0
 private void CopyData(OrderParams other)
 {
     InsertCode            = other.InsertCode;
     InsertDescription     = other.InsertDescription;
     ProductCode           = other.ProductCode;
     InsertSymetry         = other.InsertSymetry;
     InsertHeight          = other.InsertHeight;
     SensorHeight          = other.SensorHeight;
     InsertHoleDiameter    = other.InsertHoleDiameter;
     GripperCode           = other.GripperCode;
     ServiceLoadTrayName   = other.ServiceLoadTrayName;
     ServiceUnloadTrayName = other.ServiceUnloadTrayName;
     CarrierName           = other.CarrierName;
     Cam1_Brightness       = other.Cam1_Brightness;
     Cam2_Brightness       = other.Cam2_Brightness;
     Cam3_Brightness       = other.Cam3_Brightness;
     Cam1_Contrast         = other.Cam1_Contrast;
     Cam2_Contrast         = other.Cam2_Contrast;
     Cam3_Contrast         = other.Cam3_Contrast;
     Cam1_Trashhold        = other.Cam1_Trashhold;
     Cam2_Trashhold        = other.Cam2_Trashhold;
     Cam3_Trashhold        = other.Cam3_Trashhold;
     Cam1_Score            = other.Cam1_Score;
     Cam2_Score            = other.Cam2_Score;
     Cam3_Score            = other.Cam3_Score;
     Cam1_Angle            = other.Cam1_Angle;
     Cam3_Angle            = other.Cam3_Angle;
 }