using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WeldingCommon.Alarm { public static class AlarmCode { #region System 100001 ~ 109999 // System // System - HDD, 필요시 사용 public const int ALARM_HDD_LIMIT_C = 100000; public const int ALARM_HDD_LIMIT_D = 100001; public const int ALARM_HDD_LIMIT_E = 100002; #endregion #region Sequence 200000 ~ 209999 // Sequence 알람은 모두 Low Level 로 처리한다. // 종료는 Node 에서 null 로 처리 되면 종료 됨. Alarm(Low) 만 발생할 경우 null 처리 안하면 종료 안되기 때문 // 언더바(_) 가 계속 늘어 날 수 있어, 카멜케이스로 작성함. // Sequence - Calibration(0) - MarkGrid public const int ALARM_SEQUENCE_MarkGrid_ResultFailed = 200000; public const int ALARM_SEQUENCE_MarkGrid_DeviceNotReady = 200001; public const int ALARM_SEQUENCE_MarkGrid_InitVariableError = 200002; public const int ALARM_SEQUENCE_MarkGrid_CheckInitCondition = 200003; public const int ALARM_SEQUENCE_MarkGrid_TimeOverExcuteList = 200004; // Sequence - Calibration(0) - ScannerCalibration public const int ALARM_SEQUENCE_ScannerCalibration_ResultFailed = 200100; public const int ALARM_SEQUENCE_ScannerCalibration_DeviceNotReady = 200101; public const int ALARM_SEQUENCE_ScannerCalibration_InitVariableError = 200102; public const int ALARM_SEQUENCE_ScannerCalibration_CheckInitCondition = 200103; // Sequence - Main(1~) - ScoutNormal public const int ALARM_SEQUENCE_ScoutNormal_ResultFailed = 201000; public const int ALARM_SEQUENCE_ScoutNormal_DeviceNotReady = 201001; public const int ALARM_SEQUENCE_ScoutNormal_InitVariableError = 201002; public const int ALARM_SEQUENCE_ScoutNormal_CheckInitCondition = 201003; // Sequence - Main(1~) - ScoutFlyingVision public const int ALARM_SEQUENCE_ScoutFlyingVision_ResultFailed = 201100; public const int ALARM_SEQUENCE_ScoutFlyingVision_DeviceNotReady = 201101; public const int ALARM_SEQUENCE_ScoutFlyingVision_InitVariableError = 201102; public const int ALARM_SEQUENCE_ScoutFlyingVision_CheckInitCondition = 201103; // Sequence - Main(1~) - UploadWeldingList public const int ALARM_SEQUENCE_UploadWeldingList_ResultFailed = 201200; public const int ALARM_SEQUENCE_UploadWeldingList_DeviceNotReady = 201201; public const int ALARM_SEQUENCE_UploadWeldingList_InitVariableError = 201202; public const int ALARM_SEQUENCE_UploadWeldingList_CheckInitCondition = 201203; // Sequence - Main(1~) - ReceiveCellInfo public const int ALARM_SEQUENCE_ReceiveCellInfo_ResultFailed = 201300; public const int ALARM_SEQUENCE_ReceiveCellInfo_DeviceNotReady = 201301; public const int ALARM_SEQUENCE_ReceiveCellInfo_InitVariableError = 201302; public const int ALARM_SEQUENCE_ReceiveCellInfo_CheckInitCondition = 201303; // Sequence - Main(1~) - ReportCellResult public const int ALARM_SEQUENCE_ReportCellResult_ResultFailed = 201400; public const int ALARM_SEQUENCE_ReportCellResult_DeviceNotReady = 201401; public const int ALARM_SEQUENCE_ReportCellResult_InitVariableError = 201402; public const int ALARM_SEQUENCE_ReportCellResult_CheckInitCondition = 201403; // Main 이 더 늘어 나면, 30부터 시작으로 변경 // Sequence - Manual(2~) - TeachingRun public const int ALARM_SEQUENCE_TeachingRun_ResultFailed = 202000; public const int ALARM_SEQUENCE_TeachingRun_DeviceNotReady = 202001; public const int ALARM_SEQUENCE_TeachingRun_InitVariableError = 202002; public const int ALARM_SEQUENCE_TeachingRun_CheckInitCondition = 202003; // Sequence - Manual(2~) - ManualRunRCC public const int ALARM_SEQUENCE_ManualRunRCC_ResultFailed = 202100; public const int ALARM_SEQUENCE_ManualRunRCC_DeviceNotReady = 202101; public const int ALARM_SEQUENCE_ManualRunRCC_InitVariableError = 202102; public const int ALARM_SEQUENCE_ManualRunRCC_CheckInitCondition = 202103; // Sequence - AutoRun(3~) - AutoRun public const int ALARM_SEQUENCE_AutoRun_ResultFailed = 203000; public const int ALARM_SEQUENCE_AutoRun_DeviceNotReady = 203001; public const int ALARM_SEQUENCE_AutoRun_InitVariableError = 203002; public const int ALARM_SEQUENCE_AutoRun_CheckInitCondition = 203003; #endregion #region Device 210001 ~ 219999 // Device - PLC public const int ALARM_DEVICE_PLC_DEACTIVATED = 210001; public const int ALARM_DEVICE_PLC_DISCONNECT = 210002; public const int ALARM_DEVICE_PLC_EMO = 210003; // Device - Scanner public const int ALARM_DEVICE_SCANNER_DEACTIVATED = 210101; public const int ALARM_DEVICE_SCANNER_DISCONNECT = 210102; public const int ALARM_DEVICE_SCANNER_ERROR = 210103; // Device - Laser public const int ALARM_DEVICE_LASER_DEACTIVATED = 210201; public const int ALARM_DEVICE_IO_LASER_DISCONNECT = 210202; // Check with IO public const int ALARM_DEVICE_IO_LASER_ERROR = 210203; // Check with IO public const int ALARM_DEVICE_IO_LASER_WARNING = 210204; // Check with IO public const int ALARM_DEVICE_IO_LASER_EMO = 210205; // Check with IO // Device - LBAD public const int ALARM_DEVICE_LBAD_DEACTIVATED = 210301; public const int ALARM_DEVICE_LBAD_DISCONNECT = 210302; public const int ALARM_DEVICE_IO_LBAD_ERROR = 210303; // Check with IO // Device - OCT (LDD) public const int ALARM_DEVICE_OCT_DEACTIVATED = 210401; public const int ALARM_DEVICE_OCT_DISCONNECT = 210402; public const int ALARM_DEVICE_IO_OCT_ERROR = 210403; // Check with IO public const int ALARM_DEVICE_OCT_QA_ERROR = 210404; // Check with IO // Device - Chiller public const int ALARM_DEVICE_CHILLER_DEACTIVATED = 210501; public const int ALARM_DEVICE_CHILLER_DISCONNECT = 210502; public const int ALARM_DEVICE_CHILLER_ERROR = 210503; // Device - IO (Leak Sensor) public const int ALARM_DEVICE_IO_IS_NULL = 210600; public const int ALARM_DEVICE_IO_DEACTIVATED = 210601; public const int ALARM_DEVICE_IO_DISCONNECT = 210602; public const int ALARM_DEVICE_IO_LEAK_SENSOR_DETECT_SCANNER = 210603; public const int ALARM_DEVICE_IO_LEAK_SENSOR_DETECT_CHILLER = 210604; #endregion } }