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).
Definition: PowerMeter.idl:23
vector< Controller > getControllers()
Get the list of sub controllers for this power meter.
int setSettings(in Settings settings)
Change the power meter settings.
EnergyPulseSettings getEnergyPulseSettings()
Retrieve the energy LED pulse settings.
Type
Power meter type.
Definition: PowerMeter.idl:29
@ SPLIT_PHASE
Split-phase meter (A, B)
Definition: PowerMeter.idl:31
@ ONE_PHASE
Single-phase meter (A)
Definition: PowerMeter.idl:30
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< Pole > getPoles()
Get the list of power meter poles.
A sensor with numeric readings.
Definition: NumericSensor.idl:17
Sensor with discrete readings.
Definition: StateSensor.idl:43
PDU Model.
Definition: Ade.idl:12
Sensors Model.
Definition: AccumulatingNumericSensor.idl:13
Power meter configuration.
Definition: PowerMeter.idl:36
Type type
Power meter type.
Definition: PowerMeter.idl:38
int powerMeterId
The meter board ID.
Definition: PowerMeter.idl:37
Event: Energy LED pulse settings have changed.
Definition: PowerMeter.idl:129
Energy LED pulse settings.
Definition: PowerMeter.idl:122
vector< int > poles
Emit pulses for energy counted on any of these poles.
Definition: PowerMeter.idl:124
boolean pulseEnabled
true to enable the energy LED pulse
Definition: PowerMeter.idl:123
int pulsesPerKWh
Number of LED pulses per kWh of energy.
Definition: PowerMeter.idl:125
Power meter sensors.
Definition: PowerMeter.idl:49
sensors::NumericSensor current
RMS current sensor.
Definition: PowerMeter.idl:52
sensors::NumericSensor displacementPowerFactor
Displacement power factor sensor.
Definition: PowerMeter.idl:58
sensors::NumericSensor voltage
RMS voltage sensor.
Definition: PowerMeter.idl:50
sensors::NumericSensor powerFactor
Power factor sensor.
Definition: PowerMeter.idl:56
sensors::NumericSensor activePowerDemand
Active power demand.
Definition: PowerMeter.idl:62
sensors::NumericSensor phaseAngle
Phase angle sensor.
Definition: PowerMeter.idl:57
sensors::NumericSensor activePower
Active power sensor.
Definition: PowerMeter.idl:53
sensors::NumericSensor activeEnergy
Active energy sensor.
Definition: PowerMeter.idl:59
sensors::NumericSensor apparentPower
Apparent power sensor.
Definition: PowerMeter.idl:55
sensors::NumericSensor unbalancedCurrent
Current unbalance sensor.
Definition: PowerMeter.idl:60
sensors::NumericSensor lineFrequency
Line AC frequency sensor.
Definition: PowerMeter.idl:51
sensors::StateSensor powerQuality
Power quality sensor.
Definition: PowerMeter.idl:63
sensors::NumericSensor reactivePower
Reactive power sensor.
Definition: PowerMeter.idl:54
sensors::NumericSensor crestFactor
Crest factor sensor.
Definition: PowerMeter.idl:61
Event: Power meter settings have changed.
Definition: PowerMeter.idl:98
Settings oldSettings
Settings before change.
Definition: PowerMeter.idl:99
Settings newSettings
Settings after change.
Definition: PowerMeter.idl:100
Power meter settings.
Definition: PowerMeter.idl:88
int earthCtRating
P.E. current transformer rating in Amps (0 for none)
Definition: PowerMeter.idl:93
int modbusUnitAddress
Modbus unit address (1..255, 0 to disable Modbus for this meter)
Definition: PowerMeter.idl:94
int neutralCtRating
Neutral current transformer rating in Amps (0 for none)
Definition: PowerMeter.idl:92
int phaseCtRating
Phase current transformer rating in Amps (0 for none)
Definition: PowerMeter.idl:91
int currentRating
Current rating in Amps.
Definition: PowerMeter.idl:90
string name
User-defined name.
Definition: PowerMeter.idl:89