From 98d66db6f691dcffd21f77130c138f710704b14c Mon Sep 17 00:00:00 2001
From: mrDarker <mr.darker@163.com>
Date: 星期四, 24 七月 2025 10:39:05 +0800
Subject: [PATCH] 1. EFEM添加获取配方列表事件

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

diff --git a/SourceCode/Bond/Servo/CEquipment.h b/SourceCode/Bond/Servo/CEquipment.h
index 3fec1cc..079e4af 100644
--- a/SourceCode/Bond/Servo/CEquipment.h
+++ b/SourceCode/Bond/Servo/CEquipment.h
@@ -55,6 +55,7 @@
 	typedef std::function<BOOL(void* pEiuipment, int port, CJobDataB* pJobDataB, short& putSlot)> ONPRESTOREDJOB;
 	typedef std::function<void(void* pEiuipment, PROCESS_STATE state)> ONPROCESSSTATE;
 	typedef std::function<void(void* pEiuipment, short scanMap, short downMap)> ONMAPMISMATCH;
+	typedef std::function<void(void* pEiuipment, short scanMap)> ONPORTINUSE;
 	typedef struct _EquipmentListener
 	{
 		ONALIVE				onAlive;
@@ -66,6 +67,8 @@
 		ONPRESTOREDJOB		onPreStoredJob;
 		ONPROCESSSTATE		onProcessStateChanged;
 		ONMAPMISMATCH		onMapMismatch;
+		ONPORTINUSE			onPortInUse;
+
 	} EquipmentListener;
 
 
@@ -76,6 +79,8 @@
 		virtual ~CEquipment();
 
 	public:
+		void SetEnable(BOOL bEnable);
+		BOOL IsEnabled() const;
 		virtual const char* getClassName() = 0;
 		virtual void setListener(EquipmentListener listener);
 		void setCcLink(CCCLinkIEControl* pCcLink);
@@ -248,6 +253,7 @@
 		void setProcessState(PROCESS_STATE state);
 
 	protected:
+		BOOL m_bEnable;
 		EquipmentListener m_listener;
 		int m_nID;
 		std::string m_strName;

--
Gitblit v1.9.3