auto mode 일 때 key switch 돌리지 못하도록 수정.
| | |
| | | return; |
| | | } |
| | | |
| | | if (_Parent._equip.equip_mode == En_Equipment_Mode.Auto && _Parent.sm.Get_Bit(Output_Memory_Address.Safety_Mode_SW_Unlock) == false) |
| | | { |
| | | Interlock_Manager.Add_Interlock_Msg("Key switch can't change.", "Equipment mode is Auto"); |
| | | return; |
| | | } |
| | | |
| | | Button data = (Button)sender; |
| | | _Parent.WriteButtonLog($"{this.Name},{data.Name}"); |
| | | _Parent._equip.Board_Control.IO_manager.Set_Output(OutputData.Safety_Mode_SW_Unlock, !_Parent.sm.Get_Bit(Output_Memory_Address.Safety_Mode_SW_Unlock)); |