6#ifndef __PDUMODEL_TRANSFERSWITCH_IDL__
7#define __PDUMODEL_TRANSFERSWITCH_IDL__
10#include <Nameplate.idl>
12#include <StateSensor.idl>
13#include <TransferSwitchBypassStateSensor.idl>
14#include <Waveform.idl>
24 constant
int ERR_INVALID_PARAM = 1;
25 constant
int ERR_SWITCH_PREVENTED = 2;
26 constant
int ERR_SWITCH_FAILED = 3;
35 [unknown_fallback(
"REASON_UNKNOWN")]
59 constant
int OPERATIONAL_STATE_OFF = 0;
60 constant
int OPERATIONAL_STATE_NORMAL = 1;
61 constant
int OPERATIONAL_STATE_STANDBY = 2;
62 constant
int OPERATIONAL_STATE_NON_REDUNDANT = 3;
65 constant
int SWITCH_FAULT_I1_SHORT = 1;
66 constant
int SWITCH_FAULT_I1_OPEN = 2;
67 constant
int SWITCH_FAULT_I2_SHORT = 4;
68 constant
int SWITCH_FAULT_I2_OPEN = 8;
Common base interface for any kind of electrical device that is used in the PDU model,...
Overcurrent protector trip sensor interface.
Transfer switch interface.
Type
Transfer switch type.
@ ATS
Asynchronous transfer switch (using relays)
@ STS
Static transfer switch (using SCRs as switch technology)
TransferReason getLastTransferReason()
Get the reason for the last transfer.
Settings getSettings()
Retrieve the transfer switch settings.
Statistics getStatistics()
Retrieve the transfer switch statistics.
int setParameters(in Parameters parameters)
Update one or more transfer switch parameters.
Parameters getParameters()
Retrieve the transfer switch parameters.
Sensors getSensors()
Get the transfer switch sensors.
int transferToSource(in int source, in boolean faultOverride)
Select the active inlet.
Waveform getLastTransferWaveform()
Get the voltage and current waveforms during the last transfer.
MetaData getMetaData()
Retrieve the transfer switch metadata.
map< string, int > Parameters
Transfer switch parameter map.
vector< ThrowPole > getPoles()
Get the list of transfer switch poles.
@ REASON_STARTUP
Startup or return to normal conditions.
@ REASON_POWER_QUALITY
New inlet provided better power quality.
@ REASON_INTERNAL_FAILURE
Transferred because of hardware failure (e.g. switch fault)
@ REASON_UNKNOWN
Transfer reason unknown.
@ REASON_OVERLOAD
Switched off due to overload alarm.
@ REASON_MANUAL_TRANSFER
Manual transfer.
@ REASON_POWER_FAILURE
Previous inlet power failed.
@ REASON_OVERHEAT
Switched off due to overheat alarm.
@ REASON_AUTO_RETRANSFER
Automatic retransfer.
int setSettings(in Settings settings)
Change the transfer switch settings.
vector< TransferLogEntry > getTransferLog()
Retrieve the transfer log.
A sensor with numeric readings.
Sensor with discrete readings.
Component nameplate information.
sensors::StateSensor operationalState
Operational state sensor (off, normal, standby)
sensors::StateSensor switchFault
Switch fault (ok, open, short)
sensors::StateSensor overloadAlarm
Overload alarm.
sensors::StateSensor phaseSyncAlarm
Source phases out of sync.
sensors::NumericSensor sourceVoltagePhaseSyncAngle
Maximum phase difference between two sources.
sensors::StateSensor selectedSource
Selected source sensor.
Event: Transfer switch settings have been changed.
Settings oldSettings
Settings before change.
Settings newSettings
Settings after change.
Transfer switch settings.
boolean autoRetransfer
Enable automatic retransfer if power on active inlet is restored.
boolean phaseSyncSensorEnabled
False to force the 'phaseSyncAlarm' sensor to unavailable.
string name
User-defined name.
int preferredSource
Preferred inlet.
int autoRetransferWaitTime
Time (in s) to delay retransfer after power restoration.
boolean manualTransferEnabled
Enable state of 'manual transfer' front panel button.
boolean noAutoRetransferIfPhaseFault
Don't automatically retransfer if inlet phases are out of sync.
Transfer switch statistics.
int totalTransferTime
Total time in us for last transfer.
int transferCount
Number of transfers since device startup.
int powerFailDetectTime
Detection time in us for the last inlet power failure.
int relayOpenTime
Time in us until all relays have opened during the last transfer.
Waveform waveform
Voltage and current waveforms.
int oldInlet
Active inlet before transfer (0 for none)
int switchFault
Switch fault status.
int newInlet
Active inlet after transfer (0 for none)
TransferReason reason
Transfer reason.
time timestamp
Time of the transfer (UNIX timestamp, UTC)
Statistics statistics
Transfer statistics.