LAPTOP-SNT8I5JK\Boounion
2025-05-23 6fc65c5cf54432d1044fbe9799aca76f7273798c
SourceCode/Bond/Servo/CEFEM.h
@@ -20,7 +20,6 @@
        virtual void term();
        virtual void initPins();
        virtual void initSteps();
        virtual int onStepEvent(CStep* pStep, int code);
        virtual void onTimer(UINT nTimerid);
        virtual void serialize(CArchive& ar);
        virtual void getAttributeVector(CAttributeVector& attrubutes);
@@ -41,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;