93 lines
2.2 KiB
C#
93 lines
2.2 KiB
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Threading.Tasks;
|
|||
|
|
|
|||
|
|
namespace RIZO.Service.PLCBackground.Stations
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// 入站校验结果
|
|||
|
|
/// </summary>
|
|||
|
|
public enum EntryPermissionResult
|
|||
|
|
{
|
|||
|
|
//1之前工位数据正常
|
|||
|
|
AllowIntoStation = 1,
|
|||
|
|
// 2上工位无记录
|
|||
|
|
NoRecordAtPreviousStation = 2,
|
|||
|
|
// 3上工位NG
|
|||
|
|
PreviousStationNG = 3,
|
|||
|
|
// 4扫码产品型号错误
|
|||
|
|
ProductModelError = 4,
|
|||
|
|
//5本工位NG
|
|||
|
|
CurrentStationNG = 5,
|
|||
|
|
//6时间超出规定无法生产
|
|||
|
|
TimeExceeded = 6,
|
|||
|
|
//7固化时间未到规定时间
|
|||
|
|
CuringTimeNotReached = 7,
|
|||
|
|
// 8未找到时间属性
|
|||
|
|
TimeAttributeNotFound = 8,
|
|||
|
|
// 10条码为空
|
|||
|
|
BarcodeEmpty = 10,
|
|||
|
|
//0之前工位数据异常
|
|||
|
|
PreviousStationDataAbnormal = 0,
|
|||
|
|
//11 未知异常
|
|||
|
|
UnkownException = 11,
|
|||
|
|
//12 最大重复入站次数
|
|||
|
|
MaximumRepeatedEntries = 12
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 出站校验结果
|
|||
|
|
/// </summary>
|
|||
|
|
public enum OutPermissionResult
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// 1 OK - 成功
|
|||
|
|
/// </summary>
|
|||
|
|
OK = 1,
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 2 产品时间属性增加失败
|
|||
|
|
/// </summary>
|
|||
|
|
ProductTimeAttributeAddFailed = 2,
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 3 产品条码合并失败
|
|||
|
|
/// </summary>
|
|||
|
|
ProductBarcodeMergeFailed = 3,
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 4 产品结果上传次数超出
|
|||
|
|
/// </summary>
|
|||
|
|
ProductUploadCountExceeded = 4,
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 5 时间属性移除失败
|
|||
|
|
/// </summary>
|
|||
|
|
TimeAttributeRemoveFailed = 5,
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 6 数据保存失败
|
|||
|
|
/// </summary>
|
|||
|
|
DataSaveFailed = 6,
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 10 上传条码为空
|
|||
|
|
/// </summary>
|
|||
|
|
UploadBarcodeEmpty = 10,
|
|||
|
|
/// <summary>
|
|||
|
|
/// 11 未知异常
|
|||
|
|
/// </summary>
|
|||
|
|
UnkownException = 11,
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 工艺参数NG
|
|||
|
|
/// </summary>
|
|||
|
|
ProcessParameterNG = 12
|
|||
|
|
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
}
|