Package io.openems.edge.meter.socomec
Class AbstractSocomecMeter
java.lang.Object
io.openems.edge.common.component.AbstractOpenemsComponent
io.openems.edge.bridge.modbus.api.AbstractOpenemsModbusComponent
io.openems.edge.meter.socomec.AbstractSocomecMeter
- All Implemented Interfaces:
ModbusComponent
,OpenemsComponent
,ModbusSlave
,ElectricityMeter
,SocomecMeter
- Direct Known Subclasses:
MeterSocomecSinglephaseImpl
,MeterSocomecThreephaseImpl
public abstract class AbstractSocomecMeter
extends AbstractOpenemsModbusComponent
implements SocomecMeter, ElectricityMeter, OpenemsComponent, ModbusSlave
-
Nested Class Summary
Nested classes/interfaces inherited from class io.openems.edge.bridge.modbus.api.AbstractOpenemsModbusComponent
AbstractOpenemsModbusComponent.BitConverter, AbstractOpenemsModbusComponent.ChannelMapper<ELEMENT extends ModbusElement>
Nested classes/interfaces inherited from interface io.openems.edge.meter.api.ElectricityMeter
ElectricityMeter.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
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractSocomecMeter
(ChannelId[] firstInitialChannelIds, ChannelId[]... furtherInitialChannelIds) -
Method Summary
Modifier and TypeMethodDescriptionprotected final ModbusProtocol
Defines the Modbus protocol.protected abstract void
Applies the modbus protocol for Socomec Countis E14.protected abstract void
Applies the modbus protocol for Socomec Countis E23, E24, E27 and E28.protected abstract void
Applies the modbus protocol for Socomec Countis E34, E44.protected abstract void
Applies the modbus protocol for Socomec Diris A10.protected abstract void
Applies the modbus protocol for Socomec Diris A14.protected abstract void
Applies the modbus protocol for Socomec Diris B30.protected final void
Methods inherited from class io.openems.edge.bridge.modbus.api.AbstractOpenemsModbusComponent
activate, activate, activate, deactivate, getBridgeModbus, getModbusProtocol, getUnitId, m, m, m, m, m, m, modified, modified, retryModbusCommunication, setModbus, 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.ElectricityMeter
_setActiveConsumptionEnergy, _setActiveConsumptionEnergy, _setActiveConsumptionEnergyL1, _setActiveConsumptionEnergyL1, _setActiveConsumptionEnergyL2, _setActiveConsumptionEnergyL2, _setActiveConsumptionEnergyL3, _setActiveConsumptionEnergyL3, _setActivePower, _setActivePower, _setActivePowerL1, _setActivePowerL1, _setActivePowerL2, _setActivePowerL2, _setActivePowerL3, _setActivePowerL3, _setActiveProductionEnergy, _setActiveProductionEnergy, _setActiveProductionEnergyL1, _setActiveProductionEnergyL1, _setActiveProductionEnergyL2, _setActiveProductionEnergyL2, _setActiveProductionEnergyL3, _setActiveProductionEnergyL3, _setCurrent, _setCurrent, _setCurrentL1, _setCurrentL1, _setCurrentL2, _setCurrentL2, _setCurrentL3, _setCurrentL3, _setFrequency, _setFrequency, _setReactivePower, _setReactivePower, _setReactivePowerL1, _setReactivePowerL1, _setReactivePowerL2, _setReactivePowerL2, _setReactivePowerL3, _setReactivePowerL3, _setVoltage, _setVoltage, _setVoltageL1, _setVoltageL1, _setVoltageL2, _setVoltageL2, _setVoltageL3, _setVoltageL3, getActiveConsumptionEnergy, getActiveConsumptionEnergyChannel, getActiveConsumptionEnergyL1, getActiveConsumptionEnergyL1Channel, getActiveConsumptionEnergyL2, getActiveConsumptionEnergyL2Channel, getActiveConsumptionEnergyL3, getActiveConsumptionEnergyL3Channel, getActivePower, getActivePowerChannel, getActivePowerL1, getActivePowerL1Channel, getActivePowerL2, getActivePowerL2Channel, getActivePowerL3, getActivePowerL3Channel, getActiveProductionEnergy, getActiveProductionEnergyChannel, getActiveProductionEnergyL1, getActiveProductionEnergyL1Channel, getActiveProductionEnergyL2, getActiveProductionEnergyL2Channel, getActiveProductionEnergyL3, getActiveProductionEnergyL3Channel, getCurrent, getCurrentChannel, getCurrentL1, getCurrentL1Channel, getCurrentL2, getCurrentL2Channel, getCurrentL3, getCurrentL3Channel, getFrequency, getFrequencyChannel, getMeterType, getReactivePower, getReactivePowerChannel, getReactivePowerL1, getReactivePowerL1Channel, getReactivePowerL2, getReactivePowerL2Channel, getReactivePowerL3, getReactivePowerL3Channel, getVoltage, getVoltageChannel, getVoltageL1, getVoltageL1Channel, getVoltageL2, getVoltageL2Channel, getVoltageL3, getVoltageL3Channel, isManaged
Methods inherited from interface io.openems.edge.bridge.modbus.api.ModbusComponent
_setModbusCommunicationFailed, getModbusCommunicationFailed, getModbusCommunicationFailedChannel
Methods inherited from interface io.openems.edge.common.modbusslave.ModbusSlave
getModbusSlaveTable
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
-
Field Details
-
modbusProtocol
-
-
Constructor Details
-
AbstractSocomecMeter
protected AbstractSocomecMeter(ChannelId[] firstInitialChannelIds, ChannelId[]... furtherInitialChannelIds) throws OpenemsException - Throws:
OpenemsException
-
-
Method Details
-
defineModbusProtocol
Description copied from class:AbstractOpenemsModbusComponent
Defines the Modbus protocol.- Specified by:
defineModbusProtocol
in classAbstractOpenemsModbusComponent
- Returns:
- the ModbusProtocol
-
identifiedCountisE23_E24_E27_E28
Applies the modbus protocol for Socomec Countis E23, E24, E27 and E28. All are identical.- Throws:
OpenemsException
- on error
-
identifiedCountisE34_E44
Applies the modbus protocol for Socomec Countis E34, E44.- Throws:
OpenemsException
- on error
-
identifiedDirisA10
Applies the modbus protocol for Socomec Diris A10.- Throws:
OpenemsException
- on error
-
identifiedDirisA14
Applies the modbus protocol for Socomec Diris A14.- Throws:
OpenemsException
- on error
-
identifiedDirisB30
Applies the modbus protocol for Socomec Diris B30.- Throws:
OpenemsException
- on error
-
identifiedCountisE14
Applies the modbus protocol for Socomec Countis E14.- Throws:
OpenemsException
- on error
-
identifySocomecMeter
protected final void identifySocomecMeter()
-