| | |
| | | using HMI.Core.Entity; |
| | | using HMI.Core.Setting; |
| | | using HMI.Core.Util; |
| | | using log4net; |
| | | using S7Driver; |
| | | using System; |
| | | using System.Collections.Generic; |
| | |
| | | |
| | | public event EventHandler<LoadMsg> LoadMessageAppend; |
| | | |
| | | private static ILog log = LogManager.GetLogger("AlarmHelper"); |
| | | |
| | | internal AlarmHelper() |
| | | { |
| | | |
| | | } |
| | | |
| | | public ObservableCollection<AlarmSetting> BlockSettings { get; private set; } |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | //log.Error("Read OPCServer Data Error.", ex); |
| | | log.Error("Read PLC Alarm Data Error.", ex); |
| | | } |
| | | finally |
| | | { |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | //log.Error("PcTimer Execute Failed", ex); |
| | | log.Error("Read MSMQ Alarm Data Failed", ex); |
| | | } |
| | | finally |
| | | { |