|
|
|
@ -1374,14 +1374,23 @@ namespace Rs.MotionPlat.Flow
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case ETurnoverFlowStep.通知中控开始测试:
|
|
|
|
|
MachineManage.Instance.TestStatus = ETestStatus.Testing;
|
|
|
|
|
loadOk = true;
|
|
|
|
|
HashSet<int> needTestSlot = TestTrayManager.Instance.GetSlots(ETestTraySlotStatus.Have).Select(s => s.Index-1).ToHashSet();
|
|
|
|
|
MachineManage.Instance.SetTesterState(new TesterInfo() { State = ETesterState.Ready, ReadySites = needTestSlot });
|
|
|
|
|
logInfo = GetClassName() + $"通知中控测试位就绪,可以开始测试{needTestSlot.ToJoinString()}";
|
|
|
|
|
MessageQueue.Instance.Insert(logInfo);
|
|
|
|
|
//Thread.Sleep(1000 * 30);
|
|
|
|
|
Step = ETurnoverFlowStep.等待测试完成;
|
|
|
|
|
HashSet<int> needTestSlot = TestTrayManager.Instance.GetSlots(ETestTraySlotStatus.Have).Select(s => s.Index - 1).ToHashSet();
|
|
|
|
|
if (needTestSlot!=null&& needTestSlot.Count>0)
|
|
|
|
|
{
|
|
|
|
|
MachineManage.Instance.TestStatus = ETestStatus.Testing;
|
|
|
|
|
loadOk = true;
|
|
|
|
|
MachineManage.Instance.SetTesterState(new TesterInfo() { State = ETesterState.Ready, ReadySites = needTestSlot });
|
|
|
|
|
logInfo = GetClassName() + $"通知中控测试位就绪,可以开始测试{needTestSlot.ToJoinString()}";
|
|
|
|
|
MessageQueue.Instance.Insert(logInfo);
|
|
|
|
|
//Thread.Sleep(1000 * 30);
|
|
|
|
|
Step = ETurnoverFlowStep.等待测试完成;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
logInfo = GetClassName() + $"检测到没有需要测试的产品,流程结束";
|
|
|
|
|
MessageQueue.Instance.Insert(logInfo);
|
|
|
|
|
Step = ETurnoverFlowStep.等待任务;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
/*---------------------------------------------准备下料---------------------------------------------------------------------------------*/
|
|
|
|
|
case ETurnoverFlowStep.等待测试完成:
|
|
|
|
|