Pārlūkot izejas kodu

modify:反应釜压力上限变量赋值,报警记录添加使用UI线程

reconfiguration
ZhaoGang pirms 1 mēnesi
vecāks
revīzija
4034c3f799
2 mainītis faili ar 8 papildinājumiem un 2 dzēšanām
  1. +7
    -1
      BPASmartClient.Academy/50L/AddData.cs
  2. +1
    -1
      BPASmartClient.Academy/50L/PlcControl.cs

+ 7
- 1
BPASmartClient.Academy/50L/AddData.cs Parādīt failu

@@ -48,7 +48,13 @@ namespace BPASmartClient.Academy._50L
Data.TryAdd(fbd, 0);
}
});
AlarmHelper.GetInstance.AddNotify = (s) => { MessageNotify.GetInstance.ShowAlarmLog(s.Info); };
AlarmHelper.GetInstance.AddNotify = (s) =>
{
App.Current.Dispatcher.Invoke(() =>
{
MessageNotify.GetInstance.ShowAlarmLog(s.Info);
});
};
AlarmHelper.GetInstance.Register<AlarmData>("50L反应釜");
AlarmHelper.GetInstance.Start();
}


+ 1
- 1
BPASmartClient.Academy/50L/PlcControl.cs Parādīt failu

@@ -144,7 +144,7 @@ namespace BPASmartClient.Academy._50L
AlarmHelper.GetInstance.Get<AlarmData>("50L反应釜").AbnormalNegativePressureFan = s.Content[2];
AlarmHelper.GetInstance.Get<AlarmData>("50L反应釜").BrinePumpError = s.Content[3];
AlarmHelper.GetInstance.Get<AlarmData>("50L反应釜").CompressorError = s.Content[4];
AlarmHelper.GetInstance.Get<AlarmData>("50L反应釜").ReactorPressureLimit = s.Content[4];
AlarmHelper.GetInstance.Get<AlarmData>("50L反应釜").ReactorPressureLimit = s.Content[5];
});
Thread.Sleep(100);


Notiek ielāde…
Atcelt
Saglabāt