|
|
|
@ -122,8 +122,8 @@ namespace Rs.Motion.GugaoEcat
|
|
|
|
|
//}
|
|
|
|
|
if(Config.EnableEncoder==0)
|
|
|
|
|
{
|
|
|
|
|
m_apiResult = ZTM.ZT_SetDCIAParam(Config.CardMc, (short)Config.AxisId, 256, Config.Current, 10, 0, 400, 10);
|
|
|
|
|
LogHelper.Debug($"axis {Config.AxisName} set current {Config.Current} ret={m_apiResult}");
|
|
|
|
|
m_apiResult = ZTM.ZT_SetDCIAParam(Config.CardMc, (short)Config.AxisId, (short)(Config.PulseOneRound/200), Config.Current, 10, 0, 400, 10);
|
|
|
|
|
LogHelper.Debug($"axis {Config.AxisName} set current {Config.Current} ret={m_apiResult},xifen={(short)(Config.PulseOneRound / 200)}");
|
|
|
|
|
if (m_apiResult != 0)
|
|
|
|
|
{
|
|
|
|
|
return ErrorCode.Fail;
|
|
|
|
|