From 68b716b29389a08dd026ddbe51a9c91dfe52e68a Mon Sep 17 00:00:00 2001
From: mrDarker <mr.darker@163.com>
Date: 星期三, 21 五月 2025 16:14:31 +0800
Subject: [PATCH] 1. 补全Robot命令界面的激活状态 2. 添加快捷方式的命令调用
---
SourceCode/Bond/Servo/CEFEM.h | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/SourceCode/Bond/Servo/CEFEM.h b/SourceCode/Bond/Servo/CEFEM.h
index 4a53122..5607ec3 100644
--- a/SourceCode/Bond/Servo/CEFEM.h
+++ b/SourceCode/Bond/Servo/CEFEM.h
@@ -40,6 +40,23 @@
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;
--
Gitblit v1.9.3