EnumPLC.cs 8.57 KB
using System.ComponentModel;

namespace RCS.Model.PLC
{
    public class EnumPLC
    {
        /// <summary>
        /// 华恒的PLC属性枚举
        /// </summary>
        public enum PLCHuaHengProps
        {
            /// <summary>
            /// PLC心跳
            /// </summary>
            [Description("PLC心跳")]
            Heart,
            /// <summary>
            /// PLC安全信号
            /// </summary>
            [Description("PLC安全信号")]
            Devicessafety,
            /// <summary>
            /// PLC输送线放货准备完毕
            /// </summary>
            [Description("PLC输送线放货准备完毕")]
            PutReady,
            /// <summary>
            /// PLC允许放
            /// </summary>
            [Description("PLC允许放")]
            PutAllow,
            /// <summary>
            /// PLC输送线取货准备完成,用于向WMS请求发起取货任务
            /// </summary>
            [Description("PLC输送线取货准备完成")]
            PickReady,
            /// <summary>
            /// PLC允许取
            /// </summary>
            [Description("PLC允许取")]
            PickAllow,
            /// <summary>
            /// PLC高度
            /// </summary>
            [Description("PLC高度")]
            Height,
            /// <summary>
            /// PLC宽度
            /// </summary>
            [Description("PLC宽度")]
            Width,
            /// <summary>
            /// PLC长度
            /// </summary>
            [Description("PLC长度")]
            Length,
            /// <summary>
            /// PLC重量
            /// </summary>
            [Description("PLC重量")]
            Weight,
            /// <summary>
            /// PLC托盘条码
            /// </summary>
            [Description("PLC托盘条码")]
            Code,
            /// <summary>
            /// PLC托盘类型
            /// </summary>
            [Description("PLC托盘类型")]
            PalletType,
        }


        /// <summary>
        /// RCS回复华恒PLC属性枚举
        /// </summary>
        public enum RCSHuaHengProps
        {
            /// <summary>
            /// RCS心跳
            /// </summary>
            [Description("RCS心跳")]
            RCSHeart,
            /// <summary>
            /// RCS安全信号
            /// </summary>
            [Description("RCS安全信号")]
            RCSDevicessafety,
            /// <summary>
            /// RCS请求放货
            /// </summary>
            [Description("RCS请求放货")]
            RCSPutRequest,
            /// <summary>
            /// RCS放货中
            /// </summary>
            [Description("RCS放货中")]
            RCSPutRuning,
            /// <summary>
            /// RCS放完成
            /// </summary>
            [Description("RCS放完成")]
            RCSPutDone,
            /// <summary>
            /// RCS请求取货
            /// </summary>
            [Description("RCS请求取货")]
            RCSPickRequest,
            /// <summary>
            /// RCS取货中
            /// </summary>
            [Description("RCS取货中")]
            RCSPickRuning,
            /// <summary>
            /// RCS取货完成
            /// </summary>
            [Description("RCS取货完成")]
            RCSPickDone,
            /// <summary>
            /// RCS高度
            /// </summary>
            [Description("RCS高度")]
            RCSHeight,
            /// <summary>
            /// RCS宽度
            /// </summary>
            [Description("RCS宽度")]
            RCSWidth,
            /// <summary>
            /// RCS长度
            /// </summary>
            [Description("RCS长度")]
            RCSLength,
            /// <summary>
            /// RCS重量
            /// </summary>
            [Description("RCS重量")]
            RCSWeight,
            /// <summary>
            /// RCS托盘条码
            /// </summary>
            [Description("RCS托盘条码")]
            RCSCode,
            /// <summary>
            /// RCS托盘类型
            /// </summary>
            [Description("RCS托盘类型")]
            RCSPalletType,
        }


        /// <summary>
        /// 门的PLC属性枚举
        /// </summary>
        public enum PLCDoorProps
        {
            /// <summary>
            /// PLC门已开
            /// </summary>
            [Description("PLC门已开")]
            OpenDoor,
            /// <summary>
            /// PLC门已关
            /// </summary>
            [Description("PLC门已关")]
            CloseDoor
        }

        /// <summary>
        /// RCS回复门PLC属性枚举
        /// </summary>
        public enum RCSDoorProps
        {
            /// <summary>
            /// RCS请求开门
            /// </summary>
            [Description("RCS请求开门")]
            RCSOpenDoor,
            /// <summary>
            /// RCS请求关门
            /// </summary>
            [Description("RCS请求关门")]
            RCSCloseDoor
        }


        /// <summary>
        /// 剪床的PLC属性枚举
        /// </summary>
        public enum PLCShearsProps
        {
            /// <summary>
            /// P6托盘请求
            /// </summary>
            [Description("P6托盘请求")]
            RequestContainer,
            /// <summary>
            /// P7托盘请求
            /// </summary>
            [Description("P7托盘请求")]
            RequestContainer7,
            /// <summary>
            /// 剪床允许放货
            /// </summary>
            [Description("剪床允许放货")]
            ShearsReadyPut,
            /// <summary>
            /// 剪床取货完成
            /// </summary>
            [Description("剪床取货完成")]
            CompletePick,
            /// <summary>
            /// 剪床请求放货
            /// </summary>
            [Description("剪床请求放货")]
            ShearsRequestPut,
        }


        /// <summary>
        /// RCS回复剪床PLC属性枚举
        /// </summary>
        public enum RCSShearsProps
        {
            /// <summary>
            /// AGV放货请求
            /// </summary>
            [Description("AGV放货请求")]
            RCSRequestPut,
            /// <summary>
            /// AGV允许放货
            /// </summary>
            [Description("AGV允许放货")]
            RCSReadyPick,
            /// <summary>
            /// AGV取货完成
            /// </summary>
            [Description("AGV取货完成")]
            RCSCompletePick,
        }


        /// <summary>
        /// AGV监控属性枚举
        /// </summary>
        public enum RCSMonitorProps
        {
            /// <summary>
            /// AGV停靠站台的电器编码:当前停车地址写入的值为站台电器编码,比如 31071、31072,正在执行【自动行走】的过程中地址为0,如果手动开车离开点位,也为0
            /// </summary>
            [Description("AGV站台电器编码")]
            RCSCADCode,
            /// <summary>
            /// AGV货叉高度:正在执行【自动升降】过程中就为0,否则就是实际高度
            /// </summary>
            [Description("AGV货叉高度")]
            RCSDlHeight,
            /// <summary>
            /// AGV是否自动任务:1=正在执行自动任务,2=不是正在执行自动任务
            /// </summary>
            [Description("AGV是否自动任务")]
            RCSAuto,
        }

        /// <summary>
        /// PLC的bool值枚举
        /// </summary>
        public enum PLCBool
        {
            False = 0,
            True = 1,
        }

        /// <summary>
        /// PLC的bool值枚举
        /// </summary>
        public enum ACSPlaceholder
        {
            无预占 = 0,
            出库预占 = 1,
            入库预占 = 2,
        }


        /// <summary>
        /// 设备类型
        /// </summary>
        public enum EquipmentType
        {
            /// <summary>
            /// 华恒的站台
            /// </summary>
            HuaHengStation,
            /// <summary>
            /// 生益剪切机的入口
            /// </summary>
            ShearsIn,
            /// <summary>
            /// 生益剪切机的出口
            /// </summary>
            ShearsOut,
            /// <summary>
            /// 门的属性
            /// </summary>
            Door,
            /// <summary>
            /// AGV监控的属性
            /// </summary>
            AgvMonitor,
        }
    }
}