Пример #1
0
        /// <summary>
        /// Updates the Properties used in EM300LR total data.
        /// </summary>
        /// <param name="data">The EM300LR data.</param>
        public void Refresh(EM300LRData data)
        {
            if (data != null)
            {
                ActivePowerPlus     = data.ActivePowerPlus;
                ActiveEnergyPlus    = data.ActiveEnergyPlus;
                ActivePowerMinus    = data.ActivePowerMinus;
                ActiveEnergyMinus   = data.ActiveEnergyMinus;
                ReactivePowerPlus   = data.ReactivePowerPlus;
                ReactiveEnergyPlus  = data.ReactiveEnergyPlus;
                ReactivePowerMinus  = data.ReactivePowerMinus;
                ReactiveEnergyMinus = data.ReactiveEnergyMinus;
                ApparentPowerPlus   = data.ApparentPowerPlus;
                ApparentEnergyPlus  = data.ApparentEnergyPlus;
                ApparentPowerMinus  = data.ApparentPowerMinus;
                ApparentEnergyMinus = data.ApparentEnergyMinus;
                PowerFactor         = data.PowerFactor;
                SupplyFrequency     = data.SupplyFrequency;
            }

            Status = data?.Status ?? Uncertain;
        }
Пример #2
0
        /// <summary>
        /// Updates the Properties used in EM300LR data.
        /// </summary>
        /// <param name="data">The EM300LR data.</param>
        public void Refresh(EM300LRData data)
        {
            if (data != null)
            {
                ActivePowerPlus     = data.ActivePowerPlusL3;
                ActiveEnergyPlus    = data.ActiveEnergyPlusL3;
                ActivePowerMinus    = data.ActivePowerMinusL3;
                ActiveEnergyMinus   = data.ActiveEnergyMinusL3;
                ReactivePowerPlus   = data.ReactivePowerPlusL3;
                ReactiveEnergyPlus  = data.ReactiveEnergyPlusL3;
                ReactivePowerMinus  = data.ReactivePowerMinusL3;
                ReactiveEnergyMinus = data.ReactiveEnergyMinusL3;
                ApparentPowerPlus   = data.ApparentPowerPlusL3;
                ApparentEnergyPlus  = data.ApparentEnergyPlusL3;
                ApparentPowerMinus  = data.ApparentPowerMinusL3;
                ApparentEnergyMinus = data.ApparentEnergyMinusL3;
                PowerFactor         = data.PowerFactorL3;
                Current             = data.CurrentL3;
                Voltage             = data.VoltageL3;
            }

            Status = data?.Status ?? Uncertain;
        }
Пример #3
0
        /// <summary>
        /// Updates the Properties used in EM300LR data.
        /// </summary>
        /// <param name="data">The EM300LR data.</param>
        public void Refresh(EM300LRData data)
        {
            if (data != null)
            {
                ActivePowerPlus       = data.ActivePowerPlus;
                ActiveEnergyPlus      = data.ActiveEnergyPlus;
                ActivePowerMinus      = data.ActivePowerMinus;
                ActiveEnergyMinus     = data.ActiveEnergyMinus;
                ReactivePowerPlus     = data.ReactivePowerPlus;
                ReactiveEnergyPlus    = data.ReactiveEnergyPlus;
                ReactivePowerMinus    = data.ReactivePowerMinus;
                ReactiveEnergyMinus   = data.ReactiveEnergyMinus;
                ApparentPowerPlus     = data.ApparentPowerPlus;
                ApparentEnergyPlus    = data.ApparentEnergyPlus;
                ApparentPowerMinus    = data.ApparentPowerMinus;
                ApparentEnergyMinus   = data.ApparentEnergyMinus;
                PowerFactor           = data.PowerFactor;
                SupplyFrequency       = data.SupplyFrequency;
                ActivePowerPlusL1     = data.ActivePowerPlusL1;
                ActiveEnergyPlusL1    = data.ActiveEnergyPlusL1;
                ActivePowerMinusL1    = data.ActivePowerMinusL1;
                ActiveEnergyMinusL1   = data.ActiveEnergyMinusL1;
                ReactivePowerPlusL1   = data.ReactivePowerPlusL1;
                ReactiveEnergyPlusL1  = data.ReactiveEnergyPlusL1;
                ReactivePowerMinusL1  = data.ReactivePowerMinusL1;
                ReactiveEnergyMinusL1 = data.ReactiveEnergyMinusL1;
                ApparentPowerPlusL1   = data.ApparentPowerPlusL1;
                ApparentEnergyPlusL1  = data.ApparentEnergyPlusL1;
                ApparentPowerMinusL1  = data.ApparentPowerMinusL1;
                ApparentEnergyMinusL1 = data.ApparentEnergyMinusL1;
                CurrentL1             = data.CurrentL1;
                VoltageL1             = data.VoltageL1;
                PowerFactorL1         = data.PowerFactorL1;
                ActivePowerPlusL2     = data.ActivePowerPlusL2;
                ActiveEnergyPlusL2    = data.ActiveEnergyPlusL2;
                ActivePowerMinusL2    = data.ActivePowerMinusL2;
                ActiveEnergyMinusL2   = data.ActiveEnergyMinusL2;
                ReactivePowerPlusL2   = data.ReactivePowerPlusL2;
                ReactiveEnergyPlusL2  = data.ReactiveEnergyPlusL2;
                ReactivePowerMinusL2  = data.ReactivePowerMinusL2;
                ReactiveEnergyMinusL2 = data.ReactiveEnergyMinusL2;
                ApparentPowerPlusL2   = data.ApparentPowerPlusL2;
                ApparentEnergyPlusL2  = data.ApparentEnergyPlusL2;
                ApparentPowerMinusL2  = data.ApparentPowerMinusL2;
                ApparentEnergyMinusL2 = data.ApparentEnergyMinusL2;
                CurrentL2             = data.CurrentL2;
                VoltageL2             = data.VoltageL2;
                PowerFactorL2         = data.PowerFactorL2;
                ActivePowerPlusL3     = data.ActivePowerPlusL3;
                ActiveEnergyPlusL3    = data.ActiveEnergyPlusL3;
                ActivePowerMinusL3    = data.ActivePowerMinusL3;
                ActiveEnergyMinusL3   = data.ActiveEnergyMinusL3;
                ReactivePowerPlusL3   = data.ReactivePowerPlusL3;
                ReactiveEnergyPlusL3  = data.ReactiveEnergyPlusL3;
                ReactivePowerMinusL3  = data.ReactivePowerMinusL3;
                ReactiveEnergyMinusL3 = data.ReactiveEnergyMinusL3;
                ApparentPowerPlusL3   = data.ApparentPowerPlusL3;
                ApparentEnergyPlusL3  = data.ApparentEnergyPlusL3;
                ApparentPowerMinusL3  = data.ApparentPowerMinusL3;
                ApparentEnergyMinusL3 = data.ApparentEnergyMinusL3;
                CurrentL3             = data.CurrentL3;
                VoltageL3             = data.VoltageL3;
                PowerFactorL3         = data.PowerFactorL3;
                Serial     = data.Serial;
                StatusCode = data.StatusCode;
            }

            Status = data?.Status ?? Uncertain;
        }