Commit 6136af20 LN

不发Mayleave、MayEnter,相同状态不重发

1 个父辈 f9ebe4ba
...@@ -55,11 +55,11 @@ namespace OnlineStore.DeviceLibrary ...@@ -55,11 +55,11 @@ namespace OnlineStore.DeviceLibrary
public static void SetStatus(string id, string shelfId = "", ClientAction action = ClientAction.None, ClientLevel level = ClientLevel.Low) public static void SetStatus(string id, string shelfId = "", ClientAction action = ClientAction.None, ClientLevel level = ClientLevel.Low)
{ {
ClientAction currA = GetAction(id); ClientAction currA = GetAction(id);
////相同状态就设置一次 //相同状态就设置一次
//if (currA.Equals(action)) if (currA.Equals(action))
//{ {
// return; return;
//} }
agvClient.SetStatus(id, "",shelfId, action, level); agvClient.SetStatus(id, "",shelfId, action, level);
UpdateAction(id, action); UpdateAction(id, action);
} }
...@@ -77,8 +77,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -77,8 +77,8 @@ namespace OnlineStore.DeviceLibrary
{ {
Task.Factory.StartNew(delegate Task.Factory.StartNew(delegate
{ {
SetStatus(id, "", ClientAction.MayEnter); // SetStatus(id, "", ClientAction.MayEnter);
LogUtil.info(logName + "调用 MayEnter ,等待OutL_InCheck"); LogUtil.info(logName + " ,等待OutL_InCheck");
try try
{ {
WaitUtil.Wait(60000, delegate WaitUtil.Wait(60000, delegate
...@@ -116,8 +116,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -116,8 +116,8 @@ namespace OnlineStore.DeviceLibrary
{ {
LineManager.VMILine.StopIOMove(IO_Type.InL_OutStopDown, 3000); LineManager.VMILine.StopIOMove(IO_Type.InL_OutStopDown, 3000);
//agvClient.MayLeave(id); //agvClient.MayLeave(id);
SetStatus(id, shefId, ClientAction.MayLeave); // SetStatus(id, shefId, ClientAction.MayLeave);
LogUtil.info(logName + "下降 InL_OutStopDown ,调用 MayLeave " + shefId); LogUtil.info(logName + "下降 InL_OutStopDown , " + shefId);
Task.Factory.StartNew(delegate Task.Factory.StartNew(delegate
{ {
......
ready是对接上流水线,arrive是在流水线附近等开门,所有节点都会发这两个事件,环形线和vmi只记录arrive的日志 ready是对接上流水线,arrive是在流水线附近等开门,所有节点都会发这两个事件,环形线和vmi只记录arrive的日志
20200217
Mayleave、MayEnter是包装料仓的,开了门后发,环形线和VMI是不用的。状态不需要重复设置。
\ No newline at end of file \ No newline at end of file
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!