Package io.openems.edge.io.kmtronic
Class AbstractKmtronicRelay
java.lang.Object
io.openems.edge.common.component.AbstractOpenemsComponent
io.openems.edge.bridge.modbus.api.AbstractOpenemsModbusComponent
io.openems.edge.io.kmtronic.AbstractKmtronicRelay
- All Implemented Interfaces:
ModbusComponent
,OpenemsComponent
,ModbusSlave
,DigitalOutput
- Direct Known Subclasses:
IoKmtronicRelay4PortImpl
,IoKmtronicRelay8PortImpl
public abstract class AbstractKmtronicRelay
extends AbstractOpenemsModbusComponent
implements DigitalOutput, 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.DigitalOutput
DigitalOutput.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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondebugLog()
Gets some output that is suitable for a continuous Debug log.Gets all Output Channels.protected void
setModbus
(BridgeModbus modbus) Set the Modbus bridge.Methods inherited from class io.openems.edge.bridge.modbus.api.AbstractOpenemsModbusComponent
activate, activate, activate, deactivate, defineModbusProtocol, 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.bridge.modbus.api.ModbusComponent
_setModbusCommunicationFailed, getModbusCommunicationFailed, getModbusCommunicationFailedChannel, retryModbusCommunication
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, getComponentContext, getState, getStateChannel, hasFaults, id, isEnabled, serviceFactoryPid, servicePid
-
Constructor Details
-
AbstractKmtronicRelay
-
-
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
-
digitalOutputChannels
Description copied from interface:DigitalOutput
Gets all Output Channels.- Specified by:
digitalOutputChannels
in interfaceDigitalOutput
- Returns:
- an array of Channels
-
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
-