From be5a6792464eb0722a387b0ab74722d19c9a4a17 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期二, 09 九月 2025 09:37:16 +0800
Subject: [PATCH] 1.Glass增加对应数据库字段的接口;
---
SourceCode/Bond/Servo/CServoUtilsTool.cpp | 87 +++++++++++++++++++++++++++++++++++++++++++
1 files changed, 87 insertions(+), 0 deletions(-)
diff --git a/SourceCode/Bond/Servo/CServoUtilsTool.cpp b/SourceCode/Bond/Servo/CServoUtilsTool.cpp
new file mode 100644
index 0000000..841e980
--- /dev/null
+++ b/SourceCode/Bond/Servo/CServoUtilsTool.cpp
@@ -0,0 +1,87 @@
+#include "stdafx.h"
+#include "CServoUtilsTool.h"
+#include "Common.h"
+
+
+namespace SERVO {
+ CServoUtilsTool::CServoUtilsTool()
+ {
+
+ }
+
+ CServoUtilsTool::~CServoUtilsTool()
+ {
+
+ }
+
+ std::string CServoUtilsTool::getEqUnitName(int eqid, int unit)
+ {
+ /*
+#define EQ_ID_LOADPORT1 1
+#define EQ_ID_LOADPORT2 2
+#define EQ_ID_LOADPORT3 3
+#define EQ_ID_LOADPORT4 4
+#define EQ_ID_ARM_TRAY1 5
+#define EQ_ID_ARM_TRAY2 6
+#define EQ_ID_ALIGNER 7
+#define EQ_ID_FLIPER 8
+#define EQ_ID_VACUUMBAKE 9
+#define EQ_ID_Bonder1 10
+#define EQ_ID_Bonder2 11
+#define EQ_ID_BAKE_COOLING 12
+#define EQ_ID_MEASUREMENT 13
+#define EQ_ID_EFEM 100
+#define EQ_ID_ARM 101
+#define EQ_ID_OPERATOR_REMOVE 102
+*/
+ 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)", unit, eqid - EQ_ID_LOADPORT1 + 1);
+ 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) return "烘烤A腔";
+ 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";
+ }
+
+ if (eqid == EQ_ID_Bonder2) {
+ return "Bonder2";
+ }
+
+ if (eqid == EQ_ID_BAKE_COOLING) {
+
+ if (unit == 0) return "后烘烤A腔";
+ if (unit == 1) return "冷却A";
+ if (unit == 0) return "后烘烤B腔";
+ if (unit == 1) return "冷却B";
+ }
+
+ if (eqid == EQ_ID_MEASUREMENT) {
+ return "AOI";
+ }
+
+ return "";
+ }
+}
--
Gitblit v1.9.3