private bool CheckAssemblyAlarmSignal() { //var CB_Alarm = HalUniversal.ReadAlarm_Cabinet(); var CC_Alarm = HalUniversal.ReadAlarm_CleanCh(); //var CF_Alarm = HalUniversal.ReadAlarm_CoverFan(); //var BT_Alarm = HalUniversal.ReadAlarm_BTRobot(); //var MTClampInsp_Alarm = HalUniversal.ReadAlarm_MTClampInsp(); //var MT_Alarm = HalUniversal.ReadAlarm_MTRobot(); //var IC_Alarm = HalUniversal.ReadAlarm_InspCh(); //var LP_Alarm = HalUniversal.ReadAlarm_LoadPort(); //var OS_Alarm = HalUniversal.ReadAlarm_OpenStage(); //if (CB_Alarm != "") throw new CabinetPLCAlarmException(CB_Alarm); if (CC_Alarm != "") { throw new CleanChPLCAlarmException(CC_Alarm); } //if (CF_Alarm != "") throw new UniversalCoverFanPLCAlarmException(CF_Alarm); //if (BT_Alarm != "") throw new BoxTransferPLCAlarmException(BT_Alarm); //if (MTClampInsp_Alarm != "") throw new MTClampInspectDeformPLCAlarmException(MTClampInsp_Alarm); //if (MT_Alarm != "") throw new MaskTransferPLCAlarmException(MT_Alarm); //if (IC_Alarm != "") throw new InspectionChPLCAlarmException(IC_Alarm); //if (LP_Alarm != "") throw new LoadportPLCAlarmException(LP_Alarm); //if (OS_Alarm != "") throw new OpenStagePLCAlarmException(OS_Alarm); return(true); }
private bool CheckAssemblyWarningSignal() { //var CB_Warning = HalUniversal.ReadWarning_Cabinet(); var CC_Warning = HalUniversal.ReadWarning_CleanCh(); //var CF_Warning = HalUniversal.ReadWarning_CoverFan(); //var BT_Warning = HalUniversal.ReadWarning_BTRobot(); //var MTClampInsp_Warning = HalUniversal.ReadWarning_MTClampInsp(); //var MT_Warning = HalUniversal.ReadWarning_MTRobot(); //var IC_Warning = HalUniversal.ReadWarning_InspCh(); //var LP_Warning = HalUniversal.ReadWarning_LoadPort(); //var OS_Warning = HalUniversal.ReadWarning_OpenStage(); //if (CB_Warning != "") throw new CabinetPLCWarningException(CB_Warning); if (CC_Warning != "") { throw new CleanChPLCWarningException(CC_Warning); } //if (CF_Warning != "") throw new UniversalCoverFanPLCWarningException(CF_Warning); //if (BT_Warning != "") throw new BoxTransferPLCWarningException(BT_Warning); //if (MTClampInsp_Warning != "") throw new MTClampInspectDeformPLCWarningException(MTClampInsp_Warning); //if (MT_Warning != "") throw new MaskTransferPLCWarningException(MT_Warning); //if (IC_Warning != "") throw new InspectionChPLCWarningException(IC_Warning); //if (LP_Warning != "") throw new LoadportPLCWarningException(LP_Warning); //if (OS_Warning != "") throw new OpenStagePLCWarningException(OS_Warning); return(true); }
private bool CheckEquipmentStatus() { string Result = null; if (HalUniversal.ReadPowerON() == false) { Result += "Equipment is power off now, "; } if (HalUniversal.ReadBCP_Maintenance()) { Result += "Key lock in the electric control box is turn to maintenance, "; } if (HalUniversal.ReadCB_Maintenance()) { Result += "Outside key lock between cabinet_1 and cabinet_2 is turn to maintenance, "; } if (HalUniversal.ReadBCP_EMO().Item1) { Result += "EMO_1 has been trigger, "; } if (HalUniversal.ReadBCP_EMO().Item2) { Result += "EMO_2 has been trigger, "; } if (HalUniversal.ReadBCP_EMO().Item3) { Result += "EMO_3 has been trigger, "; } if (HalUniversal.ReadBCP_EMO().Item4) { Result += "EMO_4 has been trigger, "; } if (HalUniversal.ReadBCP_EMO().Item5) { Result += "EMO_5 has been trigger, "; } if (HalUniversal.ReadCB_EMO().Item1) { Result += "EMO_6 has been trigger, "; } if (HalUniversal.ReadCB_EMO().Item2) { Result += "EMO_7 has been trigger, "; } if (HalUniversal.ReadCB_EMO().Item3) { Result += "EMO_8 has been trigger, "; } if (HalUniversal.ReadLP1_EMO()) { Result += "Load Port_1 EMO has been trigger, "; } if (HalUniversal.ReadLP2_EMO()) { Result += "Load Port_2 EMO has been trigger, "; } if (HalUniversal.ReadBCP_Door()) { Result += "The door of electric control box has been open, "; } if (HalUniversal.ReadLP1_Door()) { Result += "The door of Load Port_1 has been open, "; } if (HalUniversal.ReadLP2_Door()) { Result += "The door of Load Pord_2 has been open, "; } if (HalUniversal.ReadBCP_Smoke()) { Result += "Smoke detected in the electric control box, "; } if (Result == null) { return(true); } else { throw new UniversalEquipmentException(Result); } }