Commit 6136af20 LN

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

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