From 5bcbdac9793e19713d41b58c9eeefbd0818d192b Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期二, 06 五月 2025 16:50:05 +0800
Subject: [PATCH] 1.暂存配方参数获取

---
 SourceCode/Bond/Servo/CEquipment.h |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/SourceCode/Bond/Servo/CEquipment.h b/SourceCode/Bond/Servo/CEquipment.h
index e16140a..0b66f2f 100644
--- a/SourceCode/Bond/Servo/CEquipment.h
+++ b/SourceCode/Bond/Servo/CEquipment.h
@@ -26,6 +26,7 @@
 #include <map>
 #include <list>
 #include "CGlass.h"
+#include "CRecipesManager.h"
 
 
 namespace SERVO {
@@ -132,6 +133,12 @@
 		// unitNo: 0:local; Others:unit No
 		int masterRecipeListRequest(short unitNo);
 
+		// 请求配方参数
+		// masterRecipeId: 主配方id
+		// localRecipeId: 本地配方id
+		// unitNo: 0:local; Others:unit No
+		int recipeParameterRequest(short masterRecipeId, short localRecipeId, short unitNo);
+
 
 	// 以下为从CC-Link读取到的Bit标志位检测函数
 	public:
@@ -149,6 +156,8 @@
 		BOOL isBitOn(const char* pszData, size_t size, int index);
 		inline BOOL equalBool(BOOL b1, BOOL b2);
 		void addGlassToList(CGlass* pGlass);
+		short decodeRecipeListReport(const char* pszData, size_t size);
+		short decodeRecipeParameterReport(const char* pszData, size_t size);
 
 	protected:
 		EquipmentListener m_listener;
@@ -178,6 +187,7 @@
 		CCCLinkIEControl* m_pCclink;
 		std::map<unsigned int, CStep*> m_mapStep;
 		int m_nBaseAlarmId;
+		CRecipesManager m_recipesManager;
 	};
 }
 

--
Gitblit v1.9.3