update MEyeVision abstract function

main
Yik Teng Hie 2 years ago
parent 8359b89c24
commit 0cda4f9027

@ -181,7 +181,7 @@ public:
bool StartTeachPosition(int nStationNo, int nIndexX, int nIndexY, int nColFOV, int nRowFOV); bool StartTeachPosition(int nStationNo, int nIndexX, int nIndexY, int nColFOV, int nRowFOV);
bool StartInspectPosition(int nStationNo, int nIndexX, int nIndexY, int nColFOV, int nRowFOV); bool StartInspectPosition(int nStationNo, int nIndexX, int nIndexY, int nColFOV, int nRowFOV);
bool GetMultiUnitResult(int nStationNo, stGPMultiUnitDataResult& st_MultiUnitResult, int nUnitID); bool GetMultiUnitResult(int nStationNo, stGPMultiUnitDataResult& st_MultiUnitResult, int nUnitID);
bool WaitResultReady(int nStationNo, DWORD dwTimeout, bool bMultiUnit = false); bool WaitResultReady(int nStationNo, DWORD dwTimeout, bool bMultiUnit = false) override;
bool SetFOVOffset(int nStationNo, double dOffsetX = 0.0, double dOffsetY = 0.0); bool SetFOVOffset(int nStationNo, double dOffsetX = 0.0, double dOffsetY = 0.0);
__declspec(deprecated("Use SetClusterID() instead")) bool SetFOVPosition(int nStationNo, std::string strStripID, int nDeviceCluster = -1); __declspec(deprecated("Use SetClusterID() instead")) bool SetFOVPosition(int nStationNo, std::string strStripID, int nDeviceCluster = -1);
@ -267,6 +267,9 @@ public:
bool SendMsg(const std::string& strMsg, DWORD dwTimeout, bool bWaitAck = false) override; bool SendMsg(const std::string& strMsg, DWORD dwTimeout, bool bWaitAck = false) override;
bool SendCommand(const std::string& strCommand, bool bWaitAck = false, DWORD dwTimeout = 5000) override; bool SendCommand(const std::string& strCommand, bool bWaitAck = false, DWORD dwTimeout = 5000) override;
bool WaitImageTaken(int nStationNo, DWORD dwTimeout = 0) override; bool WaitImageTaken(int nStationNo, DWORD dwTimeout = 0) override;
bool IsTeach(int nStationNo) override;
bool IsRun() override;
bool IsAck() override;
bool Run() override; bool Run() override;
bool Stop() override; bool Stop() override;
bool DataEnd() override; bool DataEnd() override;
@ -280,6 +283,8 @@ public:
bool SetNetUPH(long lNetUPH) override; bool SetNetUPH(long lNetUPH) override;
bool SetShiftID(const std::string& strShiftID) override; bool SetShiftID(const std::string& strShiftID) override;
bool GetStatus() override;
bool CloseLot(DWORD dwTimeout = 5000) override; bool CloseLot(DWORD dwTimeout = 5000) override;
bool OpenLot(int nPackageID, DWORD dwTimeout = 5000) override; bool OpenLot(int nPackageID, DWORD dwTimeout = 5000) override;
bool OpenLot(const std::string& strPackageName, DWORD dwTimeout = 5000) override; bool OpenLot(const std::string& strPackageName, DWORD dwTimeout = 5000) override;

@ -69,7 +69,7 @@ namespace VISION_BASE
virtual bool SwitchAppWindow(int nStationNo, DWORD dwTimeout = 5000) = 0; virtual bool SwitchAppWindow(int nStationNo, DWORD dwTimeout = 5000) = 0;
bool IsLotOpen() const; bool IsLotOpen() const;
bool WaitInTeach(int nStationNo, DWORD dwTimeout); bool WaitInTeach(int nStationNo, DWORD dwTimeout);
bool WaitResultReady(int nStationNo, DWORD dwTimeout); virtual bool WaitResultReady(int nStationNo, DWORD dwTimeout, bool bMultiUnit = false);
virtual bool WaitImageTaken(int nStationNo, DWORD dwTimeout = 0); virtual bool WaitImageTaken(int nStationNo, DWORD dwTimeout = 0);
bool GetResult(int nStationNo, std::string& csResult); bool GetResult(int nStationNo, std::string& csResult);
std::string GetReceiveData(); std::string GetReceiveData();
@ -95,12 +95,12 @@ namespace VISION_BASE
virtual bool DataEnd() = 0; virtual bool DataEnd() = 0;
virtual bool DataStart() = 0; virtual bool DataStart() = 0;
virtual bool SetPackageID(long lPackageID) = 0; virtual bool SetPackageID(long lPackageID) = 0;
virtual bool GetResult(int nStationNo, stGPDoubleDataResult& st_dResult) = 0; virtual bool GetResult(int nStationNo, stGPDoubleDataResult& st_dResult);
virtual bool CheckResultReady(int nStationNo) = 0; virtual bool CheckResultReady(int nStationNo);
virtual bool CloseLot(DWORD dwTimeout = 5000) = 0; virtual bool CloseLot(DWORD dwTimeout = 5000) = 0;
virtual bool OpenLot(int nPackageID, DWORD dwTimeout = 5000) = 0; virtual bool OpenLot(int nPackageID, DWORD dwTimeout = 5000) = 0;
virtual bool OpenLot(const std::string& strPackageName, DWORD dwTimeout = 5000) = 0; virtual bool OpenLot(const std::string& strPackageName, DWORD dwTimeout = 5000) = 0;
virtual bool CheckImageTaken(int nStationNo) = 0; virtual bool CheckImageTaken(int nStationNo);
virtual bool StartInspect(int nStationNo, int nNextSOT = 0, int nEdge = 1, TWO_TYPE_INSPECTION nTypeID = TWO_TYPE_INSPECTION::DISABLED) = 0; virtual bool StartInspect(int nStationNo, int nNextSOT = 0, int nEdge = 1, TWO_TYPE_INSPECTION nTypeID = TWO_TYPE_INSPECTION::DISABLED) = 0;
virtual void ReceiveComm(const char* cpcBuffer, int nSize) = 0; virtual void ReceiveComm(const char* cpcBuffer, int nSize) = 0;

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -325,13 +325,13 @@ public:
HOME_MOVE_COMPLETE, HOME_MOVE_COMPLETE,
}; };
std::string GetVariable(std::string csVariableName); std::string GetVariable(const std::string& csVariableName);
int StopProgramAndMotion(); int StopProgramAndMotion();
int UpdateProfile(); int UpdateProfile();
int SendCommand(std::string csCommand); int SendCommand(const std::string& csCommand);
// ************************************************************ // ************************************************************
// Applicable to Galil Axis - ENDS // Applicable to Galil Axis - ENDS
// ************************************************************ // ************************************************************
@ -339,28 +339,28 @@ public:
// ************************************************************ // ************************************************************
// Methods to enquire other motors status - STARTS // Methods to enquire other motors status - STARTS
// ************************************************************ // ************************************************************
double GetOtherAxisPosition(CMtrProfile mtrProfile); double GetOtherAxisPosition(const CMtrProfile& mtrProfile);
// Check other axis home sensor // Check other axis home sensor
BOOL IsHomed(CMtrProfile mtrProfile); BOOL IsHomed(const CMtrProfile& mtrProfile);
// Get other axis motion IO status // Get other axis motion IO status
int GetMotionIOStatus(CMtrProfile mtrProfile); int GetMotionIOStatus(const CMtrProfile& mtrProfile);
// Get Other axis servo ready status // Get Other axis servo ready status
BOOL IsServoReady(CMtrProfile mtrProfile); BOOL IsServoReady(const CMtrProfile& mtrProfile);
// Get Other axis Alarm status // Get Other axis Alarm status
BOOL IsServoAlarm(CMtrProfile mtrProfile); BOOL IsServoAlarm(const CMtrProfile& mtrProfile);
// Get Other axis negative limit status // Get Other axis negative limit status
BOOL IsNegLmtHit(CMtrProfile mtrProfile); BOOL IsNegLmtHit(const CMtrProfile& mtrProfile);
// Get Other axis positive limit status // Get Other axis positive limit status
BOOL IsPosLmtHit(CMtrProfile mtrProfile); BOOL IsPosLmtHit(const CMtrProfile& mtrProfile);
// Get Other axis positive limit status // Get Other axis positive limit status
bool IsMtrOn(CMtrProfile mtrProfile); bool IsMtrOn(const CMtrProfile& mtrProfile);
// ************************************************************ // ************************************************************
// Methods to enquire other motors status - ENDS // Methods to enquire other motors status - ENDS
@ -521,8 +521,8 @@ public:
int SegmentedEnd(); int SegmentedEnd();
int SegmentedArc(double* dCenter, double* dFinalPoint, int rotation); int SegmentedArc(double* dCenter, double* dFinalPoint, int rotation);
int MasterSlaveEnable(const CMtrProfile slaveMtrProfile, double offset, double leftBoundary, double rightBoundary); int MasterSlaveEnable(const CMtrProfile& slaveMtrProfile, double offset, double leftBoundary, double rightBoundary);
int MasterSlaveDisable(const CMtrProfile slaveMtrProfile); int MasterSlaveDisable(const CMtrProfile& slaveMtrProfile);
bool SetFixSpdRange(double dMaxVel, bool bRealWorldUnit = false); bool SetFixSpdRange(double dMaxVel, bool bRealWorldUnit = false);
bool UnFixSpdRange(); bool UnFixSpdRange();

@ -329,8 +329,8 @@ public:
virtual int SegmentedLine(double* dPositions); virtual int SegmentedLine(double* dPositions);
virtual int SegmentedEnd(); virtual int SegmentedEnd();
virtual int SegmentedArc(double* dCenter, double* dFinalPoint, int rotation); virtual int SegmentedArc(double* dCenter, double* dFinalPoint, int rotation);
virtual int MasterSlaveEnable(const CMtrProfile slaveMtrProfile, double offset, double leftBoundary, double rightBoundary); virtual int MasterSlaveEnable(const CMtrProfile& slaveMtrProfile, double offset, double leftBoundary, double rightBoundary);
virtual int MasterSlaveDisable(const CMtrProfile slaveMtrProfile); virtual int MasterSlaveDisable(const CMtrProfile& slaveMtrProfile);
// ************************************************************** // **************************************************************
// virtual Methods declaration applicable to ACS ONLY - ENDS // virtual Methods declaration applicable to ACS ONLY - ENDS
// ************************************************************** // **************************************************************

@ -12,7 +12,7 @@
class CMotor_1203 : public CMotorAdlinkBase class CMotor_1203 : public CMotorAdlinkBase
{ {
public: public:
CMotor_1203(CMtrProfile mtrProfile, double* dpPos, CMotionControllerBase* pBaseController); CMotor_1203(const CMtrProfile& mtrProfile, double* dpPos, CMotionControllerBase* pBaseController);
virtual ~CMotor_1203(); virtual ~CMotor_1203();
// ************************************************************** // **************************************************************

@ -10,7 +10,7 @@
class CMotor_7856 : public CMotorAdlinkBase class CMotor_7856 : public CMotorAdlinkBase
{ {
public: public:
CMotor_7856(CMtrProfile mtrProfile, double* dpPos, CMotionControllerBase* pBaseController); CMotor_7856(const CMtrProfile& mtrProfile, double* dpPos, CMotionControllerBase* pBaseController);
virtual ~CMotor_7856(); virtual ~CMotor_7856();
// ************************************************************** // **************************************************************

@ -8,7 +8,7 @@
class CMotor_8134 : public CMotorAdlinkBase class CMotor_8134 : public CMotorAdlinkBase
{ {
public: public:
CMotor_8134(CMtrProfile mtrProfile, double* dpPos, CMotionControllerBase* pBaseController); CMotor_8134(const CMtrProfile& mtrProfile, double* dpPos, CMotionControllerBase* pBaseController);
virtual ~CMotor_8134(); virtual ~CMotor_8134();
// ************************************************************** // **************************************************************

@ -8,7 +8,7 @@
class CMotor_8164 : public CMotorAdlinkBase class CMotor_8164 : public CMotorAdlinkBase
{ {
public: public:
CMotor_8164(CMtrProfile mtrProfile, double* dpPos, CMotionControllerBase* pBaseController); CMotor_8164(const CMtrProfile& mtrProfile, double* dpPos, CMotionControllerBase* pBaseController);
virtual ~CMotor_8164(); virtual ~CMotor_8164();
// ************************************************************** // **************************************************************

@ -8,7 +8,7 @@
class CMotor_GALIL : public CMotorBase class CMotor_GALIL : public CMotorBase
{ {
public: public:
CMotor_GALIL(CMtrProfile mtrProfile, double* dpPos, CMotionControllerBase* pBaseController); CMotor_GALIL(const CMtrProfile& mtrProfile, double* dpPos, CMotionControllerBase* pBaseController);
virtual ~CMotor_GALIL(); virtual ~CMotor_GALIL();
// ************************************************************** // **************************************************************

Binary file not shown.

@ -61,8 +61,8 @@ protected:
long GetBaudRate(bool bMaint = false, int nWhichOne = 0); long GetBaudRate(bool bMaint = false, int nWhichOne = 0);
std::string GetParity(bool bMaint = false, int nWhichOne = 0); std::string GetParity(bool bMaint = false, int nWhichOne = 0);
std::string GetCommPort(bool bMaint = false, int nWhichOne = 0); std::string GetCommPort(bool bMaint = false, int nWhichOne = 0);
bool GetCommPortSetting(std::string csIniFile, std::string csSectionName, int nWhichOne = 0); bool GetCommPortSetting(const std::string& csIniFile, const std::string& csSectionName, int nWhichOne = 0);
bool GetNetworkPortSetting(std::string csIniFile, std::string csSectionName, int nWhichOne = 0); bool GetNetworkPortSetting(const std::string& csIniFile, const std::string& csSectionName, int nWhichOne = 0);
// send com data to modules in maintenance mode // send com data to modules in maintenance mode
virtual void OnMaintenanceSendCom(LPCTSTR lpcComPort, int iBaudRate, int iDataBits, virtual void OnMaintenanceSendCom(LPCTSTR lpcComPort, int iBaudRate, int iDataBits,
LPCTSTR lpcParity, float fStopBits, LPCTSTR lpcFlowCtrl, LPCTSTR lpcSendMsg); LPCTSTR lpcParity, float fStopBits, LPCTSTR lpcFlowCtrl, LPCTSTR lpcSendMsg);
@ -85,14 +85,14 @@ protected:
virtual void OnMaintenanceDisconnectPort(LPCTSTR IpAddress, int iPortNo); virtual void OnMaintenanceDisconnectPort(LPCTSTR IpAddress, int iPortNo);
// write acknowledge message to text file // write acknowledge message to text file
void WriteAckToTextFile(std::string strAckMsg); void WriteAckToTextFile(const std::string& strAckMsg);
virtual void SendPacket(std::string strAckMsg = ""); virtual void SendPacket(const std::string& strAckMsg = "");
virtual void DisconnectPort(std::string strAckMsg = ""); virtual void DisconnectPort(const std::string& strAckMsg = "");
virtual void ConnectPort(std::string strAckMsg = ""); virtual void ConnectPort(const std::string& strAckMsg = "");
virtual void SendComm(std::string strAckMsg = ""); virtual void SendComm(const std::string& strAckMsg = "");
virtual void CloseCommPort(std::string strAckMsg = ""); virtual void CloseCommPort(const std::string& strAckMsg = "");
virtual void OpenCommPort(std::string strAckMsg = ""); virtual void OpenCommPort(const std::string& strAckMsg = "");
void InitCommSettings(LPCTSTR lpcComPort, long lBaudRate, int iDataBits, LPCTSTR lpcParity, float fStopBits, LPCTSTR lpcFlowCtrl); void InitCommSettings(LPCTSTR lpcComPort, long lBaudRate, int iDataBits, LPCTSTR lpcParity, float fStopBits, LPCTSTR lpcFlowCtrl);
private: private:

Binary file not shown.
Loading…
Cancel
Save