From 93839d6ded9ac53eaddb0f66c86b612cc4779a7d Mon Sep 17 00:00:00 2001 From: lhiven <236881222@qq.com> Date: Wed, 20 Sep 2023 16:26:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E7=9B=B8=E6=9C=BA=E9=A3=9E=E6=8B=8D?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=87=8D=E6=8B=8D=E6=AC=A1=E6=95=B0=EF=BC=8C?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E4=B8=AD=E5=A2=9E=E5=8A=A0DownCamer?= =?UTF-8?q?aFlyRegrabNum=E8=BF=99=E4=B8=AA=E5=AD=97=E6=AE=B5=EF=BC=8C?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E4=BD=8D5=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Rs.SkyLine/Commom/GlobalVar.cs | 11 ++ Rs.SkyLine/Flow/WorkFlow.cs | 21 ++- Rs.SkyLine/SysConfig/CommonConfig.Designer.cs | 127 +++++++++++------- 3 files changed, 105 insertions(+), 54 deletions(-) diff --git a/Rs.SkyLine/Commom/GlobalVar.cs b/Rs.SkyLine/Commom/GlobalVar.cs index d0cc74d..3d9865a 100644 --- a/Rs.SkyLine/Commom/GlobalVar.cs +++ b/Rs.SkyLine/Commom/GlobalVar.cs @@ -355,5 +355,16 @@ namespace Rs.Framework return SysConfigParam.GetValue(nameof(FlyGrabGain)); } } + + /// + /// 下相机飞拍重拍次数 + /// + public static int DownCameraFlyRegrabNum + { + get + { + return SysConfigParam.GetValue(nameof(DownCameraFlyRegrabNum)); + } + } } } diff --git a/Rs.SkyLine/Flow/WorkFlow.cs b/Rs.SkyLine/Flow/WorkFlow.cs index ecb3ed9..1c63e1a 100644 --- a/Rs.SkyLine/Flow/WorkFlow.cs +++ b/Rs.SkyLine/Flow/WorkFlow.cs @@ -112,6 +112,7 @@ namespace Rs.MotionPlat.Flow TraySlot downSlot = new TraySlot(); OffsetPoint turnoverOffsetPoint = new OffsetPoint(); int needGrabNum = 0;//需要拍照的吸嘴数量 + int reGrabCount = 0;//重拍次数 ErrorCode errCode = ErrorCode.Ok; public override void Run() { @@ -513,15 +514,25 @@ namespace Rs.MotionPlat.Flow ni++; } OnMatchResult?.Invoke(mrs); - DialogResult dr = Msg.ShowQuestion($"吸嘴{string.Join(",",errCodeList)}扫描失败,点击取消则不再扫码", System.Windows.Forms.MessageBoxButtons.RetryCancel); - if(dr== DialogResult.Cancel) + if(reGrabCount