From 958cfa6b2e1c1eec0e20edc50816ef18f10cbf09 Mon Sep 17 00:00:00 2001
From: mrDarker <mr.darker@163.com>
Date: 星期四, 29 五月 2025 15:50:34 +0800
Subject: [PATCH] 1. 修改本地模式Port设置界面 2. 添加Transfer数据库管理类
---
SourceCode/Bond/Servo/CEFEM.h | 49 ++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 48 insertions(+), 1 deletions(-)
diff --git a/SourceCode/Bond/Servo/CEFEM.h b/SourceCode/Bond/Servo/CEFEM.h
index 7a7be7e..d8a4e1b 100644
--- a/SourceCode/Bond/Servo/CEFEM.h
+++ b/SourceCode/Bond/Servo/CEFEM.h
@@ -1,5 +1,10 @@
#pragma once
#include "CEquipment.h"
+#include "CLoadPort.h"
+#include "CAligner.h"
+#include "CFliper.h"
+#include "CArmTray.h"
+
namespace SERVO {
class CEFEM :
@@ -7,14 +12,56 @@
{
public:
CEFEM();
- ~CEFEM();
+ virtual ~CEFEM();
public:
virtual const char* getClassName();
virtual void init();
virtual void term();
+ virtual void initPins();
+ virtual void initSteps();
virtual void onTimer(UINT nTimerid);
virtual void serialize(CArchive& ar);
+ virtual void getAttributeVector(CAttributeVector& attrubutes);
+ virtual int recvIntent(CPin* pPin, CIntent* pIntent);
+ virtual BOOL glassWillArrive(CGlass* pGlass);
+ virtual void onReceiveLBData(const char* pszData, size_t size);
+ virtual int onReceivedJob(int port, CJobDataS* pJobDataS);
+ virtual int onSentOutJob(int port, CJobDataS* pJobDataS);
+ virtual int onFetchedOutJob(int port, CJobDataB* pJobDataB);
+ virtual int onStoredJob(int port, CJobDataB* pJobDataB);
+ virtual int getIndexerOperationModeBaseValue();
+
+ public:
+ void setPort(unsigned int index, CLoadPort* pPort);
+ void setAligner(CAligner* pAligner);
+ void setFliper(CFliper* pFliper);
+ void setArmTray(unsigned int index, CArmTray* pArmTray);
+ int robotCmd(ROBOT_CMD_PARAM& robotCmdParam, ONWRITED onWritedBlock = nullptr);
+ int robotCmds(ROBOT_CMD_PARAM* robotCmdParam, unsigned int count, ONWRITED onWritedBlock = nullptr);
+
+ // 快捷封装
+ int SendHome(int seq);
+ int SendTransfer(int seq, int armNo, int fromPos, int toPos, int fromSlot, int toSlot);
+ int SendMoveToGet(int seq, int armNo, int pos, int slot);
+ int SendMoveToPut(int seq, int armNo, int pos, int slot);
+ int SendGet(int seq, int armNo, int pos, int slot);
+ int SendPut(int seq, int armNo, int pos, int slot);
+ int SendExchange(int seq, int armNo, int pos, int getSlot, int putSlot);
+ int SendCommandClear(int seq);
+ int SendBatchGet(int seq, int getPos, int getSlot);
+ int SendBatchPut(int seq, int putPos, int putSlot);
+ int SendMoveToGetAndHome(int seq, int armNo, int getPos, int getSlot);
+ int SendMoveToPutAndHome(int seq, int armNo, int putPos, int putSlot);
+ int SendTransferAndHome(int seq, int armNo, int fromPos, int toPos, int fromSlot, int toSlot);
+ int SendGetAndPut(int seq, int armNo, int getPos, int getSlot, int putPos, int putSlot);
+ int SendPutAndHome(int seq, int armNo, int putPos, int putSlot);
+
+ private:
+ CLoadPort* m_pPort[4];
+ CAligner* m_pAligner;
+ CFliper* m_pFliper;
+ CArmTray* m_pArmTray[2];
};
}
--
Gitblit v1.9.3