Interface BatteryInverterKacoBlueplanetGridsave
- All Superinterfaces:
ManagedSymmetricBatteryInverter
,ModbusComponent
,OpenemsComponent
,StartStoppable
,SymmetricBatteryInverter
- All Known Implementing Classes:
BatteryInverterKacoBlueplanetGridsaveImpl
public interface BatteryInverterKacoBlueplanetGridsave
extends ManagedSymmetricBatteryInverter, SymmetricBatteryInverter, ModbusComponent, OpenemsComponent, StartStoppable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Sets the KACO watchdog timeout to 60 seconds.static final int
The watchdog gets triggered every WATCHDOG_TRIGGER_CYCLES seconds.Fields inherited from interface io.openems.edge.batteryinverter.api.SymmetricBatteryInverter
POWER_DOC_TEXT
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
_setGridDisconnection
(boolean value) Writes the value to the ChannelId.GRID_DISCONNECTION.default void
_setInverterCurrentStateFault
(boolean value) Writes the value to the ChannelId.INVERTER_CURRENT_STATE_FAULT.default void
_setMaxStartTimeout
(boolean value) Internal method to set the 'nextValue' onBatteryInverterKacoBlueplanetGridsave.ChannelId.MAX_START_TIMEOUT
Channel.default void
_setMaxStopTimeout
(boolean value) Internal method to set the 'nextValue' onBatteryInverterKacoBlueplanetGridsave.ChannelId.MAX_STOP_TIMEOUT
Channel.default void
_setRunFailed
(boolean value) Writes the value to the ChannelId.RUN_FAILED.Gets the Current State.Gets the Channel for ChannelId.GRID_DISCONNECTION.Gets the Channel for ChannelId.INVERTER_CURRENT_STATE_FAULT.default StateChannel
Gets the Channel forBatteryInverterKacoBlueplanetGridsave.ChannelId.MAX_START_TIMEOUT
.default StateChannel
Gets the Channel forBatteryInverterKacoBlueplanetGridsave.ChannelId.MAX_STOP_TIMEOUT
.Gets the Channel for KacoSunSpecModel.S64201.REQUESTED_STATE.Gets the Channel for ChannelId.RUN_FAILED.Gets the target Start/Stop mode from config or StartStop-Channel.<T extends Channel<?>>
TGet the Channel for the given Point or throw an error if it is not available.boolean
Checks if the system is in a fault state.boolean
Checks if the system is in a running state.boolean
Checks if the system is in a stop state.default void
Writes the value to the KacoSunSpecModel.S64201.REQUESTED_STATE Register.Methods inherited from interface io.openems.edge.batteryinverter.api.ManagedSymmetricBatteryInverter
getPowerPrecision, getStaticConstraints, isManaged, isOffGridPossible, run
Methods inherited from interface io.openems.edge.bridge.modbus.api.ModbusComponent
_setModbusCommunicationFailed, getModbusCommunicationFailed, getModbusCommunicationFailedChannel, retryModbusCommunication
Methods inherited from interface io.openems.edge.common.component.OpenemsComponent
_channel, _getChannelAs, alias, channel, channel, channels, debugLog, getComponentContext, getState, getStateChannel, hasFaults, id, isEnabled, serviceFactoryPid, servicePid
Methods inherited from interface io.openems.edge.common.startstop.StartStoppable
_setStartStop, getStartStop, getStartStopChannel, isStarted, isStopped, setStartStop, start, stop
Methods inherited from interface io.openems.edge.batteryinverter.api.SymmetricBatteryInverter
_setActiveChargeEnergy, _setActiveChargeEnergy, _setActiveDischargeEnergy, _setActiveDischargeEnergy, _setActivePower, _setActivePower, _setDcMaxVoltage, _setDcMaxVoltage, _setDcMinVoltage, _setDcMinVoltage, _setGridMode, _setMaxApparentPower, _setMaxApparentPower, _setReactivePower, _setReactivePower, getActiveChargeEnergy, getActiveChargeEnergyChannel, getActiveDischargeEnergy, getActiveDischargeEnergyChannel, getActivePower, getActivePowerChannel, getDcMaxVoltage, getDcMaxVoltageChannel, getDcMinVoltage, getDcMinVoltageChannel, getGridMode, getGridModeChannel, getMaxApparentPower, getMaxApparentPowerChannel, getReactivePower, getReactivePowerChannel
-
Field Details
-
WATCHDOG_TIMEOUT_SECONDS
static final int WATCHDOG_TIMEOUT_SECONDSSets the KACO watchdog timeout to 60 seconds.- See Also:
-
WATCHDOG_TRIGGER_SECONDS
static final int WATCHDOG_TRIGGER_SECONDSThe watchdog gets triggered every WATCHDOG_TRIGGER_CYCLES seconds. This must be less than WATCHDOG_TIMEOUT_SECONDS.- See Also:
-
-
Method Details
-
getStartStopTarget
StartStop getStartStopTarget()Gets the target Start/Stop mode from config or StartStop-Channel.- Returns:
StartStop
-
getSunSpecChannelOrError
Get the Channel for the given Point or throw an error if it is not available.- Type Parameters:
T
- the Channel type- Parameters:
point
- the SunSpec Point- Returns:
- the optional Channel
- Throws:
OpenemsException
- if Channel is not available
-
getCurrentState
KacoSunSpecModel.S64201.S64201CurrentState getCurrentState()Gets the Current State.- Returns:
- the
KacoSunSpecModel.S64201.S64201CurrentState
-
getMaxStartTimeoutChannel
Gets the Channel forBatteryInverterKacoBlueplanetGridsave.ChannelId.MAX_START_TIMEOUT
.- Returns:
- the Channel
-
getMaxStartTimeout
- Returns:
- the Channel
Value
-
_setMaxStartTimeout
default void _setMaxStartTimeout(boolean value) Internal method to set the 'nextValue' onBatteryInverterKacoBlueplanetGridsave.ChannelId.MAX_START_TIMEOUT
Channel.- Parameters:
value
- the next value
-
getMaxStopTimeoutChannel
Gets the Channel forBatteryInverterKacoBlueplanetGridsave.ChannelId.MAX_STOP_TIMEOUT
.- Returns:
- the Channel
-
getMaxStopTimeout
- Returns:
- the Channel
Value
-
_setMaxStopTimeout
default void _setMaxStopTimeout(boolean value) Internal method to set the 'nextValue' onBatteryInverterKacoBlueplanetGridsave.ChannelId.MAX_STOP_TIMEOUT
Channel.- Parameters:
value
- the next value
-
getRequestedStateChannel
default WriteChannel<KacoSunSpecModel.S64201.S64201RequestedState> getRequestedStateChannel() throws OpenemsExceptionGets the Channel for KacoSunSpecModel.S64201.REQUESTED_STATE.- Returns:
- the Channel
- Throws:
OpenemsException
- on error
-
setRequestedState
default void setRequestedState(KacoSunSpecModel.S64201.S64201RequestedState value) throws OpenemsError.OpenemsNamedException Writes the value to the KacoSunSpecModel.S64201.REQUESTED_STATE Register.- Parameters:
value
- the next value- Throws:
OpenemsError.OpenemsNamedException
- on error
-
getInverterCurrentStateFaultChannel
Gets the Channel for ChannelId.INVERTER_CURRENT_STATE_FAULT.- Returns:
- the Channel
-
_setInverterCurrentStateFault
default void _setInverterCurrentStateFault(boolean value) Writes the value to the ChannelId.INVERTER_CURRENT_STATE_FAULT.- Parameters:
value
- the next value
-
getRunFailedChannel
Gets the Channel for ChannelId.RUN_FAILED.- Returns:
- the Channel
-
_setRunFailed
default void _setRunFailed(boolean value) Writes the value to the ChannelId.RUN_FAILED.- Parameters:
value
- the next value
-
getGridDisconnectionChannel
Gets the Channel for ChannelId.GRID_DISCONNECTION.- Returns:
- the Channel
-
_setGridDisconnection
default void _setGridDisconnection(boolean value) Writes the value to the ChannelId.GRID_DISCONNECTION.- Parameters:
value
- the next value
-
isRunning
boolean isRunning()Checks if the system is in a running state. This method retrieves the system's global state and determines whether the system is in a running state.- Returns:
- true if the system is in a running state, false otherwise.
-
isShutdown
boolean isShutdown()Checks if the system is in a stop state. This method retrieves the system's global state and determines whether the system is in a stop state.- Returns:
- true if the system is in a stop state, false otherwise.
-
hasFailure
boolean hasFailure()Checks if the system is in a fault state. This method retrieves the system's global state and determines whether the system is in a fault state.- Returns:
- true if the system is in a fault state, false otherwise.
-