|
|
|
@ -292,9 +292,10 @@ namespace Rs.AutoDischarge.V3.Flow
|
|
|
|
|
logInfo = GetClassName()+ $"已运动到{GetTrayName()}料仓上料接料盘位,cz={Ops.GetCurPosition(StockZ)}";
|
|
|
|
|
MessageQueue.Instance.Insert(logInfo);
|
|
|
|
|
Ops.Off($"{(int)m_stockType}号料仓托盘气缸");
|
|
|
|
|
Thread.Sleep(GlobalVar.TrayCylinderRetractionDelay);
|
|
|
|
|
logInfo = GetClassName() + $"{(int)m_stockType}号料仓托盘气缸 off";
|
|
|
|
|
MessageQueue.Instance.Insert(logInfo);
|
|
|
|
|
Thread.Sleep(500);
|
|
|
|
|
|
|
|
|
|
loadStep = EStockTrayLoadFlowStep.上料下降到托料盘位;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
@ -322,7 +323,7 @@ namespace Rs.AutoDischarge.V3.Flow
|
|
|
|
|
logInfo = GetClassName() + $"已下降到{GetTrayName()}料仓Z托料盘位,cz:{Ops.GetCurPosition(StockZ)}";
|
|
|
|
|
MessageQueue.Instance.Insert(logInfo);
|
|
|
|
|
Ops.On($"{(int)m_stockType}号料仓托盘气缸");
|
|
|
|
|
Thread.Sleep(500);
|
|
|
|
|
Thread.Sleep(GlobalVar.TrayCylinderExtensionDelay);
|
|
|
|
|
logInfo = GetClassName() + $"{(int)m_stockType}号料仓托盘气缸 on";
|
|
|
|
|
MessageQueue.Instance.Insert(logInfo);
|
|
|
|
|
loadStep = EStockTrayLoadFlowStep.到起始位;
|
|
|
|
@ -578,9 +579,12 @@ namespace Rs.AutoDischarge.V3.Flow
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
//弹框报警,料仓已经满料,提醒人工取走,然后流程继续
|
|
|
|
|
logInfo = $"{m_stockType}料仓已经满料,请先把料盘取走";
|
|
|
|
|
TestCenterMessageBox.Show(AlarmConstID.StockFullTrayAlarm, logInfo, ETipButton.Ok);
|
|
|
|
|
msgBox = TestCenterMessageBox.WaitResult(AlarmConstID.StockFullTrayAlarm);
|
|
|
|
|
//logInfo = $"{m_stockType}料仓已经满料,请先把料盘取走";
|
|
|
|
|
alarmEntity = AlarmCollection.Get(AlarmConstID.料仓满料报警).Transform(m_stockType);
|
|
|
|
|
MessageQueue.Instance.Warn(GetClassName() + alarmEntity.CN);
|
|
|
|
|
AlarmMessageBox.ShowDialog(alarmEntity, ETipButton.Ok, null);
|
|
|
|
|
//TestCenterMessageBox.Show(AlarmConstID.StockFullTrayAlarm, logInfo, ETipButton.Ok);
|
|
|
|
|
//msgBox = TestCenterMessageBox.WaitResult(AlarmConstID.StockFullTrayAlarm);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case EStockTrayUnloadFlowStep.回退到异常处理位:
|
|
|
|
@ -749,7 +753,8 @@ namespace Rs.AutoDischarge.V3.Flow
|
|
|
|
|
MessageQueue.Instance.Insert(logInfo);
|
|
|
|
|
VirtualAxisSleep();
|
|
|
|
|
Ops.Off($"{(int)m_stockType}号料仓托盘气缸");
|
|
|
|
|
Thread.Sleep(200);
|
|
|
|
|
//Thread.Sleep(200);
|
|
|
|
|
Thread.Sleep(GlobalVar.TrayCylinderRetractionDelay);
|
|
|
|
|
logInfo = GetClassName() + $"{GetTrayName()}料仓{(int)m_stockType}号料仓托盘气缸 off";
|
|
|
|
|
MessageQueue.Instance.Insert(logInfo);
|
|
|
|
|
unloadStep = EStockTrayUnloadFlowStep.顶起托盘;
|
|
|
|
@ -779,7 +784,8 @@ namespace Rs.AutoDischarge.V3.Flow
|
|
|
|
|
MessageQueue.Instance.Insert(logInfo);
|
|
|
|
|
VirtualAxisSleep();
|
|
|
|
|
Ops.On($"{(int)m_stockType}号料仓托盘气缸");
|
|
|
|
|
Thread.Sleep(200);
|
|
|
|
|
Thread.Sleep(GlobalVar.TrayCylinderExtensionDelay);
|
|
|
|
|
|
|
|
|
|
logInfo = GetClassName() + $"{GetTrayName()}料仓{(int)m_stockType}号料仓托盘气缸 on";
|
|
|
|
|
MessageQueue.Instance.Insert(logInfo);
|
|
|
|
|
unloadStep = EStockTrayUnloadFlowStep.下料完成到起始位;
|
|
|
|
|