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