From 88dfff2210008bf00280fe137db1d19c4087068e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=88=91=E5=8F=AB=E9=94=84=E5=A4=B4?= Date: Thu, 11 Apr 2024 16:27:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E6=A8=A1=E5=BC=8F7=20?= =?UTF-8?q?=E4=B8=8D=E6=98=BE=E7=A4=BA=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ProductionSystem/Forms/HomeForm.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ProductionSystem/Forms/HomeForm.cs b/ProductionSystem/Forms/HomeForm.cs index e64fc67..cc65488 100644 --- a/ProductionSystem/Forms/HomeForm.cs +++ b/ProductionSystem/Forms/HomeForm.cs @@ -1599,6 +1599,7 @@ namespace ProductionSystem.Forms SetMiddleData("BZ5_DB"); SetMiddleData("BZ6_DB"); SetMiddleData("BZ7_DB"); + SetMiddleData("BZ8_DB"); Thread.Sleep(Program.ReadPlcRate); } @@ -1621,7 +1622,9 @@ namespace ProductionSystem.Forms } else { + //处理换行符 productBarCode=txtProductCode.Text; + productBarCode= productBarCode.Replace("\r", "").Replace("\n", ""); } var value = OmronHelper.GetPlcVal(entity.DataType, entity.Address); @@ -1904,7 +1907,7 @@ namespace ProductionSystem.Forms { "BZ5", "D1308" }, { "BZ6", "D1310" }, //外露 - { "BZ7", "D1316" }, + { "BZ7", "D1306" }, { "BZ8", "D1314" }, };