This commit is contained in:
Admin 2026-05-14 20:22:48 +08:00
parent 1a48b96320
commit f85e53ef62

View File

@ -2954,7 +2954,7 @@ namespace ViewModel
}
else
{
if (Math.Abs(RM.MyROI.ModelFeaturePiont.AngleU) < 10)
if (Math.Abs(RM.MyROI.ModelFeaturePiont.AngleU) < 5)
{
CurrXizui.OfficeU = (double)RM.MyROI.ModelFeaturePiont.AngleU;
TempPoint.PointU -= (double)RM.MyROI.ModelFeaturePiont.AngleU;
@ -2965,6 +2965,8 @@ namespace ViewModel
else
{
ExcepStop("下视觉定位偏差过大,请检查!");
MyFlow.RunStep = GengralProcessEnum.Start;
MyFlow.RunTime = DateTime.Now;
}
}
}
@ -2975,7 +2977,7 @@ namespace ViewModel
ExcepStop("下视觉定位失败");
MyFlow.RunStep = GengralProcessEnum.Start;
MyFlow.RunTime = DateTime.Now;
OutputList[O15下光源控制].Switchs = false;//光源
}
}
break;
@ -3011,10 +3013,6 @@ namespace ViewModel
VisonCount++;
if (VisualB.FeatureMatchingIng(RM) || CurrentMachine.RunningMode)
{
//记录补偿值
if (Math.Abs(RM.MyROI.ModelFeaturePiont.DeviationX) < 10 && Math.Abs(RM.MyROI.ModelFeaturePiont.DeviationY) < 10)
{
@ -3028,6 +3026,8 @@ namespace ViewModel
else
{
ExcepStop("下视觉定位偏差过大,请检查!");
MyFlow.RunStep = GengralProcessEnum.Start;
MyFlow.RunTime = DateTime.Now;
}
}
else