Commit 051c7bb6 LN

上料改为绝对运动

1 个父辈 d95ac4c9
......@@ -552,7 +552,7 @@ namespace OnlineStore.DeviceLibrary
LastHeight = (int)Math.Ceiling(1F * (cha) / AxisChangeValue);
int addHeight = 0;
//如果检测信号未亮,极限亮了,需要补充高
if (IOManager.IOValue(IO_Type.TrayCheck_LoadMaterial).Equals(IO_VALUE.LOW))
if (IOManager.IOValue(IO_Type.TrayCheck_LoadMaterial).Equals(IO_VALUE.LOW)&& BatchAxisInP3())
{
addHeight = StoreManager.Config.LastTrayAddHeight;
}
......@@ -642,9 +642,10 @@ namespace OnlineStore.DeviceLibrary
else
{
//判断是否到达目标位置
int targetP = ACServerManager.GetActualtPosition(StoreManager.Config.Batch_Axis);
int cha = Math.Abs(targetP - StoreManager.Config.BatchAxis_P3);
if (cha < StoreManager.Config.Batch_Axis.CanErrorCountMax)
//int targetP = ACServerManager.GetActualtPosition(StoreManager.Config.Batch_Axis);
//int cha = Math.Abs(targetP - StoreManager.Config.BatchAxis_P3);
//if (cha < StoreManager.Config.Batch_Axis.CanErrorCountMax)
if(BatchAxisInP3())
{
StoreMove.NextMoveStep(StoreMoveStep.AUTO_I11_BatchAxisHome);
InStoreLog(" 批量轴到达P3,已经没有料盘,直接回待机点P2【" + StoreManager.Config.BatchAxis_P2 + "】");
......@@ -659,7 +660,16 @@ namespace OnlineStore.DeviceLibrary
}
}
private static bool BatchAxisInP3()
{
int targetP = ACServerManager.GetActualtPosition(StoreManager.Config.Batch_Axis);
int cha = Math.Abs(targetP - StoreManager.Config.BatchAxis_P3);
if (cha < StoreManager.Config.Batch_Axis.CanErrorCountMax)
{
return true;
}
return false;
}
#endregion
#region 出库流程
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!