|
|
@ -129,6 +129,7 @@ namespace Rs.MotionPlat.Flow
|
|
|
|
switch (eInstructioneInstruction)
|
|
|
|
switch (eInstructioneInstruction)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
case EInstruction.EndFlow:
|
|
|
|
case EInstruction.EndFlow:
|
|
|
|
|
|
|
|
ReportToTestCenter(schedule);
|
|
|
|
MessageQueue.Instance.Insert("收到中控停止命令:EndFlow,等待各个料盘就绪");
|
|
|
|
MessageQueue.Instance.Insert("收到中控停止命令:EndFlow,等待各个料盘就绪");
|
|
|
|
EndFlow();
|
|
|
|
EndFlow();
|
|
|
|
break;
|
|
|
|
break;
|
|
|
@ -530,44 +531,51 @@ namespace Rs.MotionPlat.Flow
|
|
|
|
switch (inquireSilo.SiloType)
|
|
|
|
switch (inquireSilo.SiloType)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
case SchedulingSiloBase.ESiloType.ToBeTested:
|
|
|
|
case SchedulingSiloBase.ESiloType.ToBeTested:
|
|
|
|
|
|
|
|
//StockManager.Instance.GetStock(ETrayType.Input).ChangeStatus(EStockTrayStatus.Unloading, true);
|
|
|
|
MessageQueue.Instance.Insert($"{ETrayType.Input}料仓收到切盘命令");
|
|
|
|
MessageQueue.Instance.Insert($"{ETrayType.Input}料仓收到切盘命令");
|
|
|
|
//StockManager.Instance.GetStock(ETrayType.Input).Unload(EStockTrayUnLoadMode.Whole, null);
|
|
|
|
//Task.Run(() => {
|
|
|
|
TakeTrayFlow.Instance.Take(ETrayType.Input, ETrayType.Empty1, () => {
|
|
|
|
|
|
|
|
//StockManager.Instance.GetStock(ETrayType.Input).Status = EStockTrayStatus.Unloaded;
|
|
|
|
//StockManager.Instance.GetStock(ETrayType.Input).Unload(EStockTrayUnLoadMode.Whole, null);
|
|
|
|
StockManager.Instance.GetStock(ETrayType.Input).ChangeStatus(EStockTrayStatus.Unloaded, true);
|
|
|
|
TakeTrayFlow.Instance.Take(ETrayType.Input, ETrayType.Empty1, () => {
|
|
|
|
}, null, () => {
|
|
|
|
//StockManager.Instance.GetStock(ETrayType.Input).Status = EStockTrayStatus.Unloaded;
|
|
|
|
Task.Run(() => {
|
|
|
|
StockManager.Instance.GetStock(ETrayType.Input).ChangeStatus(EStockTrayStatus.Unloaded, true);
|
|
|
|
StockManager.Instance.GetStock(ETrayType.Empty1).Unload(EStockTrayUnLoadMode.Whole, null);
|
|
|
|
}, null, () => {
|
|
|
|
|
|
|
|
Task.Run(() => {
|
|
|
|
|
|
|
|
StockManager.Instance.GetStock(ETrayType.Empty1).Unload(EStockTrayUnLoadMode.Whole, null);
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
//});
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case SchedulingSiloBase.ESiloType.Passed:
|
|
|
|
case SchedulingSiloBase.ESiloType.Passed:
|
|
|
|
|
|
|
|
StockManager.Instance.GetStock(ETrayType.Ok).ChangeStatus(EStockTrayStatus.Unloading, true);
|
|
|
|
Task.Run(() => {
|
|
|
|
Task.Run(() => {
|
|
|
|
MessageQueue.Instance.Insert($"{ETrayType.Ok}料仓收到切盘命令");
|
|
|
|
MessageQueue.Instance.Insert($"{ETrayType.Ok}料仓收到切盘命令");
|
|
|
|
StockManager.Instance.GetStock(ETrayType.Ok).Unload(EStockTrayUnLoadMode.Whole, null);
|
|
|
|
StockManager.Instance.GetStock(ETrayType.Ok).Unload(EStockTrayUnLoadMode.Whole, null);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case SchedulingSiloBase.ESiloType.Failed:
|
|
|
|
case SchedulingSiloBase.ESiloType.Failed:
|
|
|
|
|
|
|
|
StockManager.Instance.GetStock(ETrayType.Ng).ChangeStatus(EStockTrayStatus.Unloading, true);
|
|
|
|
Task.Run(() => {
|
|
|
|
Task.Run(() => {
|
|
|
|
MessageQueue.Instance.Insert($"{ETrayType.Ng}料仓收到切盘命令");
|
|
|
|
MessageQueue.Instance.Insert($"{ETrayType.Ng}料仓收到切盘命令");
|
|
|
|
StockManager.Instance.GetStock(ETrayType.Ng).Unload(EStockTrayUnLoadMode.Whole, null);
|
|
|
|
StockManager.Instance.GetStock(ETrayType.Ng).Unload(EStockTrayUnLoadMode.Whole, null);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case SchedulingSiloBase.ESiloType.Multifunction:
|
|
|
|
case SchedulingSiloBase.ESiloType.Multifunction:
|
|
|
|
|
|
|
|
StockManager.Instance.GetStock(ETrayType.Multi).ChangeStatus(EStockTrayStatus.Unloading, true);
|
|
|
|
Task.Run(() => {
|
|
|
|
Task.Run(() => {
|
|
|
|
MessageQueue.Instance.Insert($"{ETrayType.Multi}料仓收到切盘命令");
|
|
|
|
MessageQueue.Instance.Insert($"{ETrayType.Multi}料仓收到切盘命令");
|
|
|
|
StockManager.Instance.GetStock(ETrayType.Multi).Unload(EStockTrayUnLoadMode.Whole, null);
|
|
|
|
StockManager.Instance.GetStock(ETrayType.Multi).Unload(EStockTrayUnLoadMode.Whole, null);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case SchedulingSiloBase.ESiloType.EmptyInput:
|
|
|
|
case SchedulingSiloBase.ESiloType.EmptyInput:
|
|
|
|
|
|
|
|
StockManager.Instance.GetStock(ETrayType.Empty1).ChangeStatus(EStockTrayStatus.Unloading, true);
|
|
|
|
Task.Run(() => {
|
|
|
|
Task.Run(() => {
|
|
|
|
MessageQueue.Instance.Insert($"{ETrayType.Empty1}料仓收到切盘命令");
|
|
|
|
MessageQueue.Instance.Insert($"{ETrayType.Empty1}料仓收到切盘命令");
|
|
|
|
StockManager.Instance.GetStock(ETrayType.Empty1).Unload(EStockTrayUnLoadMode.Whole, null);
|
|
|
|
StockManager.Instance.GetStock(ETrayType.Empty1).Unload(EStockTrayUnLoadMode.Whole, null);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case SchedulingSiloBase.ESiloType.EmptyOutput:
|
|
|
|
case SchedulingSiloBase.ESiloType.EmptyOutput:
|
|
|
|
|
|
|
|
StockManager.Instance.GetStock(ETrayType.Empty2).ChangeStatus(EStockTrayStatus.Unloading, true);
|
|
|
|
Task.Run(() => {
|
|
|
|
Task.Run(() => {
|
|
|
|
MessageQueue.Instance.Insert($"{ETrayType.Empty2}料仓收到切盘命令");
|
|
|
|
MessageQueue.Instance.Insert($"{ETrayType.Empty2}料仓收到切盘命令");
|
|
|
|
StockManager.Instance.GetStock(ETrayType.Empty2).Unload(EStockTrayUnLoadMode.Whole, null);
|
|
|
|
StockManager.Instance.GetStock(ETrayType.Empty2).Unload(EStockTrayUnLoadMode.Whole, null);
|
|
|
|