298 lines
8.1 KiB
C#
298 lines
8.1 KiB
C#
using System.ComponentModel;
|
|
|
|
namespace Cowain.Preheat.Common.Enums
|
|
{
|
|
public enum EDeviceState
|
|
{
|
|
[Description("自动运行")] Run = 0,
|
|
[Description("待机")] Standby = 1,
|
|
[Description("正常停机")] Stop = 2,
|
|
[Description("故障停机")] FaultShutdown = 3,
|
|
[Description("待料")] WaitingMaterials = 4,
|
|
[Description("满料")] FullMaterial = 5,
|
|
}
|
|
|
|
public enum ETagType
|
|
{
|
|
[Description("通用")] General = 0,
|
|
[Description("报警")] Alarm = 1,
|
|
[Description("温度")] Temperature = 2,
|
|
[Description("工艺参数")] ProcessParams = 3,
|
|
}
|
|
|
|
public enum EStovePLC
|
|
{
|
|
[Description("心跳")]
|
|
Heartbeat,
|
|
|
|
[Description("层板控温温度")]
|
|
LayerBoardControlTemp,
|
|
[Description("补温控温温度")]
|
|
SupplyControlTemp,
|
|
[Description("层板巡检温度")]
|
|
LayerBoardInspectionTemp,
|
|
[Description("补温巡检温度")]
|
|
SupplyInspectionTemp,
|
|
}
|
|
|
|
public enum EMesLogClass
|
|
{
|
|
[Description("心跳")]
|
|
EqptAlive,
|
|
[Description("设备状态")]
|
|
EqptStatus,
|
|
[Description("设备报警")]
|
|
EqptAlert,
|
|
[Description("参数请求")]
|
|
EqptParameter,
|
|
[Description("参数变更")]
|
|
ParameterChange,
|
|
[Description("联机请求")]
|
|
EqptRun,
|
|
[Description("电芯进站")]
|
|
CellInput,
|
|
[Description("电芯出站")]
|
|
CellOutput,
|
|
}
|
|
|
|
public enum EWindowsRowType
|
|
{
|
|
Upper = 1,
|
|
Mid = 2,
|
|
Lower = 3
|
|
}
|
|
|
|
public enum EKeyFlag
|
|
{
|
|
OK = 0,
|
|
NG = 1,
|
|
ProcessParam = 2
|
|
}
|
|
public enum EMOMEnable
|
|
{
|
|
[Description("禁用")] Disable,
|
|
[Description("启用")] Enable,
|
|
}
|
|
public enum EMenuType
|
|
{
|
|
[Description("视图")] Region = 1,
|
|
[Description("功能开关")] FunctionSwitch,
|
|
[Description("弹屏")] ShowDialog,
|
|
[Description("指令")] Cmd,
|
|
}
|
|
|
|
public enum EBatteryStatus
|
|
{
|
|
[Description("初始值")]
|
|
Initialise = 0,
|
|
[Description("入站验证失败")]
|
|
PullInFail = 5,
|
|
[Description("扫码完成")]
|
|
ScanOver = 10,
|
|
[Description("电芯进站")]
|
|
InBound = 15,
|
|
[Description("预热中")] //有进站电芯,前一组就设成预热中
|
|
Preheat = 20,
|
|
[Description("电芯出站")]
|
|
OutBound = 25,
|
|
[Description("记录出站")]
|
|
OutBoundRecord =30,
|
|
}
|
|
|
|
public enum EMesUpLoadStatus
|
|
{
|
|
[Description("待发送")] Wait,
|
|
[Description("待发送")] Fail,
|
|
[Description("发送成功")] Success,
|
|
}
|
|
|
|
public enum EStartAllow //启动允许
|
|
{
|
|
[Description("不允许")] Not = 0,
|
|
[Description("允许")] Ok,
|
|
}
|
|
|
|
|
|
public enum EDeviceStatus //设备状态
|
|
{
|
|
[Description("未知")] None = 0,
|
|
[Description("自动运行中")] Auto = 1,
|
|
[Description("停止中")] Stop,
|
|
[Description("启动中")] Start,
|
|
[Description("准备OK")] Ready,
|
|
[Description("初始化中")] Init,
|
|
[Description("报警中")] Alarm,
|
|
[Description("手动模式")] Manual,
|
|
[Description("维修模式")] Maintain,
|
|
[Description("模式未选择")] NotSelected,
|
|
}
|
|
|
|
public enum ESysSetup
|
|
{
|
|
[Description("设备编号")] DeviceNum,
|
|
[Description("产线编号")] Line,
|
|
[Description("二维码长度")] QRCodeLength,
|
|
[Description("白班开始时间")] DayShift,
|
|
[Description("晚班开始时间")] NightShift,
|
|
[Description("数据采集周期(秒)")] ReadPLCCycle,
|
|
[Description("MOM状态模式")] MOMMode,
|
|
//[Description("自动上料平台调度是否自动(0为手动,1为自动)")] ManualFeeding,
|
|
[Description("生产模式(0为调试模式,1为正式模式)")] DebugMode,
|
|
[Description("是否启用MOM(0为禁用,1为启用)")] MOMEnable,
|
|
[Description("数据路径")] DataFilePath, //数据路径
|
|
[Description("A/B面字符位置")] CharPos, //
|
|
[Description("A/B面字符标识")] CharFlag
|
|
}
|
|
|
|
public enum ECharFlag
|
|
{
|
|
UnKnow,
|
|
B,
|
|
A
|
|
}
|
|
public enum EDeviceType
|
|
{
|
|
/*
|
|
name:用于类型,对应数据库的DType
|
|
Description:用于找查,对应数据库的Name,另外还有一个编号
|
|
*/
|
|
[Description("PLC")] PLC,
|
|
[Description("MOM")] MOM,
|
|
[Description("扫码枪")] SCANNER,
|
|
//[Description("TCP")] TCP
|
|
}
|
|
|
|
public enum EDevName
|
|
{
|
|
Stove1,
|
|
Stove2
|
|
}
|
|
public enum EStationType
|
|
{
|
|
ScannCode = 1,
|
|
Loading,
|
|
Stove,
|
|
UnLoading,
|
|
}
|
|
public enum EProductionMode //MES有这二种MES
|
|
{
|
|
[Description("调试模式")] Debug,
|
|
[Description("正常模式")] Normal,
|
|
}
|
|
|
|
public enum EOperTypePLC
|
|
{
|
|
Readable = 1,
|
|
Writable = 2,
|
|
ReadWrite = 3
|
|
}
|
|
|
|
public enum EResultFlag //这个是MES的
|
|
{
|
|
OK,
|
|
NG
|
|
}
|
|
public enum EResult
|
|
{
|
|
OK = 1,
|
|
NG ,
|
|
MomError,
|
|
RepeatScann,
|
|
ErrorAB,
|
|
}
|
|
///// <summary>
|
|
///// 日志枚举类型
|
|
///// </summary>
|
|
public enum E_LogType
|
|
{
|
|
[Description("调试信息")] Debug = 0,
|
|
[Description("提示")] Info = 1,
|
|
[Description("警告")] Warn = 2,
|
|
[Description("错误")] Error = 3,
|
|
[Description("致命错误")] Fatal = 4,
|
|
[Description("操作日志")] Operate = 5,
|
|
[Description("跟踪")] Trace,
|
|
[Description("全部")] All,
|
|
}
|
|
|
|
public enum EAlarmStatus
|
|
{
|
|
[Description("恢复")] Renew,
|
|
[Description("报警")] Alert,
|
|
[Description("警告")] Warn
|
|
}
|
|
|
|
public enum EDeviceId
|
|
{
|
|
[Description("PLC")] PLC = 1,
|
|
//[Description("PLC2")] PLC2,
|
|
[Description("Mes")] Mes,
|
|
[Description("1#扫码枪")] BarcodeScanner1,
|
|
[Description("2#扫码枪")] BarcodeScanner2,
|
|
[Description("3#扫码枪")] BarcodeScanner3,
|
|
[Description("4#扫码枪")] BarcodeScanner4,
|
|
}
|
|
public enum EMESMode
|
|
{
|
|
[Description("联机模式")] OnLine, //MOM会给设备下达工艺参数信息,设备出入站要判断MOM回复信息是否尾OK值,如果反馈NG需要将电芯放入到NG口
|
|
[Description("离线模式")] OffLine, //设备需要单机记录所有的生产信息以便MOM回复后上传信息
|
|
[Description("调机模式")] DebugMachine //设备运行修改MOM提供的工艺参数,正常调用出入站接口,所有这个模式下产出的电芯都需要放入到NG口待人为判定是否可以进入下一站。调机结束后需要再次调用本接口,恢复为联机模式,MOM重新下达工艺参数信息
|
|
}
|
|
|
|
//public enum EDataType
|
|
//{
|
|
// [Description("System.Boolean")] BOOL,
|
|
// [Description("System.UInt16")] UINT16,
|
|
// [Description("System.Int16")] INT16,
|
|
// [Description("System.UInt32")] UINT32,
|
|
// [Description("System.Int32")] INT32,
|
|
// [Description("System.String")] STRING,
|
|
// [Description("System.Single")] FLOAT,
|
|
// [Description("System.Double")] DOUBLE,
|
|
//}
|
|
|
|
|
|
|
|
|
|
public enum ERole
|
|
{
|
|
[Description("管理员")]
|
|
Admin = 1,
|
|
|
|
[Description("操作员")]
|
|
Operater,
|
|
|
|
[Description("维修员")]
|
|
Mantainer
|
|
}
|
|
|
|
public enum EValidStatus
|
|
{
|
|
[Description("无效")]
|
|
Invalid,
|
|
[Description("有效")]
|
|
Valid
|
|
}
|
|
|
|
public enum ETemperature
|
|
{
|
|
[Description("层板控温")]
|
|
LayerBoardControlTemp = 1,
|
|
[Description("补温控温")]
|
|
SupplyControlTemp,
|
|
[Description("层板巡检")]
|
|
LayerBoardInspectionTemp1,
|
|
[Description("补温巡检")]
|
|
SupplyInspectionTemp,
|
|
}
|
|
public enum OperTypeEnum
|
|
{
|
|
[Description("读")]
|
|
ParamRead,
|
|
[Description("写")]
|
|
ParamWrite,
|
|
[Description("读写")]
|
|
ParamReadWrite
|
|
}
|
|
}
|
|
|