From 0d4b8e64ec53721759394a1f5b2d32460d54ea75 Mon Sep 17 00:00:00 2001 From: liuwf Date: Wed, 16 Oct 2024 16:14:48 +0800 Subject: [PATCH] =?UTF-8?q?change-2F=E5=B0=8F=E5=85=89=E7=94=B5=E9=87=8A?= =?UTF-8?q?=E6=94=BE=E5=8D=B3=E5=8F=AF=E6=B8=85=E7=A9=BA=E5=B0=8F=E5=8C=85?= =?UTF-8?q?=E5=87=BA=E5=8F=A3RFID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SlnMesnac.Business/ProdCompletionBusiness.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/SlnMesnac.Business/ProdCompletionBusiness.cs b/SlnMesnac.Business/ProdCompletionBusiness.cs index fa867c0..c57f507 100644 --- a/SlnMesnac.Business/ProdCompletionBusiness.cs +++ b/SlnMesnac.Business/ProdCompletionBusiness.cs @@ -258,6 +258,7 @@ namespace SlnMesnac.Business { try { + var plc = base.GetPlcByKey("plc"); if (plc == null) @@ -269,9 +270,14 @@ namespace SlnMesnac.Business // plc.writeStringByAddress(GetPlcAddressByConfigKey("2楼码垛出口RFID条码地址"), "JYHB01010125", 12); + plc.writeStringByAddress(GetPlcAddressByConfigKey("2楼码垛出口RFID条码地址"), "JYHB01010225", 12); + plc.writeStringByAddress(GetPlcAddressByConfigKey("2楼码垛出口RFID条码地址"), "", 12); + if (!plc.readBoolByAddress(GetPlcAddressByConfigKey("2楼小包出口到位信号"))) { - // _logger.LogInformation("等待小包出口信号触发......"); + // _logger.LogInformation("等待小包出口信号触发......"); + // 清空RFID + plc.writeStringByAddress(GetPlcAddressByConfigKey("2楼码垛出口RFID条码地址"), "", 12); Thread.Sleep(5000); continue; }