From f823321c18e79ae906d8d62382d3683cf9ab7a2c Mon Sep 17 00:00:00 2001 From: liuwf Date: Tue, 3 Dec 2024 13:25:29 +0800 Subject: [PATCH] =?UTF-8?q?change-=E4=BC=98=E5=8C=96=E5=B0=8F=E5=8C=85?= =?UTF-8?q?=E6=8F=92=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SlnMesnac.Business/ProdCompletionBusiness.cs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/SlnMesnac.Business/ProdCompletionBusiness.cs b/SlnMesnac.Business/ProdCompletionBusiness.cs index 21be577..f481d87 100644 --- a/SlnMesnac.Business/ProdCompletionBusiness.cs +++ b/SlnMesnac.Business/ProdCompletionBusiness.cs @@ -292,14 +292,21 @@ namespace SlnMesnac.Business continue; } - + if (!plc.readBoolByAddress(GetPlcAddressByConfigKey("2楼小包出口到位信号"))) - { - + { plc.writeStringByAddress(GetPlcAddressByConfigKey("2楼码垛出口RFID条码地址"), "", 12); Thread.Sleep(5000); continue; } + // 判断插取有物料信号 + if (!plc.readBoolByAddress(GetPlcAddressByConfigKey("2楼小包出口插取有物料信号"))) + { + Thread.Sleep(1000); + continue; + } + + string rfid = plc.readStringByAddress(GetPlcAddressByConfigKey("2楼码垛出口RFID条码地址"), 12).Replace("\0", "");