Class SocomecMeterThreephaseImpl
- java.lang.Object
-
- io.openems.edge.common.component.AbstractOpenemsComponent
-
- io.openems.edge.bridge.modbus.api.AbstractOpenemsModbusComponent
-
- io.openems.edge.meter.socomec.AbstractSocomecMeter
-
- io.openems.edge.meter.socomec.threephase.SocomecMeterThreephaseImpl
-
- All Implemented Interfaces:
ModbusComponent
,OpenemsComponent
,ModbusSlave
,AsymmetricMeter
,SymmetricMeter
,SocomecMeter
,SocomecMeterThreephase
public class SocomecMeterThreephaseImpl extends AbstractSocomecMeter implements SocomecMeterThreephase, SocomecMeter, SymmetricMeter, AsymmetricMeter, ModbusComponent, OpenemsComponent, ModbusSlave
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.openems.edge.bridge.modbus.api.AbstractOpenemsModbusComponent
AbstractOpenemsModbusComponent.BitConverter, AbstractOpenemsModbusComponent.ChannelMapper<T extends AbstractModbusElement<?>>
-
Nested classes/interfaces inherited from interface io.openems.edge.meter.api.AsymmetricMeter
AsymmetricMeter.ChannelId
-
Nested classes/interfaces inherited from interface io.openems.edge.bridge.modbus.api.ModbusComponent
ModbusComponent.ChannelId
-
Nested classes/interfaces inherited from interface io.openems.edge.common.component.OpenemsComponent
OpenemsComponent.ChannelId
-
Nested classes/interfaces inherited from interface io.openems.edge.meter.socomec.SocomecMeter
SocomecMeter.ChannelId
-
Nested classes/interfaces inherited from interface io.openems.edge.meter.socomec.threephase.SocomecMeterThreephase
SocomecMeterThreephase.ChannelId
-
Nested classes/interfaces inherited from interface io.openems.edge.meter.api.SymmetricMeter
SymmetricMeter.ChannelId
-
-
Field Summary
-
Fields inherited from class io.openems.edge.meter.socomec.AbstractSocomecMeter
modbusProtocol
-
Fields inherited from interface io.openems.edge.meter.api.AsymmetricMeter
POWER_DOC_TEXT
-
-
Constructor Summary
Constructors Constructor Description SocomecMeterThreephaseImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
deactivate()
Handles @Deactivate of implementations.java.lang.String
debugLog()
Gets some output that is suitable for a continuous Debug log.MeterType
getMeterType()
Gets the type of this Meter.ModbusSlaveTable
getModbusSlaveTable(AccessMode accessMode)
Gets the Modbus-Slave-Table for this OpenEMS-Component.protected void
identifiedCountisE14()
Applies the modbus protocol for Socomec Countis E14.protected void
identifiedCountisE23_E24_E27_E28()
Applies the modbus protocol for Socomec Countis E23, E24, E27 and E28.protected void
identifiedCountisE34_E44()
Applies the modbus protocol for Socomec Countis E34, E44.protected void
identifiedDirisA10()
Applies the modbus protocol for Socomec Diris A10.protected void
identifiedDirisA14()
Applies the modbus protocol for Socomec Diris A14.protected void
identifiedDirisB30()
Applies the modbus protocol for Socomec Diris B30.protected void
setModbus(BridgeModbus modbus)
Set the Modbus bridge.-
Methods inherited from class io.openems.edge.meter.socomec.AbstractSocomecMeter
defineModbusProtocol, identifySocomecMeter
-
Methods inherited from class io.openems.edge.bridge.modbus.api.AbstractOpenemsModbusComponent
activate, activate, activate, getBridgeModbus, getModbusProtocol, getUnitId, m, m, m, m, m, m, modified, modified, unsetModbus
-
Methods inherited from class io.openems.edge.common.component.AbstractOpenemsComponent
_channel, addChannel, addChannels, addChannels, alias, channels, getComponentContext, id, isEnabled, logDebug, logError, logInfo, logWarn, removeChannel
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.openems.edge.meter.api.AsymmetricMeter
_setActiveConsumptionEnergyL1, _setActiveConsumptionEnergyL1, _setActiveConsumptionEnergyL2, _setActiveConsumptionEnergyL2, _setActiveConsumptionEnergyL3, _setActiveConsumptionEnergyL3, _setActivePowerL1, _setActivePowerL1, _setActivePowerL2, _setActivePowerL2, _setActivePowerL3, _setActivePowerL3, _setActiveProductionEnergyL1, _setActiveProductionEnergyL1, _setActiveProductionEnergyL2, _setActiveProductionEnergyL2, _setActiveProductionEnergyL3, _setActiveProductionEnergyL3, _setCurrentL1, _setCurrentL1, _setCurrentL2, _setCurrentL2, _setCurrentL3, _setCurrentL3, _setReactivePowerL1, _setReactivePowerL1, _setReactivePowerL2, _setReactivePowerL2, _setReactivePowerL3, _setReactivePowerL3, _setVoltageL1, _setVoltageL1, _setVoltageL2, _setVoltageL2, _setVoltageL3, _setVoltageL3, getActiveConsumptionEnergyL1, getActiveConsumptionEnergyL1Channel, getActiveConsumptionEnergyL2, getActiveConsumptionEnergyL2Channel, getActiveConsumptionEnergyL3, getActiveConsumptionEnergyL3Channel, getActivePowerL1, getActivePowerL1Channel, getActivePowerL2, getActivePowerL2Channel, getActivePowerL3, getActivePowerL3Channel, getActiveProductionEnergyL1, getActiveProductionEnergyL1Channel, getActiveProductionEnergyL2, getActiveProductionEnergyL2Channel, getActiveProductionEnergyL3, getActiveProductionEnergyL3Channel, getCurrentL1, getCurrentL1Channel, getCurrentL2, getCurrentL2Channel, getCurrentL3, getCurrentL3Channel, getReactivePowerL1, getReactivePowerL1Channel, getReactivePowerL2, getReactivePowerL2Channel, getReactivePowerL3, getReactivePowerL3Channel, getVoltageL1, getVoltageL1Channel, getVoltageL2, getVoltageL2Channel, getVoltageL3, getVoltageL3Channel
-
Methods inherited from interface io.openems.edge.bridge.modbus.api.ModbusComponent
_setModbusCommunicationFailed, getModbusCommunicationFailed, getModbusCommunicationFailedChannel
-
Methods inherited from interface io.openems.edge.common.component.OpenemsComponent
_channel, _getChannelAs, alias, channel, channel, channels, getComponentContext, getState, getStateChannel, hasFaults, id, isEnabled, serviceFactoryPid, servicePid
-
Methods inherited from interface io.openems.edge.meter.api.SymmetricMeter
_setActiveConsumptionEnergy, _setActiveConsumptionEnergy, _setActivePower, _setActivePower, _setActiveProductionEnergy, _setActiveProductionEnergy, _setCurrent, _setCurrent, _setFrequency, _setFrequency, _setMaxActivePower, _setMaxActivePower, _setMinActivePower, _setMinActivePower, _setReactivePower, _setReactivePower, _setVoltage, _setVoltage, getActiveConsumptionEnergy, getActiveConsumptionEnergyChannel, getActivePower, getActivePowerChannel, getActiveProductionEnergy, getActiveProductionEnergyChannel, getCurrent, getCurrentChannel, getFrequency, getFrequencyChannel, getMaxActivePower, getMaxActivePowerChannel, getMinActivePower, getMinActivePowerChannel, getReactivePower, getReactivePowerChannel, getVoltage, getVoltageChannel
-
-
-
-
Constructor Detail
-
SocomecMeterThreephaseImpl
public SocomecMeterThreephaseImpl() throws OpenemsException
- Throws:
OpenemsException
-
-
Method Detail
-
setModbus
protected void setModbus(BridgeModbus modbus)
Description copied from class:AbstractOpenemsModbusComponent
Set the Modbus bridge. Should be called by @Reference- Overrides:
setModbus
in classAbstractOpenemsModbusComponent
- Parameters:
modbus
- the BridgeModbus Reference
-
deactivate
protected void deactivate()
Description copied from class:AbstractOpenemsComponent
Handles @Deactivate of implementations. Prints log output.- Overrides:
deactivate
in classAbstractOpenemsModbusComponent
-
getMeterType
public MeterType getMeterType()
Description copied from interface:SymmetricMeter
Gets the type of this Meter.- Specified by:
getMeterType
in interfaceSymmetricMeter
- Returns:
- the MeterType
-
identifiedCountisE23_E24_E27_E28
protected void identifiedCountisE23_E24_E27_E28() throws OpenemsException
Description copied from class:AbstractSocomecMeter
Applies the modbus protocol for Socomec Countis E23, E24, E27 and E28. All are identical.- Specified by:
identifiedCountisE23_E24_E27_E28
in classAbstractSocomecMeter
- Throws:
OpenemsException
- on error
-
identifiedCountisE34_E44
protected void identifiedCountisE34_E44() throws OpenemsException
Description copied from class:AbstractSocomecMeter
Applies the modbus protocol for Socomec Countis E34, E44.- Specified by:
identifiedCountisE34_E44
in classAbstractSocomecMeter
- Throws:
OpenemsException
- on error
-
identifiedDirisA14
protected void identifiedDirisA14() throws OpenemsException
Description copied from class:AbstractSocomecMeter
Applies the modbus protocol for Socomec Diris A14.- Specified by:
identifiedDirisA14
in classAbstractSocomecMeter
- Throws:
OpenemsException
- on error
-
identifiedDirisA10
protected void identifiedDirisA10() throws OpenemsException
Description copied from class:AbstractSocomecMeter
Applies the modbus protocol for Socomec Diris A10.- Specified by:
identifiedDirisA10
in classAbstractSocomecMeter
- Throws:
OpenemsException
- on error
-
identifiedDirisB30
protected void identifiedDirisB30() throws OpenemsException
Description copied from class:AbstractSocomecMeter
Applies the modbus protocol for Socomec Diris B30.- Specified by:
identifiedDirisB30
in classAbstractSocomecMeter
- Throws:
OpenemsException
- on error
-
identifiedCountisE14
protected void identifiedCountisE14() throws OpenemsException
Description copied from class:AbstractSocomecMeter
Applies the modbus protocol for Socomec Countis E14.- Specified by:
identifiedCountisE14
in classAbstractSocomecMeter
- Throws:
OpenemsException
- on error
-
debugLog
public java.lang.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 interfaceOpenemsComponent
- Returns:
- the debug log output
-
getModbusSlaveTable
public ModbusSlaveTable getModbusSlaveTable(AccessMode accessMode)
Description copied from interface:ModbusSlave
Gets the Modbus-Slave-Table for this OpenEMS-Component.- Specified by:
getModbusSlaveTable
in interfaceModbusSlave
- Parameters:
accessMode
- filters the Modbus-Records that should be shown- Returns:
- the Modbus-Slave-Table
-
-