Commit 9b36fffd 张东亮
2 个父辈 8e9f5898 8cae1723
......@@ -59,7 +59,8 @@ namespace OnlineStore.DeviceLibrary
isNoAirpressure_Check = true;
}
this.alarmType = alarmType;
if (alarmType.Equals(AlarmType.SuddenStop) || alarmType.Equals(AlarmType.NoAirpressure_Check) || alarmType.Equals(AlarmType.AxisAlarm))
if (alarmType.Equals(AlarmType.SuddenStop) || alarmType.Equals(AlarmType.NoAirpressure_Check) ||
alarmType.Equals(AlarmType.AxisAlarm)||alarmType.Equals(AlarmType.AxisMoveError))
{
StopMove();
}
......
......@@ -13,7 +13,7 @@ namespace OnlineStore.DeviceLibrary
{
public partial class BatchMoveBean
{
public bool ShelfAutoOut = true;
public bool ShelfAutoOut = false;
public bool ShelfNeedLeave = false;
public string Name = "料口";
public AxisBean BatchAxis = null;
......@@ -535,6 +535,14 @@ namespace OnlineStore.DeviceLibrary
return false;
}
internal bool ShelfIsOut()
{
if (MoveInfo.MoveType.Equals(MoveType.OutStore) && MoveInfo.MoveStep < StepEnum.IS21_BatchToP1)
{
return true;
}
return false;
}
public string GetMoveStr()
......
......@@ -388,12 +388,12 @@ namespace OnlineStore.DeviceLibrary
{
needLeave = false;
}
else if (ShelfType.Equals(1) && Robot.BatchMove_B.ShelfReadyOut())
else if (ShelfType.Equals(1) && Robot.BatchMove_B.ShelfIsOut())
{
needLeave = true;
}
//如果已经有一个出库料串,这个直接离开
else if (ShelfType.Equals(2) && Robot.BatchMove_A.ShelfReadyOut())
else if (ShelfType.Equals(2) && Robot.BatchMove_A.ShelfIsOut())
{
needLeave = true;
}
......
......@@ -983,9 +983,20 @@ namespace OnlineStore.DeviceLibrary
{
ClearTimeoutAlarm("等待料串可放料");
MoveInfo.NextMoveStep(StepEnum.IO27_MiddleToP3);
MoveLog($"出库->B料串 {MoveInfo.SLog}: 旋转轴到P3(B料口取料点){Config.Middle_P3_BTake},等待{IO_Type.MAxis_Check_B}信号亮");
MoveLog($"出库->B料串 {MoveInfo.SLog}:清除暂存区。 旋转轴到P3(B料口取料点){Config.Middle_P3_BTake},等待{IO_Type.MAxis_Check_B}信号亮");
MiddleAxis.AbsMove(MoveInfo, Config.Middle_P3_BTake, Config.Middle_P3_Speed);
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.MAxis_Check_B, IO_VALUE.HIGH));
//清空暂存区
int startp = MoveInfo.MoveParam.PosInfo.GetPosType();
if (startp.Equals(1))
{
BufferDataManager.AOutStoreInfo = null;
}
else
{
BufferDataManager.BOutStoreInfo = null;
}
return true;
}
}
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!