add m_SlaveId to CMtrProfile

main
Yik Teng Hie 1 month ago
parent 30c4bd488a
commit 797c436734

Binary file not shown.

Binary file not shown.

@ -196,6 +196,8 @@ public:
double m_dNegSoftLimit; // negative Software Limit
int m_iCardNo;
int m_iSlaveId{}; // for EtherCAT, slave ID
int m_iMotorPosArrayIndex;

@ -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);
};

@ -150,6 +150,8 @@ private:
bool PrepareMotionCurve(PROFILE_CURVE curve);
void Set4XMOEncoderSource();
enum PROFILE_TYPE
{
ACC,

@ -49,6 +49,7 @@ public:
double m_Negative_Soft_Limit;
double m_Positive_Soft_Limit;
long m_CardNo;
long m_SlaveId;
// Overrides

Loading…
Cancel
Save