liuwf 3 months ago
parent 0d4b8e64ec
commit 36b7362451

@ -270,8 +270,7 @@ namespace SlnMesnac.Business
// plc.writeStringByAddress(GetPlcAddressByConfigKey("2楼码垛出口RFID条码地址"), "JYHB01010125", 12); // 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楼小包出口到位信号"))) if (!plc.readBoolByAddress(GetPlcAddressByConfigKey("2楼小包出口到位信号")))
{ {
@ -292,6 +291,9 @@ namespace SlnMesnac.Business
} }
string epcStr = await ReadEpcStrByRfidKeyAsync("secondFloorOut"); string epcStr = await ReadEpcStrByRfidKeyAsync("secondFloorOut");
if (string.IsNullOrEmpty(epcStr)) if (string.IsNullOrEmpty(epcStr))
{ {
_logger.LogError("小包出口到位信号触发,读取RFID失败......"); _logger.LogError("小包出口到位信号触发,读取RFID失败......");

@ -282,6 +282,7 @@ namespace SlnMesnac.WPF.ViewModel
column.Title = "日投料量"; column.Title = "日投料量";
column.Values = achievement; column.Values = achievement;
column.Foreground = Brushes.White; column.Foreground = Brushes.White;
column.Fill = new SolidColorBrush(Brushes.YellowGreen.Color);
OutAchievement.Add(column); OutAchievement.Add(column);
})); }));
} }
@ -343,6 +344,7 @@ namespace SlnMesnac.WPF.ViewModel
column.Title = "日生产量"; column.Title = "日生产量";
column.Values = achievement; column.Values = achievement;
column.Foreground = Brushes.White; column.Foreground = Brushes.White;
column.Fill = new SolidColorBrush(Brushes.LimeGreen.Color);
ProductAchievement.Add(column); ProductAchievement.Add(column);
})); }));
} }

Loading…
Cancel
Save