Beispiel #1
0
 public ModbusConfig(ModbusConfig cfg)
 {
     Port            = cfg.Port;
     BaudRate        = cfg.BaudRate;
     Timeout         = cfg.Timeout;
     DataBits        = cfg.DataBits;
     Parity          = cfg.Parity;
     StopBits        = cfg.StopBits;
     Slaves          = cfg.Slaves;
     StartAddress    = cfg.StartAddress;
     Amount          = cfg.Amount;
     SelectedMemType = cfg.SelectedMemType;
 }
Beispiel #2
0
 public void Save(ModbusConfig cfg)
 {
     Settings.Default.ModBusConfig = cfg;
     Settings.Default.Save();
 }