From 0d97500a3aac13b642fc93fae2e5dd01e1086b21 Mon Sep 17 00:00:00 2001 From: wells.liu <wells.liu@broconcentric.com> Date: 星期一, 29 六月 2020 12:31:12 +0800 Subject: [PATCH] 暂存 固高板卡 --- src/Bro.Common.Model/Helper/EnumHelper.cs | 140 ++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 140 insertions(+), 0 deletions(-) diff --git a/src/Bro.Common.Model/Helper/EnumHelper.cs b/src/Bro.Common.Model/Helper/EnumHelper.cs index aa404aa..cc90e89 100644 --- a/src/Bro.Common.Model/Helper/EnumHelper.cs +++ b/src/Bro.Common.Model/Helper/EnumHelper.cs @@ -443,5 +443,145 @@ [Description("鐩告満鍧愭爣绯荤浉瀵硅繍鍔�")] CameraRelativeMove = 12, } + + /// <summary> + /// 椹揪/杩愬姩鏉垮崱杩愯妯″紡 + /// </summary> + public enum MotorMoveMode + { + /// <summary> + /// 鏅�氱偣浣嶈繍鍔� + /// </summary> + [Description("鏅�氱偣浣嶈繍鍔�")] + Normal = 1, + + ///// <summary> + ///// 楂橀�熺瓑璺濊繍鍔� + ///// </summary> + //[Description("楂橀�熺瓑璺濊繍鍔�")] + //HighSpeedStep = 2, + + ///// <summary> + ///// 楂橀�熶笉绛夎窛杩愬姩 + ///// </summary> + //[Description("楂橀�熶笉绛夎窛杩愬姩")] + //HighSpeed = 3, + + /// <summary> + /// 鎵炬闄愪綅杩愬姩 + /// </summary> + [Description("鎵炬闄愪綅杩愬姩")] + FindPositive = 4, + + /// <summary> + /// 绂诲紑姝i檺浣� + /// </summary> + [Description("绂诲紑姝i檺浣�")] + LeavePositive = 5, + + /// <summary> + /// 鎵捐礋闄愪綅杩愬姩 + /// </summary> + [Description("鎵捐礋闄愪綅杩愬姩")] + FindNegative = 6, + + /// <summary> + /// 绂诲紑璐熼檺浣� + /// </summary> + [Description("绂诲紑璐熼檺浣�")] + LeaveNegative = 7, + + /// <summary> + /// 鎵惧師鐐硅繍鍔� + /// </summary> + [Description("鎵惧師鐐硅繍鍔�")] + FindOri = 8, + + /// <summary> + /// Jog妯″紡 + /// </summary> + [Description("Jog妯″紡")] + Jog = 9, + + /// <summary> + /// 璇绘暟澶存壘鍘熺偣鏂瑰紡 + /// </summary> + [Description("璇绘暟澶存壘鍘熺偣鏂瑰紡")] + FindOriIndex = 10, + + /// <summary> + /// 鎻掕ˉ妯″紡 + /// </summary> + [Description("鎻掕ˉ妯″紡")] + Coordinate = 11, + + ///// <summary> + ///// 鍒�鍚戞洿闅忓姛鑳� + ///// </summary> + //[Description("鍒�鍚戞洿闅忓姛鑳�")] + //BufMove = 12, + } + + /// <summary> + /// 椹揪IO瀹氫箟绫诲瀷 + /// </summary> + public enum MotorIODefine + { + Nothing, + InputStartLeft, + InputStartRight, + InputCurtainLeft, + InputCurtainRight, + InputSafeDoor, + InputEmergency, + InputReset, + InputScrew1, + InputScrew2, + InputSuckLeft, + InputSuckRight, + InputSuckXYZ, + InputCylinderLeftLimitFront, + InputCylinderLeftLimitBack, + InputCylinderRightLimitFront, + InputCylinderRightLimitBack, + + + OutputYellow, + OutputGreen, + OutputRed, + OutputBeep, + OutputLight, + OutputMotorPower, + OutputInitOK, + OutputZLock, + OutputLeftCylinder, + OutputRightCylinder, + OutputLeftSuck, + OutputRightSuck, + OutputScrewBlow, + OutputCamera, + OutputScrewSuck, + } + + /// <summary> + /// GTS杩愬姩鏉垮崱鎺у埗杩斿洖鎺у埗鐮� + /// </summary> + public enum GTSRetCode + { + [Description("鎸囦护鎵ц鎴愬姛")] + GRCRunOK = 0, // 鎸囦护鎵ц鎴愬姛 + [Description("鎸囦护鎵ц閿欒")] + GRCRunErr = 1, // 鎸囦护鎵ц閿欒 + [Description("icense涓嶆敮鎸�")] + GRCNotSupport = 2, // icense涓嶆敮鎸� + [Description("鎸囦护鍙傛暟閿欒")] + GRCInvalidParam = 7, // 鎸囦护鍙傛暟閿欒 + [Description("涓绘満鍜岃繍鍔ㄦ帶鍒跺櫒閫氳澶辫触")] + GRCCommErr = -1, // 涓绘満鍜岃繍鍔ㄦ帶鍒跺櫒閫氳澶辫触 + [Description("鎵撳紑鎺у埗鍣ㄥけ璐�")] + GRCOpenErr = -6, // 鎵撳紑鎺у埗鍣ㄥけ璐� + [Description("杩愬姩鎺у埗鍣ㄦ病鏈夊搷搴�")] + GRCNotAck = -7 // 杩愬姩鎺у埗鍣ㄦ病鏈夊搷搴� + } } } -- Gitblit v1.8.0