Commit 389d1c50 LN

压紧点使用配置的最大值

1 个父辈 df032424
...@@ -197,7 +197,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -197,7 +197,7 @@ namespace OnlineStore.DeviceLibrary
} }
WarnMsg = Name + "[" + MoveInfo.MoveType + "][" + MoveInfo.MoveStep + "]等待 " + NotOkMsg WarnMsg = Name + "[" + MoveInfo.MoveType + "][" + MoveInfo.MoveStep + "]等待 " + NotOkMsg
+ "超时[" + Math.Round(span.TotalSeconds, 1) + "]秒"; + "超时[" + FormUtil.GetSpanStr(span ) + "] ";
int second = 10; int second = 10;
second = (int)(MoveInfo.TimeOutSeconds / span.TotalSeconds) * 10; second = (int)(MoveInfo.TimeOutSeconds / span.TotalSeconds) * 10;
if (second > 120) if (second > 120)
...@@ -1012,7 +1012,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -1012,7 +1012,7 @@ namespace OnlineStore.DeviceLibrary
else if (MoveInfo.MoveStep == StoreMoveStep.SO_04_ToPos) else if (MoveInfo.MoveStep == StoreMoveStep.SO_04_ToPos)
{ {
MoveInfo.NextMoveStep(StoreMoveStep.SO_05_GetReel); MoveInfo.NextMoveStep(StoreMoveStep.SO_05_GetReel);
InOutStoreLog("出库 " + MoveInfo.SLog + ": 拿起物品,升降轴至P6["+ moveP.UpDown_P6 + "],压紧轴到压紧点P2 :" + Config.CompAxis_P4_Position); InOutStoreLog("出库 " + MoveInfo.SLog + ": 拿起物品,升降轴至P6["+ moveP.UpDown_P6 + "],压紧轴到压紧点P2 :" + moveP.ComPress_P2);
ACAxisMove(Config.UpDown_Axis, moveP.UpDown_P6, Config.UpDownAxis_P6_Speed); ACAxisMove(Config.UpDown_Axis, moveP.UpDown_P6, Config.UpDownAxis_P6_Speed);
ACAxisMove(Config.Comp_Axis, moveP.ComPress_P2, Config.CompAxis_P2_Speed); ACAxisMove(Config.Comp_Axis, moveP.ComPress_P2, Config.CompAxis_P2_Speed);
//MoveInfo.WaitList.Add(WaitResultInfo.WaitComAxis(Config.Comp_Axis, Config.CompAxis_P4_Position, Config.CompAxis_P4_Speed)); //MoveInfo.WaitList.Add(WaitResultInfo.WaitComAxis(Config.Comp_Axis, Config.CompAxis_P4_Position, Config.CompAxis_P4_Speed));
......
...@@ -785,7 +785,9 @@ namespace OnlineStore.LoadCSVLibrary ...@@ -785,7 +785,9 @@ namespace OnlineStore.LoadCSVLibrary
public int TargetComP2() public int TargetComP2()
{ {
return (MinComP + MaxComP) / 2; //return (MinComP + MaxComP) / 2;
//使用最低压紧点
return MaxComP;
} }
} }
} }
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!