From 5171d3f59b89389bf75293afd210cfa6de4ccff7 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期五, 10 四月 2026 23:03:49 +0800
Subject: [PATCH] feat: 添加堆垛机相关常量类并重构代码使用常量

---
 Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Common/Constants/DeviceAddressConst.cs |   36 ++++++++++++++++++++++++++++++++++++
 1 files changed, 36 insertions(+), 0 deletions(-)

diff --git a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Common/Constants/DeviceAddressConst.cs b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Common/Constants/DeviceAddressConst.cs
new file mode 100644
index 0000000..e6db980
--- /dev/null
+++ b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Common/Constants/DeviceAddressConst.cs
@@ -0,0 +1,36 @@
+namespace WIDESEAWCS_Common.Constants
+{
+    /// <summary>
+    /// 璁惧鍦板潃鍏叡甯搁噺
+    /// </summary>
+    /// <remarks>
+    /// 瀹氫箟璁惧閫氫俊涓娇鐢ㄧ殑鍏叡甯搁噺锛屽鍦板潃鏍煎紡銆佷俊鍙峰�肩瓑銆�
+    /// </remarks>
+    public class DeviceAddressConst
+    {
+        /// <summary>
+        /// 浜や簰淇″彿澶嶄綅鍊�
+        /// </summary>
+        /// <remarks>
+        /// 璁惧瀹屾垚浠诲姟鍚庯紝鍐欏叆姝ゅ�煎埌浜や簰淇″彿瀵勫瓨鍣ㄤ互澶嶄綅銆�
+        /// 鐢ㄤ簬杈撻�佺嚎绛夎澶囩殑浠诲姟瀹屾垚纭銆�
+        /// </remarks>
+        public const int InteractiveSignalReset = 0;
+
+        /// <summary>
+        /// 鍦板潃瀛楃涓插垎闅旂
+        /// </summary>
+        /// <remarks>
+        /// 鍦板潃鏍煎紡涓� "琛�-鍒�-灞�"锛屼緥濡� "1-2-3" 琛ㄧず绗�1琛屻�佺2鍒椼�佺3灞傘��
+        /// </remarks>
+        public const char AddressSeparator = '-';
+
+        /// <summary>
+        /// 鍦板潃瀛楃涓插垎闅旂锛堝瓧绗︿覆褰㈠紡锛�
+        /// </summary>
+        /// <remarks>
+        /// 鐢ㄤ簬瀛楃涓� Split 鎿嶄綔銆�
+        /// </remarks>
+        public const string AddressSeparatorString = "-";
+    }
+}

--
Gitblit v1.9.3