Beispiel #1
0
 public override ErrorInfoWithPause ResetOutPort()
 {
     base.ResetOutPort();
     for (int i = 0; i < LoadCellVacuums.Count; i++)
     {
         LoadCellVacuums[i].MainPort.SetOutPortStatus(false);
         foreach (ClassAirPort vacuum in LoadCellVacuums[i].AirPorts)
         {
             vacuum.SetOutPortStatus(false);
         }
     }
     for (int i = 0; i < UnloadCellVacuums.Count; i++)
     {
         UnloadCellVacuums[i].MainPort.SetOutPortStatus(false);
         foreach (ClassAirPort vacuum in UnloadCellVacuums[i].AirPorts)
         {
             vacuum.SetOutPortStatus(false);
         }
     }
     TimeClass.Delay(200);
     LoadCellBlow.SetOutPortStatus(false);
     UnloadCellBlow.SetOutPortStatus(false);
     if (!PNPCylinder.SetCylinderState(CYLIND_UP, ClassErrorHandle.TIMEOUT))
     {
         return(new ErrorInfoWithPause("气缸上升错误", ErrorLevel.Error));
     }
     else
     {
         return(null);
     }
 }
Beispiel #2
0
 public void AirUnloadControl(EnumCellIndex CellIndex, EnumAirControl status)
 {
     if (ClassWorkFlow.Instance.WorkMode == EnumWorkMode.空跑)
     {
         return;
     }
     if (status == EnumAirControl.None)
     {
         return;
     }
     UnloadCellVacuums[CellIndex].SetUnitStatus(status == EnumAirControl.Vacuum);
     UnloadCellBlow.SetOutPortStatus(status == EnumAirControl.Blow);
 }