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;
 }
 private void OnSelectedMemTypeChanged(object sender, Memtype e)
 {
     _lastCount = 0;//initiate recollect data to the ControlTableSource
     if (e == Memtype.Coils | e == Memtype.Inputs)
     {
         ControlTableSource = CoilList;
     }
     else
     {
         ControlTableSource = UshortList;
         _mode = 0;
     }
 }