From ceccbd9f54fdfc30431f6350cd16278c16860465 Mon Sep 17 00:00:00 2001 From: 천호석 <hosuk1418@naver.com> Date: 월, 27 6월 2022 10:32:18 +0900 Subject: [PATCH] 기존 Heavy alarm 발생 후 alarm clear 시 R3(장비 상태 복구중) 으로 변경 -> Heavy alarm 발생 후 buzzer off 시 R3 (장비 상태 복구중), Alarm clear 시 W4(기타 정지중)으로 상태 변경 --- SHARP_CLAS_UI/300.Etc_Screen/Form_Alarm_List.cs | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/SHARP_CLAS_UI/300.Etc_Screen/Form_Alarm_List.cs b/SHARP_CLAS_UI/300.Etc_Screen/Form_Alarm_List.cs index 5f930a0..59804ef 100644 --- a/SHARP_CLAS_UI/300.Etc_Screen/Form_Alarm_List.cs +++ b/SHARP_CLAS_UI/300.Etc_Screen/Form_Alarm_List.cs @@ -94,8 +94,8 @@ _Parent._equip.cim_client.Send_Alarm("E12345678", false, Occurred_Alarm); } - if(AlarmList.Exists(x=> x.Heavy == true)) - _Parent._equip.Set_Equipment_Status_Code(En_Equipment_Status_Code.T3); + if (Alarm_Manager.Instance.Alarm_Status == En_Alarm_Status.HEAVY) + _Parent._equip.Set_Equipment_Status_Code(En_Equipment_Status_Code.W4); } } @@ -107,6 +107,14 @@ private void btn_Buzzer_Stop_Click(object sender, EventArgs e) { + if (_Parent._equip.cim_mode == En_Cim_Mode.Online) + { + if (AlarmList.Exists(x => x.Heavy == true)) + { + _Parent._equip.Set_Equipment_Status_Code(En_Equipment_Status_Code.T3); + } + } + _Parent._equip.Board_Control.IO_manager.Set_Output(OutputData.Buzzer_1_Relay, false); } -- Gitblit v1.9.3