Esempio n. 1
0
 /// <summary>
 /// Constructor with reasonable defaults
 /// </summary>
 public SlaveConfig()
 {
     this.maxControls = 1;
     this.disableUnsol = false;
     this.unsolMask = new ClassMask(true, true, true);
     this.allowTimeSync = false;
     this.timeSyncPeriod = 10 * 60 * 1000; // every 10 min
     this.unsolPackDelay = 200;
     this.unsolRetryDelay = 2000;
     this.selectTimeout = 5000;
     this.maxFragSize = 2048;
     this.eventMaxConfig = new EventMaxConfig();
     this.staticBinary = StaticBinaryResponse.GROUP1_VAR2;
     this.staticAnalog = StaticAnalogResponse.GROUP30_VAR1;
     this.staticCounter = StaticCounterResponse.GROUP20_VAR1;
     this.staticSetpointStatus = StaticSetpointStatusResponse.GROUP40_VAR1;
     this.eventBinary = EventBinaryResponse.GROUP2_VAR1;
     this.eventAnalog = EventAnalogResponse.GROUP32_VAR1;
     this.eventCounter = EventCounterResponse.GROUP22_VAR1;
 }
 public SlaveConfig()
 {
     this.maxControls = 1;
     this.disableUnsol = false;
     this.unsolMask = new ClassMask(true, true, true);
     this.allowTimeSync = false;
     this.timeSyncPeriod = 10 * 60 * 1000; // every 10 min
     this.unsolPackDelay = 200;
     this.unsolRetryDelay = 2000;
     this.maxFragSize = 2048;
     this.eventMaxConfig = new EventMaxConfig();
     this.staticBinary = new GrpVar(1, 2);
     this.staticAnalog = new GrpVar(30, 1);
     this.staticCounter = new GrpVar(20, 1);
     this.staticSetpointStatus = new GrpVar(40, 1);
     this.eventBinary = new GrpVar(2, 1);
     this.eventAnalog = new GrpVar(32, 1);
     this.eventCounter = new GrpVar(22, 1);
 }