From 2f7c7a0621ee2e84c47ccd054889a71e8ce4fdd0 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期六, 18 四月 2026 22:08:14 +0800
Subject: [PATCH] feat(机械手任务): 实现换盘任务多阶段处理逻辑

---
 Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/RobotJob/RobotSocketState.cs |   41 +++++++++++++++++++++++++++++++++++++++++
 1 files changed, 41 insertions(+), 0 deletions(-)

diff --git a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/RobotJob/RobotSocketState.cs b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/RobotJob/RobotSocketState.cs
index 6697b01..06c8d92 100644
--- a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/RobotJob/RobotSocketState.cs
+++ b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/RobotJob/RobotSocketState.cs
@@ -181,5 +181,46 @@
         /// 褰撴甯哥數鑺换鍔″畬鎴愬悗璁句负 true锛屾満鍣ㄤ汉浠庡亣鐢佃姱浣嶇疆琛ュ厖鐢佃姱鑷�48涓��
         /// </remarks>
         public bool IsInFakeBatteryMode { get; set; }
+
+        /// <summary>
+        /// 褰撳墠鎵规璧峰缂栧彿锛堢敤浜庨�掑璁$畻鍙栬揣/鏀捐揣缂栧彿锛�
+        /// </summary>
+        /// <remarks>
+        /// 鍦ㄦ壒娆℃ā寮忎笅锛屾瘡鎵瑰彇璐�/鏀捐揣鐨勮捣濮嬬紪鍙蜂粠1寮�濮嬮�掑銆�
+        /// 鐢ㄤ簬璁$畻 {start}-{end} 鏍煎紡涓殑 start 鍊笺��
+        /// </remarks>
+        public int CurrentBatchIndex { get; set; } = 1;
+
+        /// <summary>
+        /// 鎹㈢洏浠诲姟褰撳墠闃舵
+        /// </summary>
+        /// <remarks>
+        /// 闃舵瀹氫箟锛�
+        /// 0: 鏈紑濮�
+        /// 1: 鍙栨甯哥數鑺紙涓ゆ祦鍚戠浉鍚岋級
+        /// 2: 鏀炬甯哥數鑺埌鐩爣鎵樼洏锛堜袱娴佸悜鐩稿悓锛�
+        /// 3: 娴佸悜A锛氭甯稿彇瀹屸啋绌烘墭鐩樺洖搴撯啋鍙栧亣鐢佃姱浠�5鍙蜂綅 / 娴佸悜B锛氭甯稿彇瀹屸啋鍙栧亣鐢佃姱浠庢簮鍦板潃
+        /// 4: 娴佸悜A锛氭斁鍋囩數鑺埌鐩爣鎵樼洏 / 娴佸悜B锛氭斁鍋囩數鑺埌5鍙蜂綅
+        /// 5: 娴佸悜A锛氬亣鏀惧畬鈫抋llputfinished鍏ュ簱HCSC1 / 娴佸悜B锛氬亣鍙栧畬鈫掔┖鎵樼洏鍥炲簱HCSC1+缁勭洏鍏ュ簱GWSC1
+        /// </remarks>
+        public int ChangePalletPhase { get; set; }
+
+        /// <summary>
+        /// 鏄惁鎵爜NG
+        /// </summary>
+        /// <remarks>
+        /// 鎷夊甫绾夸笂鐢佃姱鎵爜鏄惁NG銆�
+        /// </remarks>
+        public bool IsScanNG { get; set; } = false;
+
+
+
+        /// <summary>
+        /// 鏄惁鐢佃姱鍒颁綅
+        /// </summary>
+        /// <remarks>
+        /// 鎷夊甫绾夸笂鐢佃姱鏄惁鍒颁綅銆�
+        /// </remarks>
+        public bool BatteryArrived { get; set; } = false;
     }
 }

--
Gitblit v1.9.3