From bc7f1c4e028e69be51079b59dae4ae5c4d43f5bb Mon Sep 17 00:00:00 2001
From: chenluhua1980 <Chenluhua@qq.com>
Date: 星期六, 31 一月 2026 21:54:56 +0800
Subject: [PATCH] 1.状态指示图,目前灰色表示掉线,绿色表示在线。增加Slot的小点表示有没有料,及加工状态 。 2.增加图示
---
SourceCode/Bond/Servo/CServoUtilsTool.cpp | 166 +++++++++++++++++++++++++++++++++++++++++++++++++++----
1 files changed, 154 insertions(+), 12 deletions(-)
diff --git a/SourceCode/Bond/Servo/CServoUtilsTool.cpp b/SourceCode/Bond/Servo/CServoUtilsTool.cpp
index bfa0a43..94bb8f7 100644
--- a/SourceCode/Bond/Servo/CServoUtilsTool.cpp
+++ b/SourceCode/Bond/Servo/CServoUtilsTool.cpp
@@ -1,9 +1,40 @@
-#include "stdafx.h"
+锘�#include "stdafx.h"
#include "CServoUtilsTool.h"
#include "Common.h"
namespace SERVO {
+ static std::unordered_map<int, std::vector<std::string>> EQ_DATA_TYPES = {
+ {MID_Bonder1, {
+ "姘斿泭鍘嬪姏", "涓婅厰鍘嬪姏", "绠¢亾鐪熺┖瑙勫��", "鑵斾綋鐪熺┖瑙勫��",
+ "涓婅厰娓╁害1", "涓婅厰娓╁害2", "涓婅厰娓╁害3", "涓婅厰娓╁害4",
+ "涓婅厰娓╁害5", "涓婅厰娓╁害6", "涓嬭厰娓╁害1", "涓嬭厰娓╁害2",
+ "涓嬭厰娓╁害3", "涓嬭厰娓╁害4", "涓嬭厰娓╁害5", "涓嬭厰娓╁害6"
+ }},
+ {MID_Bonder2, {
+ "姘斿泭鍘嬪姏", "涓婅厰鍘嬪姏", "绠¢亾鐪熺┖瑙勫��", "鑵斾綋鐪熺┖瑙勫��",
+ "涓婅厰娓╁害1", "涓婅厰娓╁害2", "涓婅厰娓╁害3", "涓婅厰娓╁害4",
+ "涓婅厰娓╁害5", "涓婅厰娓╁害6", "涓嬭厰娓╁害1", "涓嬭厰娓╁害2",
+ "涓嬭厰娓╁害3", "涓嬭厰娓╁害4", "涓嬭厰娓╁害5", "涓嬭厰娓╁害6"
+ }},
+ {MID_VacuumBakeA, {
+ "鐪熺┖瑙勫��", "娓╂帶1", "娓╂帶2", "娓╂帶4",
+ "娓╂帶5", "娓╂帶6", "娓╂帶7"
+ }},
+ {MID_VacuumBakeB, {
+ "鐪熺┖瑙勫��", "娓╂帶1", "娓╂帶2", "娓╂帶4",
+ "娓╂帶5", "娓╂帶6", "娓╂帶7"
+ }},
+ {MID_BakeCoolingA, {
+ "鐑樼儰娓╂帶1", "鐑樼儰娓╂帶2", "鐑樼儰娓╂帶4", "鐑樼儰娓╂帶5",
+ "鐑樼儰娓╂帶6", "鐑樼儰娓╂帶7"
+ }},
+ {MID_BakeCoolingB, {
+ "鐑樼儰娓╂帶1", "鐑樼儰娓╂帶2", "鐑樼儰娓╂帶4", "鐑樼儰娓╂帶5",
+ "鐑樼儰娓╂帶6", "鐑樼儰娓╂帶7"
+ }}
+ };
+
CServoUtilsTool::CServoUtilsTool()
{
@@ -12,6 +43,43 @@
CServoUtilsTool::~CServoUtilsTool()
{
+ }
+
+ std::string CServoUtilsTool::getEqName(int eqid)
+ {
+ switch (eqid)
+ {
+ case EQ_ID_LOADPORT1:
+ return "Port1";
+ case EQ_ID_LOADPORT2:
+ return "Port2";
+ case EQ_ID_LOADPORT3:
+ return "Port3";
+ case EQ_ID_LOADPORT4:
+ return "Port4";
+ case EQ_ID_ALIGNER:
+ return "Aligner";
+ case EQ_ID_FLIPER:
+ return "Fliper";
+ case EQ_ID_VACUUMBAKE:
+ return "VacuumBake";
+ case EQ_ID_Bonder1:
+ return "Bonder1";
+ case EQ_ID_Bonder2:
+ return "Bonder2";
+ case EQ_ID_BAKE_COOLING:
+ return "BakeCooling";
+ case EQ_ID_MEASUREMENT:
+ return "AOI";
+ case EQ_ID_ARM_TRAY1:
+ return "ArmTray1";
+ case EQ_ID_ARM_TRAY2:
+ return "ArmTray2";
+ default:
+ break;
+ }
+
+ return "";
}
std::string CServoUtilsTool::getEqUnitName(int eqid, int unit)
@@ -35,13 +103,8 @@
}
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 (unit == 0) return "鐑樼儰A鑵�";
+ if (unit == 1) return "鐑樼儰B鑵�";
}
if (eqid == EQ_ID_Bonder1) {
@@ -54,14 +117,88 @@
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 (unit == 0) return "鍚庣儤鐑鑵�";
+ if (unit == 1) return "鍐峰嵈A";
+ if (unit == 2) return "鍚庣儤鐑鑵�";
+ 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 "鍚庣儤鐑鑵�";
+ if (slot == 1) return "鍐峰嵈A";
+ if (slot == 2) return "鍚庣儤鐑鑵�";
+ 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 "";
@@ -129,4 +266,9 @@
break;
}
}
+
+ std::unordered_map<int, std::vector<std::string>>& CServoUtilsTool::getEqDataTypes()
+ {
+ return EQ_DATA_TYPES;
+ }
}
--
Gitblit v1.9.3