change-优化小包插取

dev
liuwf 2 months ago
parent 92c803fbbe
commit f823321c18

@ -295,11 +295,18 @@ namespace SlnMesnac.Business
if (!plc.readBoolByAddress(GetPlcAddressByConfigKey("2楼小包出口到位信号"))) if (!plc.readBoolByAddress(GetPlcAddressByConfigKey("2楼小包出口到位信号")))
{ {
plc.writeStringByAddress(GetPlcAddressByConfigKey("2楼码垛出口RFID条码地址"), "", 12); plc.writeStringByAddress(GetPlcAddressByConfigKey("2楼码垛出口RFID条码地址"), "", 12);
Thread.Sleep(5000); Thread.Sleep(5000);
continue; continue;
} }
// 判断插取有物料信号
if (!plc.readBoolByAddress(GetPlcAddressByConfigKey("2楼小包出口插取有物料信号")))
{
Thread.Sleep(1000);
continue;
}
string rfid = plc.readStringByAddress(GetPlcAddressByConfigKey("2楼码垛出口RFID条码地址"), 12).Replace("\0", ""); string rfid = plc.readStringByAddress(GetPlcAddressByConfigKey("2楼码垛出口RFID条码地址"), 12).Replace("\0", "");

Loading…
Cancel
Save