领胜LDS 键盘AOI检测项目
patrick.xu
2021-08-02 a383b2288dcfb90e9aa1dcf796e41d9c6be1e429
src/Bro.Common.Model/Helper/EnumHelper.cs
@@ -365,7 +365,7 @@
        //    Jpeg,
        //}
        public enum PLCReplyValue
        public enum ReplyValue
        {
            OK = 1,
            NG = -1,
@@ -392,6 +392,26 @@
            Measuring = 21,
            MeasureDoneOK = 22,
            MeasureDoneNG = 23,
            CanStretchLeft = 41,
            CanStretchRight = 42,
            CanStretchTop = 43,
            CanStretchBottom = 44,
            CanStretchLeftUpperCorner = 45,
            CanStretchLeftLowerCorner = 46,
            CanStretchRightUpperCorner = 47,
            CanStretchRightLowerCorner = 48,
            StretchingLeft = 31,
            StretchingRight = 32,
            StretchingTop = 33,
            StretchingBottom = 34,
            StretchingLeftUpperCorner = 35,
            StretchingLeftLowerCorner = 36,
            StretchingRightUpperCorner = 37,
            StretchingRightLowerCorner = 38,
        }
        public enum MouseState
@@ -400,15 +420,21 @@
            HoverElement = 2,
            InSideElement = 3,
            MoveElement = 4,
            StretchingLeft = 11,
            StretchingRight = 12,
            StretchingUp = 13,
            StretchingDown = 14,
            MoveElement = 15,
            StretchingTop = 13,
            StretchingBottom = 14,
            StretchingLeftUpperCorner = 15,
            StretchingLeftLowerCorner = 16,
            StretchingRightUpperCorner =17,
            StretchingRightLowerCorner = 18,
            New = 21,
            Editing = 22,
            SelectedElement = 23,
            //SelectedElement = 23,
            MovingAll = 31,
@@ -447,7 +473,7 @@
        /// <summary>
        /// 马达/运动板卡运行模式
        /// </summary>
        public enum MotorMoveMode
        public enum MotionMode
        {
            /// <summary>
            /// 普通点位运动
@@ -523,44 +549,26 @@
        }
        /// <summary>
        /// 马达IO定义类型
        /// IO预定义类型 主要针对输出
        /// </summary>
        public enum MotorIODefine
        public enum IOPrestatement
        {
            Nothing,
            InputStartLeft,
            InputStartRight,
            InputCurtainLeft,
            InputCurtainRight,
            InputSafeDoor,
            InputEmergency,
            InputReset,
            InputScrew1,
            InputScrew2,
            InputSuckLeft,
            InputSuckRight,
            InputSuckXYZ,
            InputCylinderLeftLimitFront,
            InputCylinderLeftLimitBack,
            InputCylinderRightLimitFront,
            InputCylinderRightLimitBack,
            [Description("自定义")]
            Customized = 0,
            [Description("指示灯-黄")]
            Light_Yellow = 1,
            [Description("指示灯-绿")]
            Light_Green = 2,
            [Description("指示灯-红")]
            Light_Red = 3,
            [Description("蜂鸣器")]
            Beep = 4,
            [Description("照明灯")]
            Light = 5,
            OutputYellow,
            OutputGreen,
            OutputRed,
            OutputBeep,
            OutputLight,
            OutputMotorPower,
            OutputInitOK,
            OutputZLock,
            OutputLeftCylinder,
            OutputRightCylinder,
            OutputLeftSuck,
            OutputRightSuck,
            OutputScrewBlow,
            OutputCamera,
            OutputScrewSuck,
            [Description("急停")]
            EmergencyStop = 99,
        }
        /// <summary>
@@ -583,5 +591,53 @@
            [Description("运动控制器没有响应")]
            GRCNotAck = -7                           // 运动控制器没有响应
        }
        /// <summary>
        /// 运动板卡 IO 类型(IN OUT)
        /// </summary>
        public enum IOType
        {
            [Description("INPUT")]
            INPUT = 0,
            [Description("OUTPUT")]
            OUTPUT = 1
        }
        public enum IOValue
        {
            [Description("关闭")]
            FALSE = 0,
            [Description("开启")]
            TRUE = 1,
            [Description("反转")]
            REVERSE = 2,
        }
        /// <summary>
        /// PubSubCenter事件中心的消息类型
        /// </summary>
        public enum PubSubCenterMessageType
        {
            /// <summary>
            /// 运行界面更新产品下拉
            /// </summary>
            [Description("更新产品下拉")]
            UpdateProductionCodes,
            ///// <summary>
            ///// 更新数据
            ///// </summary>
            //[Description("更新数据")]
            //UpdateData,
        }
        public enum MachineState
        {
            Unknown,
            Ready,
            Running,
            Alarm,
            Pause,
            Resetting,
        }
    }
}