138 lines
8.1 KiB
C#
138 lines
8.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace WeldingCommon.Alarm
|
|
{
|
|
// AlarmCode를 다른 프로젝트에서도 상속받아서 사용하려 일반 클래스로 변경함 >> 내부에 상수변수밖에 없어서 일단 변경함
|
|
// 각 알람별 헤더를 추가 >> 프로젝트 마다 따로 추가해야되는 알람이 있으면 헤더를 배정받고, 인덱스로 처리하는 방향으로 생각
|
|
public class AlarmCode
|
|
{
|
|
#region System 100001 ~ 109999
|
|
// System
|
|
// System - HDD, 필요시 사용
|
|
public const int SYSTEM_HEADER = 100000;
|
|
public const int ALARM_HDD_LIMIT_C = SYSTEM_HEADER + 0;
|
|
public const int ALARM_HDD_LIMIT_D = SYSTEM_HEADER + 1;
|
|
public const int ALARM_HDD_LIMIT_E = SYSTEM_HEADER + 2;
|
|
#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;
|
|
public const int ALARM_SEQUENCE_UploadWeldingList_InvalidDrawingObject = 201204;
|
|
|
|
// 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 - 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;
|
|
public const int ALARM_SEQUENCE_AutoRun_HeavyAlarmOccured = 203004;
|
|
#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
|
|
public const int ALARM_DEVICE_LASER_WARNING_MSG = 210206;
|
|
public const int ALARM_DEVICE_LASER_ERROR_MSG = 210207;
|
|
|
|
// 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
|
|
|
|
// 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;
|
|
|
|
// RMS
|
|
public const int RMS_RECIPE_CHECK_REQUEST_TIMEOUT = 210700;
|
|
public const int RMS_RECIPE_EDIT_REQUEST_RESPONSE_TIMEOUT = 210701;
|
|
public const int RMS_ACTIVATED_RECIPE_CHANGE_REQUEST_RESPONSE_TIMEOUT = 210702;
|
|
public const int RMS_RECIPE_EDIT_REPORT_TIMEOUT = 210703;
|
|
public const int RMS_PAGE_SETTING_NULL = 210704;
|
|
public const int RMS_NOT_USED_OPTION = 210705;
|
|
#endregion
|
|
}
|
|
}
|