From 10f48622c553729352dce9a4484def4bfeaa1083 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期三, 02 七月 2025 14:51:33 +0800
Subject: [PATCH] 1.将OnPanelDataReport相关功能由EFEM移到Aligner; 2.Glass增加最初来源Port和Slot,以便在Aligner检测NG时加退; 3.物流调度增加一个参数,是否检测OK作为调度依据。 4.Alginer检测NG,送回原处;
---
SourceCode/Bond/Servo/CGlass.cpp | 49 +++++++++++++++++++++++++++++++++++++++++++++----
1 files changed, 45 insertions(+), 4 deletions(-)
diff --git a/SourceCode/Bond/Servo/CGlass.cpp b/SourceCode/Bond/Servo/CGlass.cpp
index a9e88eb..6d1a1ee 100644
--- a/SourceCode/Bond/Servo/CGlass.cpp
+++ b/SourceCode/Bond/Servo/CGlass.cpp
@@ -8,6 +8,8 @@
m_pPath = nullptr;
m_type = MaterialsType::G1;
m_pBuddy = nullptr;
+ m_nOriginPort = 0;
+ m_nOriginSlot = 0;
}
CGlass::~CGlass()
@@ -66,6 +68,18 @@
return m_strID;
}
+ void CGlass::setOriginPort(int port, int slot)
+ {
+ m_nOriginPort = port;
+ m_nOriginSlot = slot;
+ }
+
+ void CGlass::getOrginPort(int& port, int& slot)
+ {
+ port = m_nOriginPort;
+ slot = m_nOriginSlot;
+ }
+
CPath* CGlass::getPath()
{
return m_pPath;
@@ -103,6 +117,8 @@
Lock();
ar << (int)m_type;
WriteString(ar, m_strID);
+ ar << m_nOriginPort;
+ ar << m_nOriginSlot;
ar << (ULONGLONG)m_pPath;
if (m_pPath != nullptr) {
m_pPath->serialize(ar);
@@ -123,6 +139,8 @@
ar >> type;
m_type = (MaterialsType)type;
ReadString(ar, m_strID);
+ ar >> m_nOriginPort;
+ ar >> m_nOriginSlot;
ar >> ullPath;
if (ullPath != 0) {
m_pPath = new CPath();
@@ -140,6 +158,11 @@
void CGlass::setJobDataS(CJobDataS* pJobDataS)
{
m_jobDataS.copy(pJobDataS);
+ }
+
+ void CGlass::updateJobDataS(CJobDataS* pJobDataS)
+ {
+ m_jobDataS.update(pJobDataS);
}
CJobDataS* CGlass::getJobDataS()
@@ -177,12 +200,13 @@
return m_strBuddyId;
}
- void CGlass::processEnd(unsigned int nEqId, unsigned int nUnit)
+ int CGlass::processEnd(unsigned int nEqId, unsigned int nUnit)
{
CPath* pPath = getPathWithEq(nEqId, nUnit);
- if (pPath != nullptr) {
- pPath->processEnd();
- }
+ if (pPath == nullptr) return -1;
+
+ pPath->processEnd();
+ return 0;
}
BOOL CGlass::isProcessed(unsigned int nEqId, unsigned int nUnit)
@@ -192,4 +216,21 @@
return pPath->isProcessEnd();
}
+
+ int CGlass::setInspResult(unsigned int nEqId, unsigned int nUnit, InspResult result)
+ {
+ CPath* pPath = getPathWithEq(nEqId, nUnit);
+ if (pPath == nullptr) return -1;
+
+ pPath->setInspResult(result);
+ return 0;
+ }
+
+ InspResult CGlass::getInspResult(unsigned int nEqId, unsigned int nUnit)
+ {
+ CPath* pPath = getPathWithEq(nEqId, nUnit);
+ if (pPath == nullptr) return InspResult::NotInspected;
+
+ return pPath->getInspResult();
+ }
}
--
Gitblit v1.9.3