|
|
|
|
@ -165,6 +165,12 @@ protected:
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
using stAxTranslation = struct _stAxTranslation
|
|
|
|
|
{
|
|
|
|
|
double dPulsePerMM{}; // pulse per mm
|
|
|
|
|
int iPosDir{ 1 }; // positive direction
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
CMotorBase();
|
|
|
|
|
CMotorBase(const std::string& strMutexName, const CMtrProfile& mtrProfile, double* dpPos, CMotionControllerBase* pBaseController);
|
|
|
|
|
@ -337,8 +343,8 @@ public:
|
|
|
|
|
int SMoveRel(double dDistance, int nPos = -1);
|
|
|
|
|
|
|
|
|
|
// Motion Path
|
|
|
|
|
void RegisterPathMoveMtrProfile(const std::vector<CMtrProfile>& vecMtrProfile);
|
|
|
|
|
virtual int PathMove(const stMotionPath& motionPath);
|
|
|
|
|
void RegisterPathMoveMtrProfile(const std::vector<CMtrProfile>& vecMtrProfile);
|
|
|
|
|
virtual int PathMove(const stMotionPath& motionPath);
|
|
|
|
|
virtual bool StopPathMove(const stMotionPath& motionPath);
|
|
|
|
|
|
|
|
|
|
// return: success = MOTION_END; error = MOTION_ERROR; Force Stop = MOTION_FORCE_STOP
|
|
|
|
|
@ -612,6 +618,9 @@ public:
|
|
|
|
|
// keep track of which motor no
|
|
|
|
|
int m_iMtrNo;
|
|
|
|
|
|
|
|
|
|
// keep track of slave id for ECAT slave
|
|
|
|
|
int m_iSlaveId;
|
|
|
|
|
|
|
|
|
|
// keep track of no of pos
|
|
|
|
|
int m_iNoOfPos;
|
|
|
|
|
|
|
|
|
|
@ -794,4 +803,3 @@ private:
|
|
|
|
|
|
|
|
|
|
int BaseAbsoluteMove(double dPosition, int nPos, int nMode, PROFILE_CURVE curve);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|