LAPTOP-SNT8I5JK\Boounion
2025-04-11 92dee0d8070594c351008d02fd9645c9e5de80a7
SourceCode/Bond/Servo/CEFEM.cpp
@@ -1,8 +1,9 @@
#include "stdafx.h"
#include "CEFEM.h"
namespace SERVO {
   CEFEM::CEFEM()
   CEFEM::CEFEM() : CEquipment()
   {
   }
@@ -28,6 +29,39 @@
      CEquipment::term();
   }
   // 必须要实现的虚函数,在此初始化Pin列表
   void CEFEM::initPins()
   {
      // 加入Pin初始化代码
      LOGI("<CEFEM>initPins");
   }
   int CEFEM::onStepEvent(CStep* pStep, int code)
   {
      int nRet = CEquipment::onStepEvent(pStep, code);
      if (nRet > 0) return nRet;
      if (code == STEP_EVENT_READDATA) {
         if (isCassetteTransferStateStep(pStep)) {
            SERVO::CEqCassetteTransferStateStep* pEqCassetteStep = (SERVO::CEqCassetteTransferStateStep*)pStep;
            int id = pEqCassetteStep->getID();
            if (id == STEP_ID_PORT1_CASSETTIE_EMPTY) {
            }
/*
   #define STEP_ID_PORT1_CASSETTIE_LOAD_READY      0x420
   #define STEP_ID_PORT1_CASSETTIE_LOADED         0x428
   #define STEP_ID_PORT1_CASSETTIE_INUSE         0x430
   #define STEP_ID_PORT1_CASSETTIE_UNLOAD_READY   0x438
   #define STEP_ID_PORT1_CASSETTIE_BLOCKED         0x440
*/
         }
      }
      return 0;
   }
   void CEFEM::onTimer(UINT nTimerid)
   {
      CEquipment::onTimer(nTimerid);
@@ -37,4 +71,24 @@
   {
      CEquipment::serialize(ar);
   }
   void CEFEM::getAttributeVector(CAttributeVector& attrubutes)
   {
      __super::getAttributeVector(attrubutes);
   }
   int CEFEM::recvIntent(CPin* pPin, CIntent* pIntent)
   {
      return __super::recvIntent(pPin, pIntent);
   }
   BOOL CEFEM::glassWillArrive(CGlass* pGlass)
   {
      BOOL bRet = __super::glassWillArrive(pGlass);
      if (!bRet) {
         return FALSE;
      }
      return m_glassList.empty();
   }
}