|
|
|
@ -490,33 +490,46 @@ namespace Rs.MotionPlat.Flow
|
|
|
|
|
}
|
|
|
|
|
else if (fixtureret != null && fixtureret.Result == EOneGrabSixteenResult.Slant)
|
|
|
|
|
{
|
|
|
|
|
//报警弹框
|
|
|
|
|
alarmEntity = AlarmCollection.Get(AlarmConstID.取料定位失败报警).Transform(ret.SlotIndex);
|
|
|
|
|
EButtonType buttonSelect = Msgbox.ShowDialog(alarmEntity, EButtonType.Skip | EButtonType.Retry | EButtonType.EndInput, true);
|
|
|
|
|
//EButtonType buttonSelect = Msgbox.ShowDialog(EButtonType.Skip | EButtonType.Retry | EButtonType.EndInput, $"穴位{ret.SlotIndex}定位失败,请把产品手动取走后点击跳过","tip",true);
|
|
|
|
|
if (buttonSelect == EButtonType.Retry)
|
|
|
|
|
if(GlobalVar.BinTakeGrabFailSkip)
|
|
|
|
|
{
|
|
|
|
|
logInfo = GetClassName() + "选择了重试";
|
|
|
|
|
MessageQueue.Instance.Insert(logInfo);
|
|
|
|
|
}
|
|
|
|
|
else if (buttonSelect == EButtonType.Skip)
|
|
|
|
|
{
|
|
|
|
|
logInfo = GetClassName() + "选择了跳过";
|
|
|
|
|
logInfo = GetClassName() + "系统设置了取料拍照失败自动跳过";
|
|
|
|
|
MessageQueue.Instance.Insert(logInfo);
|
|
|
|
|
exit = true;
|
|
|
|
|
GlobalTray.InputTray.ChangeStatus(ret.SlotIndex, ESlotStatus.NotHave);
|
|
|
|
|
//GlobalTray.InputTray.ChangeStatus(ret.SlotIndex, ESlotStatus.NotHave);
|
|
|
|
|
takeSlotIndex++;
|
|
|
|
|
flowStep = EDischargeFlowStep.判断是否需要从料仓取料;
|
|
|
|
|
}
|
|
|
|
|
else if (buttonSelect == EButtonType.EndInput)
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
logInfo = GetClassName() + "选择了结束上料";
|
|
|
|
|
MessageQueue.Instance.Insert(logInfo);
|
|
|
|
|
exit = true;
|
|
|
|
|
GlobalVar.Clear = true;
|
|
|
|
|
takeSlotIndex++;
|
|
|
|
|
flowStep = EDischargeFlowStep.判断是否需要从料仓取料;
|
|
|
|
|
//报警弹框
|
|
|
|
|
alarmEntity = AlarmCollection.Get(AlarmConstID.取料定位失败报警).Transform(ret.SlotIndex);
|
|
|
|
|
EButtonType buttonSelect = Msgbox.ShowDialog(alarmEntity, EButtonType.Skip | EButtonType.Retry | EButtonType.EndInput, true);
|
|
|
|
|
//EButtonType buttonSelect = Msgbox.ShowDialog(EButtonType.Skip | EButtonType.Retry | EButtonType.EndInput, $"穴位{ret.SlotIndex}定位失败,请把产品手动取走后点击跳过","tip",true);
|
|
|
|
|
if (buttonSelect == EButtonType.Retry)
|
|
|
|
|
{
|
|
|
|
|
logInfo = GetClassName() + "选择了重试";
|
|
|
|
|
MessageQueue.Instance.Insert(logInfo);
|
|
|
|
|
}
|
|
|
|
|
else if (buttonSelect == EButtonType.Skip)
|
|
|
|
|
{
|
|
|
|
|
logInfo = GetClassName() + "选择了跳过";
|
|
|
|
|
MessageQueue.Instance.Insert(logInfo);
|
|
|
|
|
exit = true;
|
|
|
|
|
GlobalTray.InputTray.ChangeStatus(ret.SlotIndex, ESlotStatus.NotHave);
|
|
|
|
|
takeSlotIndex++;
|
|
|
|
|
flowStep = EDischargeFlowStep.判断是否需要从料仓取料;
|
|
|
|
|
}
|
|
|
|
|
else if (buttonSelect == EButtonType.EndInput)
|
|
|
|
|
{
|
|
|
|
|
logInfo = GetClassName() + "选择了结束上料";
|
|
|
|
|
MessageQueue.Instance.Insert(logInfo);
|
|
|
|
|
exit = true;
|
|
|
|
|
GlobalVar.Clear = true;
|
|
|
|
|
takeSlotIndex++;
|
|
|
|
|
flowStep = EDischargeFlowStep.判断是否需要从料仓取料;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
//else if (fixtureret.Result == EOneGrabSixteenResult.NoHaveProdut)
|
|
|
|
|
//{
|
|
|
|
|