Commit b943a359 张东亮

关闭重发运动前急停

1 个父辈 eeab6aad
......@@ -185,11 +185,11 @@ namespace OnlineStore.DeviceLibrary
// Thread.Sleep(500);
// }
//}
if (String.IsNullOrEmpty(clearMsg))
{
AxisManager.instance.SuddenStop(axis.DeviceName, axis.GetAxisValue());
Thread.Sleep(100);
}
//if (String.IsNullOrEmpty(clearMsg))
//{
// AxisManager.instance.SuddenStop(axis.DeviceName, axis.GetAxisValue());
// Thread.Sleep(100);
//}
LogUtil.error($"{MoveInfo.Name}{axis.DisplayStr}目标位置[{targetPosition}]当前位置[{outCount}]误差[{errorCount}]规划位置[{targetCount}],误差过大, {clearMsg}重新开始运动,剩余[{MoveInfo.CanWhileCount}]次");
AxisManager.instance.AbsMove(axis.DeviceName, axis.GetAxisValue(), targetPosition, targetSpeed, axis.AddSpeed, axis.DelSpeed);
MoveInfo.CanWhileCount--;
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!