EEBus: drop redundant Scenario middle word from constant names (#29704)

This commit is contained in:
andig 2026-05-06 15:20:11 +02:00 • committed by GitHub
parent 4b276a4d99
commit 2a496683ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 49 additions and 49 deletions

View file

@ -11,62 +11,62 @@ package eebus
// MGCP — Monitoring of Grid Connection Point (UC TS v1.0.0)
const (
MGCPScenarioPowerFactor uint = 1 // S1 power factor (cos phi)
MGCPScenarioPower uint = 2 // S2 active power per phase + total
MGCPScenarioEnergyFeedIn uint = 3 // S3 total feed-in energy
MGCPScenarioEnergyConsumed uint = 4 // S4 total consumed energy
MGCPScenarioCurrentPerPhase uint = 5 // S5 phase-specific currents
MGCPScenarioVoltagePerPhase uint = 6 // S6 phase-specific voltages
MGCPScenarioFrequency uint = 7 // S7 frequency
MGCPPowerFactor uint = 1 // S1 power factor (cos phi)
MGCPPower uint = 2 // S2 active power per phase + total
MGCPEnergyFeedIn uint = 3 // S3 total feed-in energy
MGCPEnergyConsumed uint = 4 // S4 total consumed energy
MGCPCurrentPerPhase uint = 5 // S5 phase-specific currents
MGCPVoltagePerPhase uint = 6 // S6 phase-specific voltages
MGCPFrequency uint = 7 // S7 frequency
)
// MPC — Monitoring of Power Consumption (UC TS v1.0.0)
const (
MPCScenarioPower uint = 1 // S1 active power per phase + total
MPCScenarioEnergyConsumed uint = 2 // S2 total consumed energy
MPCScenarioCurrentPerPhase uint = 3 // S3 phase-specific currents
MPCScenarioVoltagePerPhase uint = 4 // S4 phase-specific voltages
MPCScenarioFrequency uint = 5 // S5 frequency
MPCPower uint = 1 // S1 active power per phase + total
MPCEnergyConsumed uint = 2 // S2 total consumed energy
MPCCurrentPerPhase uint = 3 // S3 phase-specific currents
MPCVoltagePerPhase uint = 4 // S4 phase-specific voltages
MPCFrequency uint = 5 // S5 frequency
)
// LPC — Limitation of Power Consumption (UC TS v1.0.0). Same scenario layout for CS and EG roles.
const (
LPCScenarioLimit uint = 1 // S1 LoadControl: consumption limit
LPCScenarioFailsafe uint = 2 // S2 DeviceConfiguration: failsafe values
LPCScenarioHeartbeat uint = 3 // S3 DeviceDiagnosis: heartbeat
LPCScenarioElectricalConnection uint = 4 // S4 ElectricalConnection (optional)
LPCLimit uint = 1 // S1 LoadControl: consumption limit
LPCFailsafe uint = 2 // S2 DeviceConfiguration: failsafe values
LPCHeartbeat uint = 3 // S3 DeviceDiagnosis: heartbeat
LPCElectricalConnection uint = 4 // S4 ElectricalConnection (optional)
)
// LPP — Limitation of Power Production (UC TS v1.0.0). Same scenario layout for CS and EG roles.
const (
LPPScenarioLimit uint = 1 // S1 LoadControl: production limit
LPPScenarioFailsafe uint = 2 // S2 DeviceConfiguration: failsafe values
LPPScenarioHeartbeat uint = 3 // S3 DeviceDiagnosis: heartbeat
LPPScenarioElectricalConnection uint = 4 // S4 ElectricalConnection (optional)
LPPLimit uint = 1 // S1 LoadControl: production limit
LPPFailsafe uint = 2 // S2 DeviceConfiguration: failsafe values
LPPHeartbeat uint = 3 // S3 DeviceDiagnosis: heartbeat
LPPElectricalConnection uint = 4 // S4 ElectricalConnection (optional)
)
// OPEV — Overload Protection by EV Charging Current Curtailment (UC TS v1.0.1)
const (
OPEVScenarioObligationLimit uint = 1 // S1 LoadControl + ElectricalConnection
OPEVScenarioChargingState uint = 2 // S2 charging state
OPEVScenarioChargingPlan uint = 3 // S3 charging plan
OPEVObligationLimit uint = 1 // S1 LoadControl + ElectricalConnection
OPEVChargingState uint = 2 // S2 charging state
OPEVChargingPlan uint = 3 // S3 charging plan
)
// OSCEV — Optimization of Self-Consumption during EV Charging (UC TS v1.0.1)
const (
OSCEVScenarioRecommendationLimit uint = 1 // S1 LoadControl + ElectricalConnection
OSCEVScenarioChargingState uint = 2 // S2 charging state
OSCEVScenarioChargingPlan uint = 3 // S3 charging plan
OSCEVRecommendationLimit uint = 1 // S1 LoadControl + ElectricalConnection
OSCEVChargingState uint = 2 // S2 charging state
OSCEVChargingPlan uint = 3 // S3 charging plan
)
// EVCEM — Measurement of Electricity during EV Charging (UC TS v1.0.1)
const (
EVCEMScenarioPowerPerPhase uint = 1 // S1 phase-specific active power + ElectricalConnection (currents)
EVCEMScenarioPowerTotal uint = 2 // S2 total active power only
EVCEMScenarioEnergy uint = 3 // S3 charging energy summary
EVCEMPowerPerPhase uint = 1 // S1 phase-specific active power + ElectricalConnection (currents)
EVCEMPowerTotal uint = 2 // S2 total active power only
EVCEMEnergy uint = 3 // S3 charging energy summary
)
// EVSOC — EV State of Charge (UC TS v1.0.0 RC1)
const (
EVSOCScenarioStateOfCharge uint = 1 // S1 state of charge
EVSOCStateOfCharge uint = 1 // S1 state of charge
)