Commit 57361465 张东亮

最厚料盘归类问题和出库等待1分钟问题

1 个父辈 837ef458
...@@ -639,6 +639,26 @@ namespace OnlineStore.DeviceLibrary ...@@ -639,6 +639,26 @@ namespace OnlineStore.DeviceLibrary
} }
} }
if (LastHeight <= 8) { LastHeight = 8; } if (LastHeight <= 8) { LastHeight = 8; }
if (width == 7)
{
var height24MinActualHeight = ConfigHelper.Config.Get($"7寸高度归类为24mm的最小实际高度", 20);
var height24MaxActualHeight = ConfigHelper.Config.Get($"7寸高度归类为24mm的最大实际高度", 24);
if (LastTotalHeight >= height24MinActualHeight && LastTotalHeight <= height24MaxActualHeight)
{
LastTotalHeight = 20;
LogUtil.info($"实际高度在{height24MinActualHeight}与{height24MaxActualHeight},实际高度归类为20");
}
}
else if (width > 7)
{
var height28MinActualHeight = ConfigHelper.Config.Get($"13寸高度归类为28mm的最小实际高度", 28);
var height28MaxActualHeight = ConfigHelper.Config.Get($"13寸高度归类为28mm的最大实际高度", 32);
if (LastTotalHeight >= height28MinActualHeight && LastTotalHeight <= height28MaxActualHeight)
{
LastTotalHeight = 28;
LogUtil.info($"实际高度在{height28MinActualHeight}与{height28MaxActualHeight},实际高度归类为28");
}
}
string code = CodeManager.ProcessCode(LastCodeList); string code = CodeManager.ProcessCode(LastCodeList);
Thread.Sleep(500); Thread.Sleep(500);
string msg = $"{Name} 上升前 [{StartMovePosition}]实时[{EndMovePosition}]差值[{(EndMovePosition - StartMovePosition)}]" + string msg = $"{Name} 上升前 [{StartMovePosition}]实时[{EndMovePosition}]差值[{(EndMovePosition - StartMovePosition)}]" +
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!