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; }