108 lines
3.6 KiB
C#
108 lines
3.6 KiB
C#
using Aurora.Api;
|
|
using Aurora.Api.Devices;
|
|
using Hermes;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Markup;
|
|
|
|
namespace AuroraChiller
|
|
{
|
|
//우선 Aurora의 SMCChiller를 가져와서 LASA에 필요한 부분을 넣어주자
|
|
public enum ChillerErrorCode : int
|
|
{
|
|
NoError = -1,
|
|
MemoryError = 0,
|
|
OutOfSetRange = 1,
|
|
SettingNotAllowd = 2,
|
|
AbnormalCode = 3,
|
|
FormatError = 4,
|
|
BccError = 5,
|
|
OverrunError = 6,
|
|
FlemingError = 7,
|
|
ParityError = 8,
|
|
Unknown = 9
|
|
}
|
|
|
|
public enum eTemperatureStatus
|
|
{
|
|
ERROR_LOW,
|
|
WARNING_LOW,
|
|
OK,
|
|
WARNING_HIGH,
|
|
ERROR_HIGH
|
|
}
|
|
|
|
public enum eAlarmStatus1_Bit
|
|
{
|
|
LOW_LEVEL_TANK = 0, //0 Low level in tank
|
|
OVER_TEMP1, //1 High circulating fluid discharge temp.
|
|
OVER_TEMP2, //2 Circulating fluid discharge temp. rise
|
|
OVER_TEMP3, //3 Circulating fluid discharge temp.
|
|
OVER_TEMP4, //4 High circulating fluid return temp.
|
|
ERR_PRESSURE1, //5 High circulating fluid discharge pressure
|
|
ERR_PUMP, //6 Abnormal pump operation
|
|
ERR_PRESSURE2, //7 Circulating fluid discharge pressure rise
|
|
ERR_PRESSURE3, //8 Circulating fluid discharge pressure drop
|
|
ERR_COMPRESSOR1, //9 High compressor intake temp.
|
|
ERR_COMPRESSOR2, //10 Low compressor intake temp.
|
|
OVER_TEMP5, //11 Low super heat temperature
|
|
ERR_COMPRESSOR3, //12 High compressor discharge pressure
|
|
ERR_UNUSED1, //13 Unused
|
|
ERR_PRESSURE4, //14 Refrigerant circuit pressure (high pressure side) drop
|
|
ERR_PRESSURE5, //15 Refrigerant circuit pressure (low
|
|
|
|
CNT
|
|
}
|
|
|
|
public enum eAlarmStatus2_Bit
|
|
{
|
|
ERR_PRESSURE = 0, //0 Refrigerant circuit pressure (low pressure side) drop
|
|
OVERLOAD, //1 Compressor overload
|
|
ERR_COMM, //2 Communication error
|
|
ERR_MEM, //3 Memory error
|
|
ERR_DC, //4 DC line fuse cut
|
|
ERR_SENSOR_TEMP1, //5 Circulating fluid discharge temp. sensor failure
|
|
ERR_SENSOR_TEMP2, //6 Circulating fluid return temp. sensor failure
|
|
ERR_SENSOR_COMPRESS1, //7 Compressor intake temp. sensor failure
|
|
ERR_SENSOR_PRESSURE1, //8 Circulating fluid discharge pressure sensor failure
|
|
ERR_SENSOR_PRESSURE2, //9 Compressor discharge pressure sensor failure
|
|
ERR_SENSOR_COMPRESS2, //10 Compressor intake pressure sensor failure
|
|
MAINTENANCE_PUMP, //11 Maintenance of pump
|
|
MAINTENANCE_MOTOR, //12 Maintenance of fan motor
|
|
MAINTENANCE_COMPRESS, //13 Maintenance of compressor
|
|
ERR_SIGNAL1, //14 Contact input 1 signal detection alarm
|
|
ERR_SIGNAL2, //15 Contact input 2 signal detection alarm
|
|
CNT
|
|
}
|
|
public enum eAlarmStatus3_Bit
|
|
{
|
|
WATER_LEAKAGE = 0, // 0 Water leakage
|
|
ERR_ELECTRIC1, //1 Electric resistivity/conductivity level rise
|
|
ERR_ELECTRIC2, //2 Electric resistivity/conductivity level drop
|
|
ERR_ELECTRIC3, //3 Electric resistivity/conductivity sensor error
|
|
UNSUED1, //4 Unused
|
|
UNSUED2, //5 Unused
|
|
UNSUED3, //6 Unused
|
|
UNSUED4, //7 Unused
|
|
UNSUED5, //8 Unused
|
|
UNSUED6, //9 Unused
|
|
UNSUED7, //10 Unused
|
|
UNSUED8, //11 Unused
|
|
UNSUED9, //12 Unused
|
|
UNSUED10, //13 Unused
|
|
UNSUED11, //14 Unused
|
|
UNSUED12, //15 Unused
|
|
CNT
|
|
}
|
|
public enum eChillerType
|
|
{
|
|
HRL,
|
|
HECR,
|
|
HRS
|
|
}
|
|
|
|
}
|