From d996f177771642bf49bf40bffd8218db42483d3d Mon Sep 17 00:00:00 2001 From: 천호석 <hosuk1418@naver.com> Date: 금, 02 12월 2022 17:38:11 +0900 Subject: [PATCH] 장비 auto mode가 아닐 때 power meter 위치에서 벗어나 laser on 할 시 laser off 후 interlock 발생. --- SHARP_CLAS_UI/500.Equipment/Equipment.cs | 75 +++++++++++++++++++++++++++++++++++-- 1 files changed, 71 insertions(+), 4 deletions(-) diff --git a/SHARP_CLAS_UI/500.Equipment/Equipment.cs b/SHARP_CLAS_UI/500.Equipment/Equipment.cs index 0cdb73a..4a9ce5f 100644 --- a/SHARP_CLAS_UI/500.Equipment/Equipment.cs +++ b/SHARP_CLAS_UI/500.Equipment/Equipment.cs @@ -366,7 +366,24 @@ sm.Set_Value(Process_Memory_Address.ULD_Tray_Ng_Count, value); } } - + + public int WidthMeasurementCount + { + get + { + int count; + object value; + + sm.Get_Value(Process_Memory_Address.Width_Measurement_Count, out value); + int.TryParse($"{value}", out count); + return count; + } + set + { + sm.Set_Value(Process_Memory_Address.Width_Measurement_Count, value); + } + } + public Main_Recipe Cur_Main_Recipe { get @@ -547,7 +564,7 @@ private User_Info _user; private SequenceTimer _modeChangeTime = new SequenceTimer(); - private string _programVersion = "001.001.004"; + private string _programVersion = "001.002.001"; #endregion #region Construct @@ -561,7 +578,7 @@ power_meter = new Power_Meter(this, "COM3"); power_meter.Open(); - + power_meter.HandShakingOn(); Create_Exception_logger(); Create_Panel_Info_logger(); Create_Tact_Time_logger(); @@ -724,6 +741,16 @@ { Set_Load_Tray_Buzzer(false); Board_Control.IO_manager.Set_Output(OutputData.Buzzer_1_Relay, false); + + if(cim_mode == En_Cim_Mode.Online) + { + if (Alarm_Manager.Instance.Alarm_Status == En_Alarm_Status.HEAVY) + { + Set_Equipment_Status_Code(En_Equipment_Status_Code.T3); + Set_Equipment_Status_Code(En_Equipment_Status_Code.W4); + } + } + Alarm_Manager.Instance.Alarm_Clear(); } } @@ -744,6 +771,16 @@ { Set_Unload_Tray_Buzzer(false); Board_Control.IO_manager.Set_Output(OutputData.Buzzer_1_Relay, false); + + if (cim_mode == En_Cim_Mode.Online) + { + if (Alarm_Manager.Instance.Alarm_Status == En_Alarm_Status.HEAVY) + { + Set_Equipment_Status_Code(En_Equipment_Status_Code.T3); + Set_Equipment_Status_Code(En_Equipment_Status_Code.W4); + } + } + Alarm_Manager.Instance.Alarm_Clear(); unloader.LiftNg.Shuttle.Forward(); } @@ -941,7 +978,12 @@ if (!Align_vision.isConnected) Alarm_Manager.Instance.Occurred(En_Alarm_List.AL_0510_ALIGN_VISION_DISCONNECT); if (!Aoi_vision.isConnected) Alarm_Manager.Instance.Occurred(En_Alarm_List.AL_0511_AOI_VISION_DISCONNECT); - if (!power_meter.isOpen && !Alarm_Manager.Instance.Occured_List.Exists(X => X.Code == En_Alarm_List.AL_0930_POWER_METER_DISCONNECTED)) { Alarm_Manager.Instance.Occurred(En_Alarm_List.AL_0930_POWER_METER_DISCONNECTED); power_meter.Open(); } + if (!power_meter.isOpen && !Alarm_Manager.Instance.Occured_List.Exists(X => X.Code == En_Alarm_List.AL_0930_POWER_METER_DISCONNECTED)) + { + Alarm_Manager.Instance.Occurred(En_Alarm_List.AL_0930_POWER_METER_DISCONNECTED); + power_meter.Open(); + power_meter.HandShakingOn(); + } if (equip_mode == En_Equipment_Mode.Auto && dt.Second % 10 == 0 && (loader.Panel_Exist && before.Panel_Exist && process.Panel_Exist && after.Panel_Exist && unloader.Panel_Exist) && !units.Exists(x => x.sequenceChangedTime.Minute < 10)) { @@ -954,6 +996,25 @@ LD_Stop = true; panel_count_info.CleaningCount = 0; Panel_Count_Info_Manager.Instance.Save_Panel_Count_Info(panel_count_info); + } + + if(equip_mode != En_Equipment_Mode.Auto) // Auto mode媛� �븘�땺 �븣 + { + if(equip_mode == En_Equipment_Mode.Pause && units.Exists(x => x.UnitMode != equip_mode)) + { + // Pause wait �긽�깭 �씪 �븣�뒗 interlock 諛쒖깮 X + } + else + { + if (process.ablation.Get_Is_Position_X_Power_Meter() && process.ablation.Get_Is_Position_Z_Power_Meter()) + { + if (sm.Get_Bit(Input_Memory_Address.Laser_Active)) + { + scanner.Set_Laser_Off(); + Interlock_Manager.Add_Interlock_Msg("Laser can't on.", "Please move power meter position."); + } + } + } } } catch(Exception e) @@ -1420,6 +1481,12 @@ return false; } + if(Door_Opened) + { + Interlock_Manager.Add_Interlock_Msg("Can't Change auto mode.", "Please door close."); + return false; + } + if(!Is_Home_Complete) { Interlock_Manager.Add_Interlock_Msg("Can't Change auto mode.", "Please Set Home."); -- Gitblit v1.9.3