From da8ed9d0a7679c2687894ab2c568aee692ad3f79 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期五, 13 六月 2025 10:34:38 +0800
Subject: [PATCH] 1.搬送任务准备拆分为取和放,增加放回原处的功能;

---
 SourceCode/Bond/Servo/CRobotTask.h |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/SourceCode/Bond/Servo/CRobotTask.h b/SourceCode/Bond/Servo/CRobotTask.h
index 63edbeb..4c897cd 100644
--- a/SourceCode/Bond/Servo/CRobotTask.h
+++ b/SourceCode/Bond/Servo/CRobotTask.h
@@ -4,6 +4,11 @@
 #include "CEFEM.h"
 
 
+#define ACTION_PICK			0			/* 取 */
+#define ACTION_PLACE		1			/* 放 */
+#define ACTION_RESTORE		2			/* 回原点 */
+#define ACTION_TRANSFER		3			/* 搬运 */
+
 namespace SERVO {
 	class CRobotTask
 	{
@@ -18,14 +23,17 @@
 		void setContext(CContext* pContext);
 		CContext* getContext();
 		void setEFEM(CEFEM* pEFEM);
-		void setRobotTransferParam(int seq, int armNo, int fromPos, int toPos, int fromSlot, int toSlot);
-		ROBOT_CMD_PARAM& getRobotCmdParam();
+		int setRobotTransferParam(int seq, int armNo, int fromPos, int toPos, int fromSlot, int toSlot);
+		ROBOT_CMD_PARAM& getRobotCmdParam(int index);
 		time_t getCreateTime();
 		time_t getFetchoutTime();
 		time_t getStoredTime();
 		time_t getFinishTime();
 		ROBOT_TASK_STATE getState();
 		void run();
+		void pick();
+		void place();
+		void restore();
 		void completed();
 		void error();
 		void abort();
@@ -51,7 +59,7 @@
 		time_t m_timeFetchOut;						/* 取片时间*/
 		time_t m_timeStored;						/* 放片时间 */
 		time_t m_timeFinish;						/* 结束时间 */
-		ROBOT_CMD_PARAM m_robotCmdParam;			/* 参数 */
+		ROBOT_CMD_PARAM m_robotCmdParam[3];			/* 参数 */
 		CContext* m_pContext;
 		CEFEM* m_pEFEM;
 	};

--
Gitblit v1.9.3