| 적용 전 | 적용 후 |
|---|---|
| ZeroVibration 미적용 | ZeroVibration 적용 |
ecmSxCfg_SetZVISParam : 진동 억제 기능을 위한 파라메타를 설정합니다.
* int ecmSxCfg_SetZVISParam (int NetID, int Axis, double NaturalFrequency, double DampingRatio, int ZVISMode, ref int ErrCode);
ecmSxCfg_SetZVISEnable : 진동 억제 기능 적용 여부를 설정합니다.
* int ecmSxCfg_SetZVISEnable(int NetID, int Axis, bool isEnable, ref int ErrCode)
private void SetZeroVibration(int axisID)
{
// int ecmSxCfg_SetZVISParam(int NetID, int Axis, double NaturalFrequency, double DampingRatio, int ZVISMode, ref int ErrCode)
// int ecmSxCfg_SetZVISEnable(int NetID, int Axis, bool isEnable, ref int ErrCode)
// 진동 수 : 5.5 / 감쇠비 : 0 / Mode : 2 로 설정
ecmSxCfg_SetZVISParam(netID, axisID, 5.5, 0, 2, ref errorCode);
if (errorCode != 0)
{
// 에러처리
}
// 진동억제 기능 적용
ecmSxCfg_SetZVISEnable(netID, axisID, true, ref errorCode);
if (errorCode != 0)
{
// 에러처리
}
}