测高差值改为0.6

master
lhiven 1 year ago
parent b6f1ae484a
commit bd21b8b1f4

@ -209,11 +209,11 @@ namespace Rs.MotionPlat.Flow.SubFlow
{ {
if (trayType == ETrayType.Test) if (trayType == ETrayType.Test)
{ {
HasProduct = Math.Abs(Math.Abs(TestHeight1 - TestHeight2) - GlobalVar.TestFixtureTrayOffsetHeight)>0.4; HasProduct = Math.Abs(Math.Abs(TestHeight1 - TestHeight2) - GlobalVar.TestFixtureTrayOffsetHeight)>0.6;
} }
else if (trayType == ETrayType.Turnover) else if (trayType == ETrayType.Turnover)
{ {
HasProduct = Math.Abs((Math.Abs(TestHeight1 - TestHeight2) - GlobalVar.TurnoverTrayOffsetHeight))>0.4; HasProduct = Math.Abs((Math.Abs(TestHeight1 - TestHeight2) - GlobalVar.TurnoverTrayOffsetHeight))>0.6;
} }
} }
} }

@ -1,4 +1,5 @@
using Rs.MotionPlat.Commom; using Rs.Framework;
using Rs.MotionPlat.Commom;
using Rs.MotionPlat.Entitys; using Rs.MotionPlat.Entitys;
using Rs.MotionPlat.Flow; using Rs.MotionPlat.Flow;
using Rs.MotionPlat.Flow.NgFlow; using Rs.MotionPlat.Flow.NgFlow;
@ -213,7 +214,11 @@ namespace Rs.MotionPlat
private void button24_Click(object sender, EventArgs e) private void button24_Click(object sender, EventArgs e)
{ {
TestHeightResult thr = LaserFlow.Instance.HasProduct(ETrayType.Test, 2); TestHeightResult thr = LaserFlow.Instance.HasProduct(ETrayType.Test,5);
if (thr.HasProduct)
Msg.ShowInfo("有产品");
else
Msg.ShowInfo("无产品");
} }
} }
} }

Loading…
Cancel
Save