From 047c7cbd047e11fba8d7872e69a11a13e463aec4 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期一, 13 十月 2025 17:40:39 +0800
Subject: [PATCH] 1.保存单条记录。

---
 SourceCode/Bond/Servo/CServoUtilsTool.cpp |   83 ++++++++++++++++++++++++++++++++++++++---
 1 files changed, 76 insertions(+), 7 deletions(-)

diff --git a/SourceCode/Bond/Servo/CServoUtilsTool.cpp b/SourceCode/Bond/Servo/CServoUtilsTool.cpp
index bfa0a43..19fa4d9 100644
--- a/SourceCode/Bond/Servo/CServoUtilsTool.cpp
+++ b/SourceCode/Bond/Servo/CServoUtilsTool.cpp
@@ -39,11 +39,6 @@
 			if (unit == 1) return "烘烤B腔";
 		}
 
-		if (eqid == EQ_ID_VACUUMBAKE) {
-			if (unit == 0) return "烘烤A腔";
-			if (unit == 1) return "烘烤B腔";
-		}
-
 		if (eqid == EQ_ID_Bonder1) {
 			return "Bonder1";
 		}
@@ -56,14 +51,88 @@
 
 			if (unit == 0) return "后烘烤A腔";
 			if (unit == 1) return "冷却A";
-			if (unit == 0) return "后烘烤B腔";
-			if (unit == 1) return "冷却B";
+			if (unit == 2) return "后烘烤B腔";
+			if (unit == 3) return "冷却B";
 		}
 
 		if (eqid == EQ_ID_MEASUREMENT) {
 			return "AOI";
 		}
 
+
+		if (eqid == EQ_ID_ARM_TRAY1) {
+			return "ARM1";
+		}
+
+		if (eqid == EQ_ID_ARM_TRAY2) {
+			return "ARM2";
+		}
+
+		return "";
+	}
+
+	std::string CServoUtilsTool::getEqUnitName(int eqid, int unit, int slot)
+	{
+		char szBuffer[256];
+		if (eqid == EQ_ID_LOADPORT1
+			|| eqid == EQ_ID_LOADPORT2
+			|| eqid == EQ_ID_LOADPORT3
+			|| eqid == EQ_ID_LOADPORT4
+			) {
+			sprintf_s(szBuffer, 256, "Port%d(Slot%d)", eqid - EQ_ID_LOADPORT1 + 1, slot);
+			return std::string(szBuffer);
+		}
+
+		if (eqid == EQ_ID_ALIGNER) {
+			return "Aligner";
+		}
+
+		if (eqid == EQ_ID_FLIPER) {
+			return "Fliper";
+		}
+
+		if (eqid == EQ_ID_VACUUMBAKE) {
+			if (unit == 0) {
+				sprintf_s(szBuffer, 256, "烘烤A腔(Slot%d)", slot);
+				return std::string(szBuffer);
+			}
+			if (unit == 1) {
+				sprintf_s(szBuffer, 256, "烘烤B腔(Slot%d)", slot);
+				return std::string(szBuffer);
+			}
+		}
+
+		if (eqid == EQ_ID_Bonder1) {
+			sprintf_s(szBuffer, 256, "Bonder1(Slot%d)", slot);
+			return std::string(szBuffer);
+		}
+
+		if (eqid == EQ_ID_Bonder2) {
+			sprintf_s(szBuffer, 256, "Bonder2(Slot%d)", slot);
+			return std::string(szBuffer);
+		}
+
+		if (eqid == EQ_ID_BAKE_COOLING) {
+
+			if (slot == 0) return "后烘烤A腔";
+			if (slot == 1) return "冷却A";
+			if (slot == 2) return "后烘烤B腔";
+			if (slot == 3) return "冷却B";
+		}
+
+		if (eqid == EQ_ID_MEASUREMENT) {
+			return "AOI";
+		}
+
+
+		if (eqid == EQ_ID_ARM_TRAY1) {
+			return "ARM1";
+		}
+
+		if (eqid == EQ_ID_ARM_TRAY2) {
+			return "ARM2";
+		}
+
 		return "";
 	}
 

--
Gitblit v1.9.3