Example #1
0
        private void SetUnitStatus(EnumCellIndex CellIndex, EnumAirControl status)
        {
            switch (status)
            {
            case EnumAirControl.Blow:
                CellVacuums[CellIndex].MainPort.SetOutPortStatus(false);
                CellBlow.SetOutPortStatus(true);
                for (int i = 0; i < ClassAirUnit.VACCOUNT; i++)
                {
                    CellVacuums[CellIndex].AirPorts[i].SetOutPortStatus(true);
                }
                break;

            case EnumAirControl.Close:
                CellVacuums[CellIndex].MainPort.SetOutPortStatus(false);
                for (int i = 0; i < ClassAirUnit.VACCOUNT; i++)
                {
                    CellVacuums[CellIndex].AirPorts[i].SetOutPortStatus(false);
                }
                break;

            case EnumAirControl.Vacuum:
                CellVacuums[CellIndex].MainPort.SetOutPortStatus(true);
                for (int i = 0; i < ClassAirUnit.VACCOUNT; i++)
                {
                    CellVacuums[CellIndex].AirPorts[i].SetOutPortStatus(CellVacuums[CellIndex].AirPorts[i].PortEnable);
                }
                break;
            }
        }
Example #2
0
 public void AirControl(EnumCellIndex CellIndex, EnumAirControl status)
 {
     if (ClassWorkFlow.Instance.WorkMode == EnumWorkMode.空跑)
     {
         return;
     }
     if (status == EnumAirControl.None)
     {
         return;
     }
     SetUnitStatus(CellIndex, status);
 }
Example #3
0
 public void AirControl(EnumCellIndex CellIndex, EnumAirControl status)
 {
     if (ClassWorkFlow.Instance.WorkMode == EnumWorkMode.空跑)
     {
         return;
     }
     if (status == EnumAirControl.None)
     {
         return;
     }
     CellVacuums[CellIndex].SetUnitStatus(status == EnumAirControl.Vacuum);
     CellBlow[CellIndex].SetOutPortStatus(status == EnumAirControl.Blow);
 }
Example #4
0
 public void AirControl(EnumAirControl LeftVacuum, EnumAirControl MiddleVacuum, EnumAirControl RightVacuum)
 {
     AirControl(EnumCellIndex.左电芯, LeftVacuum);
     AirControl(EnumCellIndex.中电芯, MiddleVacuum);
     AirControl(EnumCellIndex.右电芯, RightVacuum);
 }