Пример #1
0
 protected override void Reset(ClassErrorHandle err)
 {
     AxisTransPNPX.ServoOn = true;
     AxisTransPNPX.SetZero();
     if (!PNPCylinder.SetCylinderState(CYLIND_UP, ClassErrorHandle.TIMEOUT))
     {
         err.CollectErrInfo("气缸无法上移");
     }
     if (err.NoError)
     {
         AxisTransPNPX.HomeFinish        = true;
         AxisTransPNPX.NeedToCheckSafety = false;
         double speed = AxisTransPNPX.DefaultSpeed;
         AxisTransPNPX.DefaultSpeed = Math.Abs(AxisTransPNPX.JogSpeed);
         AxisTransPNPX.StepMove(-80);
         AxisTransPNPX.DefaultSpeed      = speed;
         AxisTransPNPX.NeedToCheckSafety = true;
         err.CollectErrInfo(AxisTransPNPX.Home(EnumPointPNPX.Unload.ToString()));
     }
     for (int i = 0; i < CELLCOUNT; i++)
     {
         TransLoadDataStations[i].CellData   = null;
         TransUnloadDataStations[i].CellData = null;
     }
 }
Пример #2
0
 protected override void Reset(ClassErrorHandle err)
 {
     AxisUnloadPNPY.ServoOn = true;
     AxisUnloadPNPY.SetZero();
     if (!PNPCylinder.SetCylinderState(CYLIND_UP, ClassErrorHandle.TIMEOUT))
     {
         err.CollectErrInfo("气缸无法上移");
     }
     if (err.NoError)
     {
         AxisUnloadPNPY.HomeFinish        = true;
         AxisUnloadPNPY.NeedToCheckSafety = false;
         double temp = AxisUnloadPNPY.DefaultSpeed;
         AxisUnloadPNPY.DefaultSpeed = Math.Abs(AxisUnloadPNPY.JogSpeed);
         AxisUnloadPNPY.StepMove(-30);
         AxisUnloadPNPY.DefaultSpeed      = temp;
         AxisUnloadPNPY.NeedToCheckSafety = true;
         err.CollectErrInfo(MotorReset(AxisUnloadPNPY, EnumPoint.Place));
     }
 }