public PhasePower(MetersParameter current, MetersParameter voltage, float max, float hist, float min = 0) : base(min, max, hist) { this.MinValue = 0; this.MaxValue = max; this.voltage = voltage; this.current = current; }
public Phase() { voltage = new MetersParameter(198, 242, 2); current = new MetersParameter(-0.1F, 20, 1); power_factor = new MetersParameter(0.8F, 1.5F, 0.01F); power = new PhasePower(current, voltage, 10000, 500); InitNames(); }
public Phase[] Phases; // У счетчика 3 фазы //public Mercury230_DatabaseSignals(){} public Mercury230_DatabaseSignals(SerialPort port, byte addr, int serial, byte[][] pas, int timeout = 50) : base(port, addr, timeout) { serial_number = serial; DataTime_nextPoint_recordSQL = new DateTime(2000, 1, 1);; this.password = pas; Phases = new Phase[3]; Phases[0] = new Phase(); Phases[1] = new Phase(); Phases[2] = new Phase(); CommonPower = new MetersParameter(-0.01F, 5000, 5); DateTime_lastTime_connection = new DateTime(2000, 1, 1); DateTime_nextTime_corecction = new DateTime(2000, 1, 1); DataTime_nextPoint_recordSQL = new DateTime(2000, 1, 1); CommonActivePower = new MetersParameter(-0.01F, 5000, 50); }
public void CopyLimits(MetersParameter ext_par) { this.MinValue = ext_par.MinValue; this.MaxValue = ext_par.MaxValue; this.Hist = ext_par.Hist; }