using System;
using System.ComponentModel;
namespace WCS.Entity.Protocol.Station
{
///
/// 输送机模式
///
public enum StationMode : short
{
///
/// 自动
///
[Description("自动")] Automatic = 1,
///
/// 手动
///
[Description("手动")] Manual = 2,
///
/// 维修
///
[Description("维修")] Repair = 3
}
///
/// 输送机警报
///
[Flags]
public enum StationAlarm : short
{
}
///
/// 输送机状态
///
[Flags]
public enum StationStatus : short
{
///
/// 自动
///
[Description("自动")] Auto = 1 << 0,
///
/// 选中状态位
///
[Description("选中状态位")] Choice_Bit = 1 << 1,
///
/// 任务有货
///
[Description("任务有货")] OT_Status = 1 << 2,
///
/// 光电有货
///
[Description("光电有货")] PH_Status = 1 << 3,
///
/// 运行状态位
///
[Description("运行状态位")] Run = 1 << 4,
///
/// 正转
///
[Description("正转")] Fwd_1 = 1 << 5,
///
/// 反转
///
[Description("反转")] Rev_1 = 1 << 6,
///
/// 上升/右转/伸出(顶升移栽升降、拆码盘机升降、提升机升降、拆码盘机拨叉伸出)
///
[Description("上升/右转/伸出(顶升移栽升降、拆码盘机升降、提升机升降、拆码盘机拨叉伸出)")]
Up_Right_Front_2 = 1 << 7,
///
/// 下降/左转/缩回(顶升移栽升降、拆码盘机升降、提升机升降、拆码盘机拨叉缩回)
///
[Description("下降/左转/缩回(顶升移栽升降、拆码盘机升降、提升机升降、拆码盘机拨叉缩回)")]
Down_Left_Back_2 = 1 << 8,
///
/// 高位(顶升移栽升降、拆码盘机升降、提升机升降)
///
[Description("高位(顶升移栽升降、拆码盘机升降、提升机升降)")]
High_Station_2 = 1 << 9,
///
/// 中位(拆码盘机升降)
///
[Description("中位(拆码盘机升降)")] Mid_Station_2 = 1 << 10,
///
/// 低位(顶升移栽升降、拆码盘机升降、提升机升降)
///
[Description("低位(顶升移栽升降、拆码盘机升降、提升机升降)")]
Low_Station_2 = 1 << 11,
///
/// 前位(拆码盘机拨叉伸出)
///
[Description("前位(拆码盘机拨叉伸出)")] Front_Station_2 = 1 << 12,
///
/// 后位(拆码盘机拨叉缩回)
///
[Description("后位(拆码盘机拨叉缩回)")] Back_Station_2 = 1 << 13,
///
/// 手动入库
///
[Description("手动入库")] ManualStorage = 1 << 14,
///
/// 上位机未分配任务
///
[Description("上位机未分配任务")] UnassignedTask = -1 << 15
}
///
/// 输送机状态
///
[Flags]
public enum StationStatus1 : short
{
///
/// 备用
///
[Description("备用")] RES1 = 1 << 0,
///
/// 备用
///
[Description("备用")] RES2 = 1 << 1,
///
/// 备用
///
[Description("备用")] RES3 = 1 << 2,
///
/// 备用
///
[Description("备用")] RES4 = 1 << 3,
///
/// 备用
///
[Description("备用")] RES5 = 1 << 4,
///
/// 备用
///
[Description("备用")] RES6 = 1 << 5,
///
/// 备用
///
[Description("备用")] RES7 = 1 << 6,
///
/// 备用
///
[Description("备用")] RES8 = 1 << 7,
///
/// 备用
///
[Description("备用")] RES9 = 1 << 8,
///
/// 备用
///
[Description("备用")] RES10 = 1 << 9,
///
/// 备用
///
[Description("备用")] RES11 = 1 << 10,
///
/// 备用
///
[Description("备用")] RES12 = 1 << 11,
///
/// 备用
///
[Description("备用")] RES13 = 1 << 12,
///
/// 拆盘机光电
///
[Description("拆盘机光电")] RES14 = 1 << 13,
///
/// 是否锁定
///
[Description("是否锁定")] RES15 = 1 << 14,
///
/// 是否锁定
///
[Description("备用")] IsLock = -1 << 15
}
///
/// 外形故障
///
[Flags]
public enum StationShapeAlarm : short
{
///
/// 外形/条码等货物故障
///
[Description("外形/条码等货物故障")] GoodsErr = 1 << 0,
///
/// 前超长故障
///
[Description("前超长故障")] FOutside = 1 << 1,
///
/// 后超长故障
///
[Description("后超长故障")] BOutside = 1 << 2,
///
/// 左超宽故障
///
[Description("左超宽故障")] LOutside = 1 << 3,
///
/// 右超宽故障
///
[Description("右超宽故障")] ROutside = 1 << 4,
///
/// 超高故障
///
[Description("超高故障")] HOutside = 1 << 5,
///
/// 条码读取失败
///
[Description("条码读取失败")] BcrNoread = 1 << 6,
///
/// 超重
///
[Description("超重")] Overload = 1 << 7,
///
/// 货物严重外检故障
///
[Description("货物严重外检故障")] GoodsErr1 = 1 << 8,
///
/// 二维条码未读出
///
[Description("二维条码未读出")] BcrNoread1 = 1 << 9,
///
/// 备用
///
[Description("备用")] Res1 = 1 << 10,
///
/// 备用
///
[Description("备用")] Res2 = 1 << 11,
///
/// 备用
///
[Description("备用")] Res3 = 1 << 12,
///
/// 备用
///
[Description("备用")] Res4 = 1 << 13,
///
/// 备用
///
[Description("备用")] Res5 = 1 << 14,
///
/// 备用
///
[Description("备用")] Res6 = -1 << 15
}
///
/// 站台指令
///
[Flags]
public enum StationCmd : short
{
///
/// AGV放货通知
///
[Description("备用")] Res = 1 << 0,
///
/// AGV放货运行
///
[Description("备用")] Res1 = 1 << 1,
///
/// AGV放货结束
///
[Description("备用")] Res2 = 1 << 2,
///
/// AGV取货通知
///
[Description("备用")] Res3 = 1 << 3,
///
/// AGV取货运行
///
[Description("备用")] Res4 = 1 << 4,
///
/// AGV取货结束
///
[Description("备用")] Res5 = 1 << 5,
///
/// 翻转信号
///
[Description("翻转信号")] Res6 = 1 << 6,
///
/// 机械臂取货信号,此信号上位不写入,只由PLC写入
///
[Description("备用")] Res7 = 1 << 7,
///
/// 备用
///
[Description("备用")] Res8 = 1 << 8,
///
/// 备用
///
[Description("备用")] Res9 = 1 << 9,
///
/// 备用
///
[Description("备用")] Res10 = 1 << 10,
///
/// 备用
///
[Description("备用")] Res11 = 1 << 11,
///
/// 备用
///
[Description("备用")] Res12 = 1 << 12,
///
/// 备用
///
[Description("备用")] Res13 = 1 << 13,
///
/// 备用
///
[Description("备用")] Res14 = 1 << 14,
///
/// 备用
///
[Description("备用")] Res15 = -1 << 15
}
///
/// 线体状态枚举
///
public enum LineStatusEnum : short
{
///
/// 自动
///
[Description("自动")] Automatic= 1,
///
/// 报警
///
[Description("报警")] Alarm = 2,
///
/// 手动
///
[Description("手动")] Manual = 3
}
///
/// 线体正反转枚举
///
public enum FwdOrRevEnum : short
{
///
/// 空闲
///
[Description("空闲")] Idle = 1,
///
/// 正转
///
[Description("正转")] Fwd = 2,
///
/// 反转
///
[Description("反转")] Rev = 3
}
}