From f9c7928bff92596686e05a15fef21d499e954088 Mon Sep 17 00:00:00 2001 From: wells.liu <wells.liu@broconcentric.com> Date: 星期一, 06 七月 2020 18:17:41 +0800 Subject: [PATCH] Merge branch 'master' of http://gitblit.broconcentric.com:8088/r/M071 --- src/Bro.Common.Model/Helper/EnumHelper.cs | 102 +++++++++++++++++++++++++++++++++------------------ 1 files changed, 66 insertions(+), 36 deletions(-) diff --git a/src/Bro.Common.Model/Helper/EnumHelper.cs b/src/Bro.Common.Model/Helper/EnumHelper.cs index cc90e89..fdbb5b7 100644 --- a/src/Bro.Common.Model/Helper/EnumHelper.cs +++ b/src/Bro.Common.Model/Helper/EnumHelper.cs @@ -365,7 +365,7 @@ // Jpeg, //} - public enum PLCReplyValue + public enum ReplyValue { OK = 1, NG = -1, @@ -447,7 +447,7 @@ /// <summary> /// 椹揪/杩愬姩鏉垮崱杩愯妯″紡 /// </summary> - public enum MotorMoveMode + public enum MotionMode { /// <summary> /// 鏅�氱偣浣嶈繍鍔� @@ -523,44 +523,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 +565,53 @@ [Description("杩愬姩鎺у埗鍣ㄦ病鏈夊搷搴�")] GRCNotAck = -7 // 杩愬姩鎺у埗鍣ㄦ病鏈夊搷搴� } + + /// <summary> + /// 杩愬姩鏉垮崱 IO 绫诲瀷锛圛N 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, + } } } -- Gitblit v1.8.0