|
|
@ -56,7 +56,11 @@ namespace Rs.MotionPlat.Flow.NormalFlow
|
|
|
|
switch (prepareTrayStep)
|
|
|
|
switch (prepareTrayStep)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
case EPrepareTray2FlowStep.弹出料仓上料:
|
|
|
|
case EPrepareTray2FlowStep.弹出料仓上料:
|
|
|
|
|
|
|
|
logInfo = GetClassName() + "准备出仓";
|
|
|
|
|
|
|
|
MessageQueue.Instance.Insert(logInfo);
|
|
|
|
OutStock();
|
|
|
|
OutStock();
|
|
|
|
|
|
|
|
logInfo = GetClassName() + "准备等待进仓";
|
|
|
|
|
|
|
|
MessageQueue.Instance.Insert(logInfo);
|
|
|
|
InStock();
|
|
|
|
InStock();
|
|
|
|
prepareTrayStep = EPrepareTray2FlowStep.上升一层;
|
|
|
|
prepareTrayStep = EPrepareTray2FlowStep.上升一层;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
@ -70,6 +74,8 @@ namespace Rs.MotionPlat.Flow.NormalFlow
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if(HasTray())
|
|
|
|
if(HasTray())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
logInfo = GetClassName() + $"当前层:{GetCurrentLayer()}检测到料盘";
|
|
|
|
|
|
|
|
MessageQueue.Instance.Insert(logInfo);
|
|
|
|
Status = EStockStatus.Ready;
|
|
|
|
Status = EStockStatus.Ready;
|
|
|
|
MessageQueue.Instance.Insert("ready");
|
|
|
|
MessageQueue.Instance.Insert("ready");
|
|
|
|
//夹紧料盘
|
|
|
|
//夹紧料盘
|
|
|
@ -79,6 +85,8 @@ namespace Rs.MotionPlat.Flow.NormalFlow
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
logInfo = GetClassName() + $"当前层:{GetCurrentLayer()}未检测到料盘";
|
|
|
|
|
|
|
|
MessageQueue.Instance.Insert(logInfo);
|
|
|
|
prepareTrayStep = EPrepareTray2FlowStep.上升一层;
|
|
|
|
prepareTrayStep = EPrepareTray2FlowStep.上升一层;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -86,6 +94,8 @@ namespace Rs.MotionPlat.Flow.NormalFlow
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (HasTray())
|
|
|
|
if (HasTray())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
logInfo = GetClassName() + $"当前层:{GetCurrentLayer()}检测到料盘";
|
|
|
|
|
|
|
|
MessageQueue.Instance.Insert(logInfo);
|
|
|
|
HoldTray();
|
|
|
|
HoldTray();
|
|
|
|
GlobalTray.InputTray.ChangeStatus(Controls.ESlotStatus.Have);
|
|
|
|
GlobalTray.InputTray.ChangeStatus(Controls.ESlotStatus.Have);
|
|
|
|
Status = EStockStatus.Ready;
|
|
|
|
Status = EStockStatus.Ready;
|
|
|
@ -94,6 +104,8 @@ namespace Rs.MotionPlat.Flow.NormalFlow
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
logInfo = GetClassName() + $"当前层:{GetCurrentLayer()}未检测到料盘";
|
|
|
|
|
|
|
|
MessageQueue.Instance.Insert(logInfo);
|
|
|
|
Msgbox.ShowDialog(EButtonType.Retry, "Input料仓处料盘少于2盘,选择重试后弹出料仓", "error", true);
|
|
|
|
Msgbox.ShowDialog(EButtonType.Retry, "Input料仓处料盘少于2盘,选择重试后弹出料仓", "error", true);
|
|
|
|
OutStock();
|
|
|
|
OutStock();
|
|
|
|
InStock();
|
|
|
|
InStock();
|
|
|
|