From c87fba570caaf8ccee825965d7eeb363bc2eacab Mon Sep 17 00:00:00 2001 From: lhiven Date: Thu, 22 Aug 2024 10:22:02 +0800 Subject: [PATCH] =?UTF-8?q?ZTM=E5=8D=A1=E4=BC=98=E5=8C=96=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E7=BB=86=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Rs.Motion/Ztm/ZtmAxis.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rs.Motion/Ztm/ZtmAxis.cs b/Rs.Motion/Ztm/ZtmAxis.cs index 9ba952f..915ba2e 100644 --- a/Rs.Motion/Ztm/ZtmAxis.cs +++ b/Rs.Motion/Ztm/ZtmAxis.cs @@ -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;