Commit 2e8cf5a3 LN

1

1 个父辈 55be32f3
...@@ -19,7 +19,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -19,7 +19,7 @@ namespace OnlineStore.DeviceLibrary
public BoxAutoPoint(BoxBean box) public BoxAutoPoint(BoxBean box)
{ {
toolTimer.Enabled = false; toolTimer.Enabled = false;
toolTimer.Interval = 50; toolTimer.Interval = 500;
toolTimer.AutoReset = true; toolTimer.AutoReset = true;
toolTimer.Elapsed += ToolTimer_Elapsed; toolTimer.Elapsed += ToolTimer_Elapsed;
this.box = box; this.box = box;
...@@ -38,6 +38,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -38,6 +38,7 @@ namespace OnlineStore.DeviceLibrary
LogUtil.info(LogName + CurrStep + "第" + paramInfo.CurrIndex + "列,旋转轴位置[" + paramInfo.GetCurrMiddleP() + "] :进出轴先原点返回"); LogUtil.info(LogName + CurrStep + "第" + paramInfo.CurrIndex + "列,旋转轴位置[" + paramInfo.GetCurrMiddleP() + "] :进出轴先原点返回");
ConfigMoveAxis axis = box.Config.InOut_Axis; ConfigMoveAxis axis = box.Config.InOut_Axis;
AxisManager.instance.HomeMove(axis.DeviceName, (short)axis.GetAxisValue(), axis.HomeHighSpeed, axis.HomeLowSpeed, axis.HomeAddSpeed); AxisManager.instance.HomeMove(axis.DeviceName, (short)axis.GetAxisValue(), axis.HomeHighSpeed, axis.HomeLowSpeed, axis.HomeAddSpeed);
toolTimer.Interval = 500;
toolTimer.Start(); toolTimer.Start();
} }
private bool isInProcesss = false; private bool isInProcesss = false;
...@@ -114,7 +115,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -114,7 +115,8 @@ namespace OnlineStore.DeviceLibrary
CurrStep=(StoreMoveStep.AP_05_UpdownMove); CurrStep=(StoreMoveStep.AP_05_UpdownMove);
ConfigMoveAxis axis = box.Config.UpDown_Axis; ConfigMoveAxis axis = box.Config.UpDown_Axis;
LogUtil.info(LogName + CurrStep + " " + currIndex + ":升降轴移动到目标位置:" + paramInfo.UpdownTargetPosition); LogUtil.info(LogName + CurrStep + " " + currIndex + ":升降轴移动到目标位置:" + paramInfo.UpdownTargetPosition);
AxisManager.instance.AbsMove(axis.DeviceName, (short)axis.GetAxisValue(), paramInfo.InoutTargetPosition, box.Config.InOutAxis_P1_Speed, axis.AddSpeed, axis.DelSpeed); AxisManager.instance.AbsMove(axis.DeviceName, (short)axis.GetAxisValue(), paramInfo.UpdownTargetPosition, paramInfo.UpdownSpeed, axis.AddSpeed, axis.DelSpeed);
toolTimer.Interval = 50;
} }
} }
else if (CurrStep.Equals(StoreMoveStep.AP_05_UpdownMove)) else if (CurrStep.Equals(StoreMoveStep.AP_05_UpdownMove))
...@@ -212,6 +214,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -212,6 +214,7 @@ namespace OnlineStore.DeviceLibrary
if (nextIndex < paramInfo.MiddlePositionList.Count) if (nextIndex < paramInfo.MiddlePositionList.Count)
{ {
LogUtil.info(LogName + "开始下一列点位校准"); LogUtil.info(LogName + "开始下一列点位校准");
paramInfo.PositionList = new List<int>();
paramInfo.CurrIndex = nextIndex; paramInfo.CurrIndex = nextIndex;
Start(); Start();
} }
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!