From decceeb6669cadea0302c2e5a8035b920a04f836 Mon Sep 17 00:00:00 2001
From: chenluhua1980 <Chenluhua@qq.com>
Date: 星期四, 12 二月 2026 15:54:16 +0800
Subject: [PATCH] 1.SVdata不主动上报,但先缓存。且bonder1和bonder2分开变量。

---
 SourceCode/Bond/Servo/Model.cpp |   24 ++++++++++++++----------
 1 files changed, 14 insertions(+), 10 deletions(-)

diff --git a/SourceCode/Bond/Servo/Model.cpp b/SourceCode/Bond/Servo/Model.cpp
index 6785250..d038cb0 100644
--- a/SourceCode/Bond/Servo/Model.cpp
+++ b/SourceCode/Bond/Servo/Model.cpp
@@ -985,11 +985,10 @@
 	};
 	masterListener.onSVDataReport = [&](void* pMaster, SERVO::CEquipment* pEquipment, const std::vector<CParam>& params) {
 		(void)pMaster;
-		// 瀹㈡埛瑕佹眰鏆傛椂鍏虫帀SV涓婃姤锛屽皢鏉ユ崲鍙︿竴绉嶆柟寮�
-		/*
+		// Keep SV variable cache updated, but do not actively send S6F11 reports.
 		const int eqId = pEquipment ? pEquipment->getID() : 0;
 
-		auto sendSv = [&](const auto& vidMap, const char* evName) {
+		auto cacheSv = [&](const auto& vidMap) {
 			const size_t count = (std::min)(params.size(), vidMap.size());
 			m_hsmsPassive.withVariableLock([&] {
 				if (pEquipment != nullptr) {
@@ -1001,36 +1000,41 @@
 					const std::string val = formatParamValue(params[idx]);
 					m_hsmsPassive.setVariableValue(std::to_string(vidMap[idx]).c_str(), val.c_str());
 				}
-				m_hsmsPassive.requestEventReportSend(evName);
 			});
 		};
 
-		if (eqId == EQ_ID_Bonder1 || eqId == EQ_ID_Bonder2) {
+		if (eqId == EQ_ID_Bonder1) {
 			static constexpr std::array<int, 19> vids = {
 				6000,6001,6002,6003,6004,6005,6006,6007,6008,6009,
 				6010,6011,6012,6013,6014,6015,6016,6017,6018
 			};
-			sendSv(vids, "BonderSVData");
+			cacheSv(vids);
+		}
+		else if (eqId == EQ_ID_Bonder2) {
+			static constexpr std::array<int, 19> vids = {
+				6020,6021,6022,6023,6024,6025,6026,6027,6028,6029,
+				6030,6031,6032,6033,6034,6035,6036,6037,6038
+			};
+			cacheSv(vids);
 		}
 		else if (eqId == EQ_ID_VACUUMBAKE) {
 			static constexpr std::array<int, 18> vids = {
 				6200,6201,6202,6203,6204,6205,6206,6207,6208,
 				6209,6210,6211,6212,6213,6214,6215,6216,6217
 			};
-			sendSv(vids, "VacuumBakeSVData");
+			cacheSv(vids);
 		}
 		else if (eqId == EQ_ID_BAKE_COOLING) {
 			static constexpr std::array<int, 20> vids = {
 				6400,6401,6402,6403,6404,6405,6406,6407,6408,6409,
 				6410,6411,6412,6413,6414,6415,6416,6417,6418,6419
 			};
-			sendSv(vids, "BakeCoolingSVData");
+			cacheSv(vids);
 		}
 		else if (eqId == EQ_ID_MEASUREMENT) {
 			static constexpr std::array<int, 2> vids = { 6600, 6601 };
-			sendSv(vids, "MeasurementSVData");
+			cacheSv(vids);
 		}
-		*/
 	};
 	masterListener.onProcessDataReport = [&](void* pMaster, SERVO::CEquipment* pEquipment, const std::vector<CParam>& params) {
 		(void)pMaster;

--
Gitblit v1.9.3