添加日报

This commit is contained in:
gongxh
2022-05-16 13:54:26 +08:00
parent 9dfb90f683
commit e120927df2
11 changed files with 683 additions and 9 deletions

View File

@@ -182,7 +182,8 @@ namespace CleanMachineHMI
stopWatch.Stop();
TimeSpan ts = stopWatch.Elapsed;
LogHelper.WriteLog($"读取PLC时间:{ts.Milliseconds}", LogTypeEum.Run);
Console.WriteLine($"读取PLC时间:{ts.Milliseconds}", LogTypeEum.Run);
if (haschange)
{
if (_synchronization != null)
@@ -446,7 +447,10 @@ namespace CleanMachineHMI
{
if (item.PlcItemValue != value)
{
haschange = true;
if (item.PlcItemCode != "PlcHeartbeatWriteData")
{
haschange = true;
}
item.PlcItemValue = value;
}