Class IoFilipowskiMrAo1Impl
java.lang.Object
io.openems.edge.common.component.AbstractOpenemsComponent
io.openems.edge.bridge.modbus.api.AbstractOpenemsModbusComponent
io.openems.edge.io.filipowski.analog.mr.IoFilipowskiMrAo1Impl
- All Implemented Interfaces:
ModbusComponent
,OpenemsComponent
,ModbusSlave
,AnalogOutput
,AnalogVoltageOutput
,IoFilipowskiMrAo1
public class IoFilipowskiMrAo1Impl
extends AbstractOpenemsModbusComponent
implements IoFilipowskiMrAo1, AnalogOutput, AnalogVoltageOutput, ModbusComponent, 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.io.api.AnalogOutput
AnalogOutput.ChannelId, AnalogOutput.Range
Nested classes/interfaces inherited from interface io.openems.edge.io.api.AnalogVoltageOutput
AnalogVoltageOutput.ChannelId
Nested classes/interfaces inherited from interface io.openems.edge.io.filipowski.analog.mr.IoFilipowskiMrAo1
IoFilipowskiMrAo1.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
-
Field Summary
Fields inherited from interface io.openems.edge.io.api.AnalogOutput
SET_OUTPUT_ACCURACY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Handles @Deactivate of implementations.debugLog()
Gets some output that is suitable for a continuous Debug log.protected ModbusProtocol
Defines the Modbus protocol.getModbusSlaveTable
(AccessMode accessMode) Gets the Modbus-Slave-Table for this OpenEMS-Component.range()
Range that can be used, limited by the analog IO hardware.protected void
setModbus
(BridgeModbus modbus) Set the Modbus bridge.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, retryModbusCommunication, 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.io.api.AnalogOutput
getDebugSetOutputPercent, getDebugSetOutputPercentChannel, getSetOutputPercentAsFactor, getSetOutputPercentChannel, setOutputPercent
Methods inherited from interface io.openems.edge.io.api.AnalogVoltageOutput
getDebugSetOutputVoltage, getDebugSetOutputVoltageChannel, getSetOutputVoltageChannel, setOutputChannel, setOutputVoltage
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, getComponentContext, getState, getStateChannel, hasFaults, id, isEnabled, serviceFactoryPid, servicePid
-
Constructor Details
-
IoFilipowskiMrAo1Impl
public IoFilipowskiMrAo1Impl()
-
-
Method Details
-
setModbus
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
-
defineModbusProtocol
Description copied from class:AbstractOpenemsModbusComponent
Defines the Modbus protocol.- Specified by:
defineModbusProtocol
in classAbstractOpenemsModbusComponent
- Returns:
- the ModbusProtocol
-
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
-
range
Description copied from interface:AnalogOutput
Range that can be used, limited by the analog IO hardware.E.g. Hardware can be set from 0 to 10V with 0.1V steps.
- Specified by:
range
in interfaceAnalogOutput
- Returns:
- maximum range.
-
getModbusSlaveTable
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
-