public class KmtronicRelayOutput extends AbstractOpenemsModbusComponent implements DigitalOutput, OpenemsComponent, ModbusSlave
AbstractOpenemsModbusComponent.BitConverter, AbstractOpenemsModbusComponent.ChannelMapper<T extends AbstractModbusElement<?>>
DigitalOutput.ChannelId
Modifier and Type | Field and Description |
---|---|
protected org.osgi.service.cm.ConfigurationAdmin |
cm |
Constructor and Description |
---|
KmtronicRelayOutput() |
Modifier and Type | Method and Description |
---|---|
protected void |
deactivate()
Handles @Deactivate of implementations.
|
java.lang.String |
debugLog()
Gets some output that is suitable for a continuous Debug log.
|
protected ModbusProtocol |
defineModbusProtocol()
Defines the Modbus protocol.
|
BooleanWriteChannel[] |
digitalOutputChannels()
Gets all Output Channels.
|
ModbusSlaveTable |
getModbusSlaveTable(AccessMode accessMode)
Gets the Modbus-Slave-Table for this OpenEMS-Component.
|
protected void |
setModbus(BridgeModbus modbus)
Set the Modbus bridge.
|
activate, activate, activate, getBridgeModbus, getModbusProtocol, getUnitId, m, m, m, m, unsetModbus
_channel, addChannel, addChannels, addChannels, alias, channels, getComponentContext, id, isEnabled, logDebug, logError, logInfo, logWarn, modified, removeChannel
protected void setModbus(BridgeModbus modbus)
AbstractOpenemsModbusComponent
setModbus
in class AbstractOpenemsModbusComponent
modbus
- the BridgeModbus Referenceprotected void deactivate()
AbstractOpenemsComponent
deactivate
in class AbstractOpenemsModbusComponent
protected ModbusProtocol defineModbusProtocol() throws OpenemsException
AbstractOpenemsModbusComponent
defineModbusProtocol
in class AbstractOpenemsModbusComponent
OpenemsException
- on errorpublic BooleanWriteChannel[] digitalOutputChannels()
DigitalOutput
digitalOutputChannels
in interface DigitalOutput
public java.lang.String debugLog()
OpenemsComponent
debugLog
in interface OpenemsComponent
public ModbusSlaveTable getModbusSlaveTable(AccessMode accessMode)
ModbusSlave
getModbusSlaveTable
in interface ModbusSlave
accessMode
- filters the Modbus-Records that should be shown