ZTM卡优化设置细分

master
lhiven 8 months ago
parent 0d3706a440
commit c87fba570c

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

Loading…
Cancel
Save