Commit 6ac56f90 张东亮

1013

1 个父辈 41172313
...@@ -301,8 +301,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -301,8 +301,7 @@ namespace OnlineStore.DeviceLibrary
{ {
il_outstopCheckWarch.Stop(); il_outstopCheckWarch.Stop();
LogUtil.info(" 出料线体出口无料架 ,更改[" + Config.L2_AgvName + "] 状态[None] "); LogUtil.info(" 出料线体出口无料架 ,更改[" + Config.L2_AgvName + "] 状态[None] ");
agvClient.OutLine_RFID = ""; agvClient.OutLine_None("");
agvClient.OutLine_None(LastOutShelfId);
} }
} }
......
...@@ -23,7 +23,6 @@ namespace OnlineStore.DeviceLibrary ...@@ -23,7 +23,6 @@ namespace OnlineStore.DeviceLibrary
private static string InLine_Name = ConfigAppSettings.GetValue(Setting_Init.InLine_Name); private static string InLine_Name = ConfigAppSettings.GetValue(Setting_Init.InLine_Name);
private static string OutLine_Name = ConfigAppSettings.GetValue(Setting_Init.OutLine_Name); private static string OutLine_Name = ConfigAppSettings.GetValue(Setting_Init.OutLine_Name);
public string OutLine_RFID { get; set; } = "";
#region InLine Action #region InLine Action
/// <summary> /// <summary>
/// 无状态 /// 无状态
...@@ -45,7 +44,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -45,7 +44,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary> /// <summary>
/// 无状态 /// 无状态
/// </summary> /// </summary>
public void OutLine_None(string rfid="") public void OutLine_None(string rfid = "")
{ {
SetStatus(OutLine_Name, rfid, ClientAction.None); SetStatus(OutLine_Name, rfid, ClientAction.None);
} }
...@@ -55,11 +54,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -55,11 +54,7 @@ namespace OnlineStore.DeviceLibrary
/// </summary> /// </summary>
public void OutLine_NeedLeave(string rfid) public void OutLine_NeedLeave(string rfid)
{ {
if (!OutLine_RFID.Equals(rfid)) SetStatus(OutLine_Name, rfid, ClientAction.NeedLeave);
{
OutLine_RFID = rfid;
SetStatus(OutLine_Name, rfid, ClientAction.NeedLeave);
}
} }
#endregion #endregion
...@@ -163,7 +158,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -163,7 +158,7 @@ namespace OnlineStore.DeviceLibrary
//} //}
if (IOManager.IOValue(IO_Type.L2_OutCheck).Equals(IO_VALUE.HIGH) && !OutLine_InProcess && name.Equals(OutLine_Name)) if (IOManager.IOValue(IO_Type.L2_OutCheck).Equals(IO_VALUE.HIGH) && !OutLine_InProcess && name.Equals(OutLine_Name))
{ {
MayLeave(OutLine_Name, OutLine_RFID); MayLeave(OutLine_Name, "");
//LineManager.feederLine.UpdateSleep(false); //LineManager.feederLine.UpdateSleep(false);
LineManager.feederLine.StopIOMove(IO_Type.L2_OutStopDown, 1500); LineManager.feederLine.StopIOMove(IO_Type.L2_OutStopDown, 1500);
//agvClient.MayLeave(id); //agvClient.MayLeave(id);
...@@ -177,7 +172,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -177,7 +172,7 @@ namespace OnlineStore.DeviceLibrary
Thread.Sleep(10000); Thread.Sleep(10000);
Feeder_Out_Msg = "Feeder Out: 调用 FinishLeave "; Feeder_Out_Msg = "Feeder Out: 调用 FinishLeave ";
LogUtil.info(Feeder_Out_Msg); LogUtil.info(Feeder_Out_Msg);
FinishLeave(OutLine_Name, OutLine_RFID); FinishLeave(OutLine_Name, "");
Thread.Sleep(5000); Thread.Sleep(5000);
Feeder_Out_Msg = "Feeder Out: 处理结束 更新状态为None "; Feeder_Out_Msg = "Feeder Out: 处理结束 更新状态为None ";
...@@ -317,7 +312,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -317,7 +312,7 @@ namespace OnlineStore.DeviceLibrary
} }
agvClient.SetStatus(name, shelfId, action, level); agvClient.SetStatus(name, shelfId, action, level);
actionMap.Add(name, action); actionMap.Add(name, action);
LogUtil.info("设置 " + name + " ["+ shelfId + "] "+ action.ToString()); LogUtil.info("设置 " + name + " [" + shelfId + "] " + action.ToString());
return true; return true;
} }
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!