Commit 6a0837d9 张东亮

存储机构-及时清空上一次异常

1 个父辈 c53abecc
...@@ -707,6 +707,13 @@ namespace OnlineStore.DeviceLibrary ...@@ -707,6 +707,13 @@ namespace OnlineStore.DeviceLibrary
} }
return false; return false;
} }
protected void ClearSpecifiedAlarm(string msg)
{
if (WarnMsg.Contains(msg))
{
SetWarnMsg("");
}
}
protected void ClearTimeoutAlarm(string msg) protected void ClearTimeoutAlarm(string msg)
{ {
if (isInSuddenDown || isNoAirpressure_Check) if (isInSuddenDown || isNoAirpressure_Check)
......
...@@ -598,19 +598,34 @@ namespace OnlineStore.DeviceLibrary ...@@ -598,19 +598,34 @@ namespace OnlineStore.DeviceLibrary
{ {
SetWarnMsg("A进料上暂存区有料盘,但信号未亮"); SetWarnMsg("A进料上暂存区有料盘,但信号未亮");
} }
else
{
ClearSpecifiedAlarm("A进料上暂存区有料盘,但信号未亮");
}
if (IOValue(IO_Type.UnderArea_Check_A).Equals(IO_VALUE.LOW) && BufferDataManager.AOutStoreInfo != null) if (IOValue(IO_Type.UnderArea_Check_A).Equals(IO_VALUE.LOW) && BufferDataManager.AOutStoreInfo != null)
{ {
SetWarnMsg("A出料下暂存区有料盘,但信号未亮"); SetWarnMsg("A出料下暂存区有料盘,但信号未亮");
} }
else
{
ClearSpecifiedAlarm("A出料下暂存区有料盘,但信号未亮");
}
if (IOValue(IO_Type.UpperArea_Check_B).Equals(IO_VALUE.LOW) && BufferDataManager.BInStoreInfo != null) if (IOValue(IO_Type.UpperArea_Check_B).Equals(IO_VALUE.LOW) && BufferDataManager.BInStoreInfo != null)
{ {
SetWarnMsg("B进料上暂存区有料盘,但信号未亮"); SetWarnMsg("B进料上暂存区有料盘,但信号未亮");
} }
else
{
ClearSpecifiedAlarm("B进料上暂存区有料盘,但信号未亮");
}
if (IOValue(IO_Type.UnderArea_Check_B).Equals(IO_VALUE.LOW) && BufferDataManager.BOutStoreInfo != null) if (IOValue(IO_Type.UnderArea_Check_B).Equals(IO_VALUE.LOW) && BufferDataManager.BOutStoreInfo != null)
{ {
SetWarnMsg("B出料下暂存区有料盘,但信号未亮"); SetWarnMsg("B出料下暂存区有料盘,但信号未亮");
} }
else
{
ClearSpecifiedAlarm("B出料下暂存区有料盘,但信号未亮");
}
//检测A上暂存区是否有料盘 //检测A上暂存区是否有料盘
if (IOValue(IO_Type.UpperArea_Check_A).Equals(IO_VALUE.HIGH)) if (IOValue(IO_Type.UpperArea_Check_A).Equals(IO_VALUE.HIGH))
{ {
...@@ -696,7 +711,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -696,7 +711,7 @@ namespace OnlineStore.DeviceLibrary
AutoFindPosProcess(); AutoFindPosProcess();
} }
BusyMoveProcess(); BusyMoveProcess();
IOTimeOutProcess();
if (NoErrorAlarm()) if (NoErrorAlarm())
{ {
CheckAxisAlarm(); CheckAxisAlarm();
......
...@@ -19,6 +19,12 @@ namespace OnlineStore.DeviceLibrary ...@@ -19,6 +19,12 @@ namespace OnlineStore.DeviceLibrary
{ {
return false; return false;
} }
//public bool InputMiddleAxisCanMove()
//{
// if()
// return false;
//}
/// <summary> /// <summary>
/// 忽略相机检测到的抽屉误差误差 /// 忽略相机检测到的抽屉误差误差
/// </summary> /// </summary>
...@@ -223,7 +229,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -223,7 +229,7 @@ namespace OnlineStore.DeviceLibrary
{ {
XAxis_B.AbsMove(MoveInfo, MoveInfo.MoveParam.MoveP.XAxis_AB_P3, Config.XAxis_B_P3_Speed); XAxis_B.AbsMove(MoveInfo, MoveInfo.MoveParam.MoveP.XAxis_AB_P3, Config.XAxis_B_P3_Speed);
} }
} }
/// <summary> /// <summary>
/// AB面移栽X轴到待机点 /// AB面移栽X轴到待机点
/// </summary> /// </summary>
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!