Class FeneconProEssImpl

All Implemented Interfaces:
ModbusComponent, OpenemsComponent, ModbusSlave, AsymmetricEss, ManagedAsymmetricEss, ManagedSymmetricEss, SymmetricEss, FeneconProEss, org.osgi.service.event.EventHandler

public class FeneconProEssImpl extends AbstractOpenemsModbusComponent implements FeneconProEss, SymmetricEss, AsymmetricEss, ManagedAsymmetricEss, ManagedSymmetricEss, ModbusComponent, OpenemsComponent, ModbusSlave, org.osgi.service.event.EventHandler
  • Field Details

  • Constructor Details

    • FeneconProEssImpl

      public FeneconProEssImpl()
  • Method Details

    • setModbus

      protected void setModbus(BridgeModbus modbus)
      Description copied from class: AbstractOpenemsModbusComponent
      Set the Modbus bridge. Should be called by @Reference
      Overrides:
      setModbus in class AbstractOpenemsModbusComponent
      Parameters:
      modbus - the BridgeModbus Reference
    • deactivate

      protected void deactivate()
      Description copied from class: AbstractOpenemsComponent
      Handles @Deactivate of implementations. Prints log output.
      Overrides:
      deactivate in class AbstractOpenemsModbusComponent
    • applyPower

      public void applyPower(int activePowerL1, int reactivePowerL1, int activePowerL2, int reactivePowerL2, int activePowerL3, int reactivePowerL3) throws OpenemsError.OpenemsNamedException
      Description copied from interface: ManagedAsymmetricEss
      Apply the calculated Power.
      Specified by:
      applyPower in interface ManagedAsymmetricEss
      Parameters:
      activePowerL1 - the active power set-point for L1
      reactivePowerL1 - the reactive power set-point for L1
      activePowerL2 - the active power set-point for L2
      reactivePowerL2 - the reactive power set-point for L2
      activePowerL3 - the active power set-point for L3
      reactivePowerL3 - the reactive power set-point for L3
      Throws:
      OpenemsError.OpenemsNamedException
    • getModbusBridgeId

      public String getModbusBridgeId()
    • defineModbusProtocol

      protected ModbusProtocol defineModbusProtocol()
      Description copied from class: AbstractOpenemsModbusComponent
      Defines the Modbus protocol.
      Specified by:
      defineModbusProtocol in class AbstractOpenemsModbusComponent
      Returns:
      the ModbusProtocol
    • debugLog

      public String debugLog()
      Description copied from interface: OpenemsComponent
      Gets some output that is suitable for a continuous Debug log. Returns 'null' by default which causes no output.
      Specified by:
      debugLog in interface OpenemsComponent
      Returns:
      the debug log output
    • getPower

      public Power getPower()
      Description copied from interface: ManagedSymmetricEss
      Gets an instance of the 'Power' class, which allows to set limitations to Active and Reactive Power.
      Specified by:
      getPower in interface ManagedSymmetricEss
      Returns:
      the Power instance
    • getPowerPrecision

      public int getPowerPrecision()
      Description copied from interface: ManagedSymmetricEss
      Gets the smallest positive power that can be set (in W, VA or var). Example:
      • FENECON Commercial 40 allows setting of power in 100 W steps. It should return 100.
      • KACO blueplanet gridsave 50 allows setting of power in 0.1 % of 52 VA. It should return 52 (= 52000 * 0.001)
      Specified by:
      getPowerPrecision in interface ManagedSymmetricEss
      Returns:
      the power precision
    • handleEvent

      public void handleEvent(org.osgi.service.event.Event event)
      Specified by:
      handleEvent in interface org.osgi.service.event.EventHandler
    • getModbusSlaveTable

      public ModbusSlaveTable getModbusSlaveTable(AccessMode accessMode)
      Description copied from interface: ModbusSlave
      Gets the Modbus-Slave-Table for this OpenEMS-Component.
      Specified by:
      getModbusSlaveTable in interface ModbusSlave
      Parameters:
      accessMode - filters the Modbus-Records that should be shown
      Returns:
      the Modbus-Slave-Table
    • logInfo

      protected void logInfo(org.slf4j.Logger log, String message)
      Description copied from class: AbstractOpenemsComponent
      Log an info message including the Component ID.
      Overrides:
      logInfo in class AbstractOpenemsComponent
      Parameters:
      log - the Logger instance
      message - the message