6#ifndef __PDUMODEL_POWER_METER_IDL__
7#define __PDUMODEL_POWER_METER_IDL__
9#include <Controller.idl>
10#include <NumericSensor.idl>
12#include <StateSensor.idl>
13#include <UserEvent.idl>
25 constant
int ERR_INVALID_PARAM = 1;
26 constant
int ERR_MODBUS_UNIT_IN_USE = 2;
A three-phase power meter (PMC).
vector< Pole > getPoles()
Get the list of power meter poles.
int setSettings(in Settings settings)
Change the power meter settings.
EnergyPulseSettings getEnergyPulseSettings()
Retrieve the energy LED pulse settings.
@ SPLIT_PHASE
Split-phase meter (A, B)
@ ONE_PHASE
Single-phase meter (A)
Settings getSettings()
Retrieve the power meter settings.
int setEnergyPulseSettings(in EnergyPulseSettings settings)
Change the energy LED pulse settings.
Sensors getSensors()
Get the power meter sensors.
Config getConfig()
Retrieve the power meter configuration.
vector< Controller > getControllers()
Get the list of sub controllers for this power meter.
A sensor with numeric readings.
Sensor with discrete readings.
Power meter configuration.
Type type
Power meter type.
int powerMeterId
The meter board ID.
Event: Energy LED pulse settings have changed.
Energy LED pulse settings.
vector< int > poles
Emit pulses for energy counted on any of these poles.
boolean pulseEnabled
true to enable the energy LED pulse
int pulsesPerKWh
Number of LED pulses per kWh of energy.
sensors::NumericSensor current
RMS current sensor.
sensors::NumericSensor displacementPowerFactor
Displacement power factor sensor.
sensors::NumericSensor voltage
RMS voltage sensor.
sensors::NumericSensor powerFactor
Power factor sensor.
sensors::NumericSensor activePowerDemand
Active power demand.
sensors::NumericSensor phaseAngle
Phase angle sensor.
sensors::NumericSensor activePower
Active power sensor.
sensors::NumericSensor activeEnergy
Active energy sensor.
sensors::NumericSensor apparentPower
Apparent power sensor.
sensors::NumericSensor unbalancedCurrent
Current unbalance sensor.
sensors::NumericSensor lineFrequency
Line AC frequency sensor.
sensors::StateSensor powerQuality
Power quality sensor.
sensors::NumericSensor reactivePower
Reactive power sensor.
sensors::NumericSensor crestFactor
Crest factor sensor.
Event: Power meter settings have changed.
Settings oldSettings
Settings before change.
Settings newSettings
Settings after change.
int earthCtRating
P.E. current transformer rating in Amps (0 for none)
int modbusUnitAddress
Modbus unit address (1..255, 0 to disable Modbus for this meter)
int neutralCtRating
Neutral current transformer rating in Amps (0 for none)
int phaseCtRating
Phase current transformer rating in Amps (0 for none)
int currentRating
Current rating in Amps.
string name
User-defined name.