From e69865a1a3739740201bac8782b721da35d49923 Mon Sep 17 00:00:00 2001
From: patrick.xu <patrick.xu@broconcentric.com>
Date: 星期一, 25 一月 2021 18:45:28 +0800
Subject: [PATCH] 1. gocator添加重试和清理缓存操作 2. gts板卡调整监听频率 3. 记录产品数据使用filsstream避免程序崩溃影响

---
 src/Bro.Common.Model/Helper/EnumHelper.cs |  206 ++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 201 insertions(+), 5 deletions(-)

diff --git a/src/Bro.Common.Model/Helper/EnumHelper.cs b/src/Bro.Common.Model/Helper/EnumHelper.cs
index aa404aa..f22bca9 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,
@@ -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,
 
@@ -443,5 +469,175 @@
             [Description("鐩告満鍧愭爣绯荤浉瀵硅繍鍔�")]
             CameraRelativeMove = 12,
         }
+
+        /// <summary>
+        /// 椹揪/杩愬姩鏉垮崱杩愯妯″紡
+        /// </summary>
+        public enum MotionMode
+        {
+            /// <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 IOPrestatement
+        {
+            [Description("鑷畾涔�")]
+            Customized = 0,
+
+            [Description("鎸囩ず鐏�-榛�")]
+            Light_Yellow = 1,
+            [Description("鎸囩ず鐏�-缁�")]
+            Light_Green = 2,
+            [Description("鎸囩ず鐏�-绾�")]
+            Light_Red = 3,
+            [Description("铚傞福鍣�")]
+            Beep = 4,
+            [Description("鐓ф槑鐏�")]
+            Light = 5,
+
+            [Description("鎬ュ仠")]
+            EmergencyStop = 99,
+        }
+
+        /// <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                           // 杩愬姩鎺у埗鍣ㄦ病鏈夊搷搴�
+        }
+
+        /// <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