Commit ac65d7a0 LN

1

1 个父辈 93e0e06e
......@@ -234,10 +234,13 @@ namespace DeviceLibrary
ioMonitor();
boxTransport.Process();
if (RobotManage.InoutDebugMode)
{
AutoInOutTestProcess();
}
else
{
StoreProcess();
}
foreach(InReelBean bean in inReelBeans)
{
......@@ -649,10 +652,14 @@ namespace DeviceLibrary
}
private void ClearNgPos()
public void ClearNgPos()
{
//清空ng库位列表
LogUtil.info("ClearNgPos清空NG库位缓存列表");
foreach (string key in NgPosMap.Keys)
{
LogUtil.info($"清空NG库位列表:[{key}] :{NgPosMap[key]}");
}
NgPosMap = new Dictionary<string, ReelParam>();
}
......@@ -675,12 +682,16 @@ namespace DeviceLibrary
private DateTime lastEmptyTime = DateTime.Now;
private void ShelfEmptyProcess()
{
//2秒钟获取一次
//3秒钟获取一次
TimeSpan span = DateTime.Now - lastEmptyTime;
if (span.TotalSeconds < 3)
{
return;
}
////TODO 暂时不验证
//return;
try
{
lastEmptyTime = DateTime.Now;
......
......@@ -187,7 +187,7 @@ namespace DeviceLibrary
//TODO 暂不判断是否返回成功
//if (taskInfo.IsValid())
{
if (taskInfo.smallEmpty == 0 && taskInfo.bigEmpty == 0)
if (taskInfo != null && taskInfo.smallEmpty == 0 && taskInfo.bigEmpty == 0)
{
//MoveInfo.NextMoveStep(MoveStep.S10_ShelfReady);
//CurrShelf.IsNeedLeave = true;
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!