From 417d5011c0b774fb9c8776def2a3e3f18528ad91 Mon Sep 17 00:00:00 2001 From: xcd <834800634@qq.com> Date: 星期二, 17 十一月 2020 15:48:22 +0800 Subject: [PATCH] 1. 修改高度检测和长宽检测精度为小数点后5位 2. 添加启动时写入产品结果NA 3. 添加连续NG报警和数据库报警配置 --- SizeDetection.cs | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/SizeDetection.cs b/SizeDetection.cs index 5656971..5a5e868 100644 --- a/SizeDetection.cs +++ b/SizeDetection.cs @@ -334,6 +334,10 @@ btyLength += compL; btyWidth += compW; + //闄愬埗绮惧害5浣� + btyLength = Math.Round(btyLength, 5); + btyWidth = Math.Round(btyWidth, 5); + lengthMeasureState = (btyLength >= opcConfig.batteryLengthLimit.Min && btyLength <= opcConfig.batteryLengthLimit.Max) ? MeasureState.OK : MeasureState.NG; widthMeasureState = (btyWidth >= opcConfig.batteryWidthLimit.Min && btyWidth <= opcConfig.batteryWidthLimit.Max) ? MeasureState.OK : MeasureState.NG; -- Gitblit v1.8.0