From 02fe6422964aab86753818744b901b2c299c06a4 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期四, 22 五月 2025 11:30:29 +0800
Subject: [PATCH] 1.Port cmd功能和界面操作实现; 2.操作提示框界面实现;
---
SourceCode/Bond/Servo/CLoadPort.h | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/SourceCode/Bond/Servo/CLoadPort.h b/SourceCode/Bond/Servo/CLoadPort.h
index ae63fe7..cd5146e 100644
--- a/SourceCode/Bond/Servo/CLoadPort.h
+++ b/SourceCode/Bond/Servo/CLoadPort.h
@@ -1,5 +1,6 @@
#pragma once
#include "CEquipment.h"
+#include "ServoCommo.h"
namespace SERVO {
@@ -22,7 +23,14 @@
virtual int recvIntent(CPin* pPin, CIntent* pIntent);
virtual BOOL glassWillArrive(CGlass* pGlass);
virtual void onReceiveLBData(const char* pszData, size_t size);
- virtual int onStepEvent(CStep* pStep, int code);
+
+ public:
+ int setPortType(PortType type, ONWRITED onWritedBlock = nullptr);
+ int eablePort(BOOL bEnable, ONWRITED onWritedBlock = nullptr);
+ int setPortMode(PortMode mode, ONWRITED onWritedBlock = nullptr);
+ int setCassetteType(CassetteType type, ONWRITED onWritedBlock = nullptr);
+ int setTransferMode(TransferMode mode, ONWRITED onWritedBlock = nullptr);
+ int eableAutoChange(BOOL bEnable, ONWRITED onWritedBlock = nullptr);
public:
void setIndex(unsigned int index);
@@ -33,6 +41,7 @@
int getCessetteType();
int getTransferMode();
BOOL isAutoChange();
+ int testGenerateGlassList(MaterialsType type, int count, const char* pszPrefix, int startSuffix);
public:
static std::string& getPortTypeDescription(int portType, std::string& strDescription);
@@ -52,6 +61,9 @@
CStep* getCassetteCtrlCmdStep();
private:
+ int decodePortStatusReport(CStep* pStep, const char* pszData, size_t size);
+
+ private:
unsigned int m_nIndex;
int m_nType;
int m_nMode;
@@ -59,6 +71,7 @@
int m_nTransferMode;
BOOL m_bEnable;
BOOL m_bAutoChangeEnable;
+ CPortStatusReport m_portStatusReport;
};
}
--
Gitblit v1.9.3