Beispiel #1
0
 public void BuildDOModuleRegistersMap(ref DeviceDOModule doModule)
 {
     if (_configuration.HeaderFields.ModuleDO && doModule == null)
         doModule = new DeviceDOModule();
     if (_configuration.HeaderFields.ModuleDO == false && doModule != null)
         doModule = null;
 }
Beispiel #2
0
 public ModuleDOMonitor()
 {
     InitializeComponent();
     _currentStatus = new DeviceDOModule();
     _needToForceCoil = false;
     _coilState = false;
     _coilAddress = 0;
     _logger = new TextLogger();
     _logger.LogFilePath = AppDomain.CurrentDomain.BaseDirectory + "TU_ModuleMonitor_LOG.txt";
 }
Beispiel #3
0
 public Device()
 {
     Configuration = new DeviceConfiguration();
     UserRegisters = new List<DeviceUserRegister>();
     Statuses = new DeviceStatuses();
     DIModule = null;
     DOModule = null;
     AIModule = null;
     RouterModule = null;
 }