Commit f9d5f91d LN

入库取料失败(升降气缸下降超)时禁用托盘

1 个父辈 3c40c3b3
...@@ -253,7 +253,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -253,7 +253,7 @@ namespace OnlineStore.DeviceLibrary
} }
#endregion #endregion
} }
private void MO_55_CylinderUp() private void MO_55_CylinderUp()
{ {
MoveInfo.NextMoveStep(LineMoveStep.MO_55_CylinderUp); MoveInfo.NextMoveStep(LineMoveStep.MO_55_CylinderUp);
...@@ -327,11 +327,31 @@ namespace OnlineStore.DeviceLibrary ...@@ -327,11 +327,31 @@ namespace OnlineStore.DeviceLibrary
{ {
CheckWait(SecondMoveInfo); CheckWait(SecondMoveInfo);
} }
string posId = MoveInfo.MoveParam != null ? MoveInfo.MoveParam.PosId : "";
if (MoveInfo.IsInWait) if (MoveInfo.IsInWait)
{ {
if (!UseAxis)
{
if (MoveInfo.MoveStep.Equals(LineMoveStep.MI_03_CylinderDown)&&MoveInfo.IsTimeOut(20))
{
//顶升气缸上升到位,升降气缸下降不到位
if(CylinderIsOk(IO_Type.TopCylinder_Down, IO_Type.TopCylinder_UP)&&
IOValue(IO_Type.UpDownCylinder_Up).Equals(IO_VALUE.LOW) &&
IOValue(IO_Type.UpDownCylinder_Down).Equals(IO_VALUE.LOW))
{
LogUtil.error(Name + "入库 [" + posId + "],升降气缸下降到托盘[" + currTrayNum + "]取料失败,升降轴上升,禁用托盘,同时放行托盘");
MoveInfo.NextMoveStep(LineMoveStep.MI_18_UpdownUp);
LogInfo("入库 [" + posId + "]" + MoveInfo.SLog + ": 升降轴上升,禁用托盘,同时放行托盘,顶升气缸1下降");
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(300));
CylinderMove(MoveInfo, IO_Type.UpDownCylinder_Down, IO_Type.UpDownCylinder_Up);
TrayDisableManager.AddDisable(currTrayNum, Name, "入库取料失败");
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_14_TopDown);
CylinderMove(SecondMoveInfo, IO_Type.TopCylinder_UP, IO_Type.TopCylinder_Down);
}
}
}
return; return;
} }
string posId = MoveInfo.MoveParam != null ? MoveInfo.MoveParam.PosId : "";
if (MoveInfo.MoveStep.Equals(LineMoveStep.MI_02_ToLineUp)) if (MoveInfo.MoveStep.Equals(LineMoveStep.MI_02_ToLineUp))
{ {
MoveInfo.NextMoveStep(LineMoveStep.MI_03_CylinderDown); MoveInfo.NextMoveStep(LineMoveStep.MI_03_CylinderDown);
...@@ -482,6 +502,10 @@ namespace OnlineStore.DeviceLibrary ...@@ -482,6 +502,10 @@ namespace OnlineStore.DeviceLibrary
{ {
LogInfo("入库【" + posId + "】处理(移栽)全部完成!"); LogInfo("入库【" + posId + "】处理(移栽)全部完成!");
MoveEndS(); MoveEndS();
}else if (MoveInfo.MoveStep.Equals(LineMoveStep.MI_18_UpdownUp))
{
LogInfo("入库【" + posId + "】失败,自动复位完成");
MoveEndS();
} }
} }
......
...@@ -260,7 +260,10 @@ namespace OnlineStore.DeviceLibrary ...@@ -260,7 +260,10 @@ namespace OnlineStore.DeviceLibrary
/// </summary> /// </summary>
MI_16_SendEnd = 3016, MI_16_SendEnd = 3016,
/// <summary>
///入库:升降轴下降取料盘失败,升降轴上升,托盘禁用,托盘放行
/// </summary>
MI_18_UpdownUp=3018,
#endregion #endregion
#region 移栽装置出入库共同模块 3080-3100 #region 移栽装置出入库共同模块 3080-3100
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!