change-2F小光电释放即可清空小包出口RFID

dev
liuwf 4 weeks ago
parent e5dded0b50
commit 0d4b8e64ec

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

Loading…
Cancel
Save