Commit 8f0c4992 LN

去掉1天超时修改。

1 个父辈 0eb229c5
......@@ -38,7 +38,7 @@ namespace OnlineStore.DeviceLibrary
private int CurrInOutCount = 0;
private int CurrInOutACount = 0;
int oneDay = 24 * 60 * 60;
//int oneDay = 24 * 60 * 60;
private bool LoadParamPosition(InOutParam param)
{
if (param == null)
......@@ -198,10 +198,10 @@ namespace OnlineStore.DeviceLibrary
{
timeOutMs = 20000 / 1000;
}
if (StoreMove.MoveStep.Equals(StoreMoveStep.SO_23_WaitNoTray)&& wait.IoType.Equals(IO_Type.TrayCheck_Door))
{
timeOutMs = oneDay;
}
//if (StoreMove.MoveStep.Equals(StoreMoveStep.SO_23_WaitNoTray)&& wait.IoType.Equals(IO_Type.TrayCheck_Door))
//{
// timeOutMs = oneDay;
//}
if ((!wait.IsEnd) && span.TotalSeconds > timeOutMs)
{
ConfigIO io = Config.getWaitIO(wait.IoType);
......@@ -576,9 +576,9 @@ namespace OnlineStore.DeviceLibrary
{
// 5= 入仓位完成(料仓Box把料盘放入对应的库位中,装置还未恢复原始状态)
string posId = StoreMove.MoveParam != null ? StoreMove.MoveParam.PosInfo.PosId : "";
lastPosId = posId;
lastPosIdStatus = StoreStatus.InStoreEnd;
storeStatus = StoreStatus.InStoreEnd;
lastPosId = posId;
//手动发给服务器状态,防止没有手动
//SendLineStatus(StoreID, posId, StoreStatus.InStoreEnd);
......@@ -640,9 +640,9 @@ namespace OnlineStore.DeviceLibrary
{
StoreMove.NextMoveStep(StoreMoveStep.SI_18_WaitSendOK);
string posId = StoreMove.MoveParam != null ? StoreMove.MoveParam.PosInfo.PosId : "";
lastPosId = posId;
lastPosIdStatus = StoreStatus.InStoreEnd;
storeStatus = StoreStatus.InStoreEnd;
lastPosId = posId;
InStoreLog($"入库: 入库通知未完成,等待入库通知完成 posId={posId} , storeStatus={storeStatus} ,等待10秒重新验证");
StoreMove.WaitList.Add(WaitResultInfo.WaitTime(10000));
WarnMsg = $"入库通知未完成,等待入库通知完成 posId={posId} , storeStatus={storeStatus} ,等待10秒重新验证";
......@@ -771,9 +771,9 @@ namespace OnlineStore.DeviceLibrary
InOutBackToP1(moveP.InOut_P1);
//把库位的物品放到取到叉子上之后是出仓完成
string posId = StoreMove.MoveParam != null ? StoreMove.MoveParam.PosInfo.PosId : "";
lastPosId = posId;
lastPosIdStatus = StoreStatus.OutStoreBoxEnd;
storeStatus = StoreStatus.OutStoreBoxEnd;
lastPosId = posId;
}
else if (StoreMove.MoveStep == StoreMoveStep.SO_06_InoutToP1)
......@@ -889,18 +889,18 @@ namespace OnlineStore.DeviceLibrary
{
StoreMove.NextMoveStep(StoreMoveStep.SO_23_WaitNoTray);
OutStoreLog("出库:打开仓门,等待门口无料盘信号,超时时间= oneDay");
OutStoreLog("出库:打开仓门,等待门口无料盘信号 ");
StoreMove.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.TrayCheck_Door, IO_VALUE.LOW));
StoreMove.TimeOutSeconds = oneDay;
//StoreMove.TimeOutSeconds = oneDay;
OpenDoor();
}
}
else if (StoreMove.MoveStep == StoreMoveStep.SO_22_WaitTray)
{
StoreMove.NextMoveStep(StoreMoveStep.SO_23_WaitNoTray);
OutStoreLog("出库:打开仓门,等待门口无料盘信号,超时时间= "+oneDay);
OutStoreLog("出库:打开仓门,等待门口无料盘信号 ");
StoreMove.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.TrayCheck_Door, IO_VALUE.LOW));
StoreMove.TimeOutSeconds = oneDay;
//StoreMove.TimeOutSeconds = oneDay;
OpenDoor();
}
else if (StoreMove.MoveStep == StoreMoveStep.SO_23_WaitNoTray)
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!