瀏覽代碼

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

reconfiguration
ZhaoGang 1 月之前
父節點
當前提交
4034c3f799
共有 2 個檔案被更改,包括 8 行新增2 行删除
  1. +7
    -1
      BPASmartClient.Academy/50L/AddData.cs
  2. +1
    -1
      BPASmartClient.Academy/50L/PlcControl.cs

+ 7
- 1
BPASmartClient.Academy/50L/AddData.cs 查看文件

@@ -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 查看文件

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


Loading…
取消
儲存