chenluhua1980
6 天以前 d400f022161ff47f02cd0ea95a5076d0187ecd4d
SourceCode/Bond/Servo/CLoadPort.h
@@ -1,4 +1,4 @@
#pragma once
#pragma once
#include "CEquipment.h"
#include "ServoCommo.h"
@@ -31,8 +31,20 @@
      int setCassetteType(CassetteType type, ONWRITED onWritedBlock = nullptr);
      int setTransferMode(TransferMode mode, ONWRITED onWritedBlock = nullptr);
      int eableAutoChange(BOOL bEnable, ONWRITED onWritedBlock = nullptr);
      void localEanblePort(BOOL bEnable);
      void localSetPortType(PortType type);
      void localSetPortMode(PortMode mode);
      void localSetCessetteType(CassetteType type);
      void localSetTransferMode(TransferMode mode);
      void localAutoChangeEnable(BOOL bEnable);
      short getScanCassetteMap();
      short getDownloadCassetteMap();
      void setDownloadCassetteMap(short map);
   public:
      short getNextCassetteSequenceNo();
      int getPortCassetteSnSeed();
      void setPortCassetteSnSeed(int seed);
      void setIndex(unsigned int index);
      unsigned int getIndex();
      BOOL isEnable();
@@ -44,11 +56,15 @@
      int getPortStatus();
      int getCassetteSequenceNo();
      std::string& getCassetteId();
      // Simulation helper: allow setting CarrierID when no EFEM is connected.
      void simulateSetCassetteId(const char* pszCarrierId);
      int getLoadingCassetteType();
      int getQTimeFlag();
      int getCassetteMappingState();
      int getCassetteStatus();
      int testGenerateGlassList(MaterialsType type, const char* pszPrefix, int startSuffix);
      int testGenerateGlassList(MaterialsType type);
      int generateGlassList(short map);
      int testGenerateGlassListFromConfig(const SERVO::PortConfig& config);
   public:
      static std::string& getPortTypeDescription(PortType portType, std::string& strDescription);
@@ -68,8 +84,11 @@
         int jobExistenceSize,
         short slotProcess,
         short jopCount,
         CJobDataA* pJobDataA);
         CJobDataA* pJobDataA,
         ONWRITED onWritedBlock);
      CStep* getCassetteCtrlCmdStep();
      void setCompareMapsBeforeProceeding(BOOL bCompare);
      BOOL isCompareMapsBeforeProceeding() const;
   private:
      int decodePortStatusReport(CStep* pStep, const char* pszData, size_t size);
@@ -83,6 +102,10 @@
      BOOL m_bEnable;
      BOOL m_bAutoChangeEnable;
      CPortStatusReport m_portStatusReport;
      int m_nNextCassetteSequenceNo;
      // 在开始工艺前是否先需要先比较map
      BOOL m_isCompareMapsBeforeProceeding;
      short m_downloadCassetteMap;
   };
}