From bfe14e41fa5b07771d78af4511ba18d706bc23cc Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期一, 28 七月 2025 17:07:52 +0800
Subject: [PATCH] 1.Spooling Config功能EAP模拟测试;

---
 SourceCode/Bond/Servo/ServoCommo.h |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 49 insertions(+), 0 deletions(-)

diff --git a/SourceCode/Bond/Servo/ServoCommo.h b/SourceCode/Bond/Servo/ServoCommo.h
index 20e4434..09ca1d0 100644
--- a/SourceCode/Bond/Servo/ServoCommo.h
+++ b/SourceCode/Bond/Servo/ServoCommo.h
@@ -1,5 +1,23 @@
 #pragma once
+#include <string>
+#include <vector>
 
+
+#define CHECK_READ_STEP_SIGNAL(addr, data, size) {							\
+	BOOL bFlag = isBitOn(data, size, addr);									\
+	SERVO::CStep* pStep = getStep(addr);									\
+	if (pStep != nullptr) {													\
+		((CReadStep*)pStep)->onReadSignal(bFlag ? addr : 0);				\
+	}																		\
+}
+
+#define CHECK_WRITE_STEP_SIGNAL(addr, data, size) {							\
+	BOOL bFlag = isBitOn(data, size, addr);									\
+	SERVO::CStep* pStep = getStep(addr);									\
+	if (pStep != nullptr) {													\
+		((CWriteStep*)pStep)->onRecvSignal(bFlag ? addr : 0);				\
+	}																		\
+}
 
 namespace SERVO {
 #define BLOCK_BUFFER_MAX			1024
@@ -8,6 +26,19 @@
 #define PATH_MAX					8
 #define SIGNAL_MAX					8
 #define ARM_ALL						99
+
+	enum class RET {
+		OK = 1,
+		NG,
+	};
+	using JobDataRequestAck = RET;
+
+	enum class InspResult
+	{
+		NotInspected = 0,  // 初始化状态,尚未检测
+		Pass,              // 检测合格
+		Fail               // 检测不合格
+	};
 
 	enum class PortType {
 		Loading = 1,
@@ -111,10 +142,12 @@
 		Ready = 0,
 		Running,
 		Picking,
+		Picked,
 		Placing,
 		Restoring,
 		Error,
 		Abort,
+		Restored,
 		Completed
 	};
 
@@ -157,6 +190,22 @@
 		Error
 	};
 
+	/* Port Status */
+	struct SlotConfig {
+		int nSlotID = 0;
+		bool isEnabled = false;
+	};
+
+	struct PortConfig {
+		int nMaterialType;			   // 物料类型,1: G1, 2: G2, 3: G1+G2
+		std::string strPortName;       // 例如 "Port 1"
+		std::string strRecipe;         // 例如 "P1001"
+		std::string strLotID;
+		std::string strProductID;
+		std::string strOperationID;
+		std::vector<SlotConfig> vecSlot;
+	};
+
 	/* EQ Data changed code */
 #define EDCC_FETCHOUT_JOB				1000	/* 取片 */
 #define EDCC_STORED_JOB					1001	/* 放片 */

--
Gitblit v1.9.3