From 2a7efcf2a4bac5e7f9813975c87683ea09fb984e Mon Sep 17 00:00:00 2001
From: chenluhua1980 <Chenluhua@qq.com>
Date: 星期六, 24 一月 2026 10:47:39 +0800
Subject: [PATCH] 1.修复曲线数据未触发问题;

---
 SourceCode/Bond/Servo/CBakeCooling.cpp |   50 ++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 48 insertions(+), 2 deletions(-)

diff --git a/SourceCode/Bond/Servo/CBakeCooling.cpp b/SourceCode/Bond/Servo/CBakeCooling.cpp
index dedf8a4..bbacd24 100644
--- a/SourceCode/Bond/Servo/CBakeCooling.cpp
+++ b/SourceCode/Bond/Servo/CBakeCooling.cpp
@@ -32,7 +32,7 @@
 	void CBakeCooling::initPins()
 	{
 		// 加入Pin初始化代码
-		LOGI("<CBakeCooling>initPins");
+		LOGD("<CBakeCooling>initPins");
 		addPin(SERVO::PinType::INPUT, _T("In1"));
 		addPin(SERVO::PinType::INPUT, _T("In2"));
 		addPin(SERVO::PinType::OUTPUT, _T("Out"));
@@ -487,7 +487,53 @@
 
 	int CBakeCooling::parsingProcessData(const char* pszData, size_t size, std::vector<CParam>& params)
 	{
-		return parsingParams(pszData, size, params);
+		ASSERT(pszData);
+		if (size < 250) return 0;
+		int i = 0, v;
+
+
+		// 1.工艺参数序号
+		v = (pszData[i] & 0xff) | (pszData[i + 1] & 0xff) << 8;
+		params.push_back(CParam("工艺参数序号", "", this->getName().c_str(), v));
+		i += 2;
+
+		if (v == 1) {
+			// 2.A_腔烘烤时间
+			v = (pszData[i] & 0xff) | (pszData[i + 1] & 0xff) << 8;
+			params.push_back(CParam("A_腔烘烤时间", "", this->getName().c_str(), v * 0.01f));
+			i += 2;
+
+			// 3.A_烘烤温度设定
+			v = (pszData[i] & 0xff) | (pszData[i + 1] & 0xff) << 8;
+			params.push_back(CParam("A_烘烤温度设定", "", this->getName().c_str(), v * 0.1f));
+			i += 2;
+		}
+		else if (v == 2) {
+			// 2.A_腔冷却时间
+			v = (pszData[i] & 0xff) | (pszData[i + 1] & 0xff) << 8;
+			params.push_back(CParam("A_腔冷却时间", "", this->getName().c_str(), v * 0.01f));
+			i += 2;
+		}
+		else if (v == 3) {
+			// 2.A_腔烘烤时间
+			v = (pszData[i] & 0xff) | (pszData[i + 1] & 0xff) << 8;
+			params.push_back(CParam("B_腔烘烤时间", "", this->getName().c_str(), v * 0.01f));
+			i += 2;
+
+			// 3.A_烘烤温度设定
+			v = (pszData[i] & 0xff) | (pszData[i + 1] & 0xff) << 8;
+			params.push_back(CParam("B_烘烤温度设定", "", this->getName().c_str(), v * 0.1f));
+			i += 2;
+		}
+		else if (v == 4) {
+			// 2.A_腔冷却时间
+			v = (pszData[i] & 0xff) | (pszData[i + 1] & 0xff) << 8;
+			params.push_back(CParam("B_腔冷却时间", "", this->getName().c_str(), v * 0.01f));
+			i += 2;
+		}
+
+
+		return (int)params.size();
 	}
 
 	int CBakeCooling::parsingSVData(const char* pszData, size_t size, std::vector<CParam>& params)

--
Gitblit v1.9.3