From c3aa662297c2182de2e7a53d7bf63f4ab6b1adbd Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期一, 15 九月 2025 17:29:22 +0800
Subject: [PATCH] 1.千传调度调整,修改为物料从哪个Port, 那个Slot搬出就最终终回哪个位置 ;

---
 SourceCode/Bond/Servo/CLoadPort.cpp |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/SourceCode/Bond/Servo/CLoadPort.cpp b/SourceCode/Bond/Servo/CLoadPort.cpp
index e7725f2..13df4d9 100644
--- a/SourceCode/Bond/Servo/CLoadPort.cpp
+++ b/SourceCode/Bond/Servo/CLoadPort.cpp
@@ -404,7 +404,6 @@
 			m_portStatusReport.serialize(ar);
 		}
 		else {
-			int temp;
 			ar >> m_nIndex;
 			m_portStatusReport.serialize(ar);
 		}
@@ -490,6 +489,19 @@
 		return (m_nIndex + 1) * 1000 + m_nNextCassetteSequenceNo;
 	}
 
+	int CLoadPort::getPortCassetteSnSeed()
+	{
+		return m_nNextCassetteSequenceNo;
+	}
+
+	void CLoadPort::setPortCassetteSnSeed(int seed)
+	{
+		m_nNextCassetteSequenceNo = seed;
+		if (m_nNextCassetteSequenceNo >= 1000) {
+			m_nNextCassetteSequenceNo = 0;
+		}
+	}
+
 	void CLoadPort::setIndex(unsigned int index)
 	{
 		m_nIndex = index;

--
Gitblit v1.9.3