From 18f05a37d19e0e20db266a4e32e8263847e94a76 Mon Sep 17 00:00:00 2001
From: chenluhua1980 <Chenluhua@qq.com>
Date: 星期二, 06 一月 2026 18:15:05 +0800
Subject: [PATCH] 1.测试,完善,+日志

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

diff --git a/SourceCode/Bond/Servo/Model.cpp b/SourceCode/Bond/Servo/Model.cpp
index c39f86b..9918b56 100644
--- a/SourceCode/Bond/Servo/Model.cpp
+++ b/SourceCode/Bond/Servo/Model.cpp
@@ -480,6 +480,20 @@
 		}
 		notifyPtr(RX_CODE_LOADPORT_STATUS_CHANGED, pEquipment);
 	};
+	masterListener.onProcessStateChanged = [&](void* pMaster, SERVO::CEquipment* pEquipment, int slotNo, SERVO::PROCESS_STATE state) {
+		// SubEqpStart/SubEqpEnd: align to log's EV_SubEqpStart/EV_SubEqpEnd stage (no report payload required).
+		(void)pMaster;
+		if (pEquipment != nullptr) {
+			m_hsmsPassive.setVariableValue("SubEqpName", pEquipment->getName().c_str());
+		}
+		m_hsmsPassive.setVariableValue("SubEqpSlot", slotNo);
+		if (state == SERVO::PROCESS_STATE::Processing) {
+			m_hsmsPassive.requestEventReportSend_SubEqpStart();
+		}
+		else if (state == SERVO::PROCESS_STATE::Complete) {
+			m_hsmsPassive.requestEventReportSend_SubEqpEnd();
+		}
+	};
 	masterListener.onCTRoundEnd = [&](void* pMaster, int round) {
 		m_configuration.setContinuousTransferCount(round);
 	};

--
Gitblit v1.9.3