@ProviderType public interface BridgeModbus extends OpenemsComponent
Modifier and Type | Interface and Description |
---|---|
static class |
BridgeModbus.ChannelId |
Modifier and Type | Method and Description |
---|---|
default void |
_setCycleTimeIsTooShort(boolean value)
Internal method to set the 'nextValue' on
BridgeModbus.ChannelId.CYCLE_TIME_IS_TOO_SHORT Channel. |
default void |
_setExecutionDuration(long value)
Internal method to set the 'nextValue' on
BridgeModbus.ChannelId.EXECUTION_DURATION Channel. |
default void |
_setSlaveCommunicationFailed(boolean value)
Internal method to set the 'nextValue' on
BridgeModbus.ChannelId.SLAVE_COMMUNICATION_FAILED Channel. |
void |
addProtocol(java.lang.String sourceId,
ModbusProtocol protocol)
Adds a Protocol with a source identifier to this Modbus Bridge.
|
default Value<java.lang.Boolean> |
getCycleTimeIsTooShort()
Gets the Cycle-Time-is-too-short State.
|
default StateChannel |
getCycleTimeIsTooShortChannel()
Gets the Channel for
BridgeModbus.ChannelId.CYCLE_TIME_IS_TOO_SHORT . |
default Value<java.lang.Long> |
getExecutionDuration()
Gets the Execution Duration in [ms], see
BridgeModbus.ChannelId.EXECUTION_DURATION . |
default LongReadChannel |
getExecutionDurationChannel()
Gets the Channel for
BridgeModbus.ChannelId.EXECUTION_DURATION . |
default Value<java.lang.Boolean> |
getSlaveCommunicationFailed()
Gets the Slave Communication Failed State.
|
default StateChannel |
getSlaveCommunicationFailedChannel()
Gets the Channel for
BridgeModbus.ChannelId.SLAVE_COMMUNICATION_FAILED . |
void |
removeProtocol(java.lang.String sourceId)
Removes a Protocol from this Modbus Bridge.
|
_channel, _getChannelAs, alias, channel, channel, channels, debugLog, getComponentContext, getModbusSlaveNatureTable, getState, getStateChannel, hasFaults, id, isEnabled, serviceFactoryPid, servicePid, updateConfigurationProperty, updateReferenceFilter
default StateChannel getSlaveCommunicationFailedChannel()
BridgeModbus.ChannelId.SLAVE_COMMUNICATION_FAILED
.default Value<java.lang.Boolean> getSlaveCommunicationFailed()
BridgeModbus.ChannelId.SLAVE_COMMUNICATION_FAILED
.Value
default void _setSlaveCommunicationFailed(boolean value)
BridgeModbus.ChannelId.SLAVE_COMMUNICATION_FAILED
Channel.value
- the next valuedefault StateChannel getCycleTimeIsTooShortChannel()
BridgeModbus.ChannelId.CYCLE_TIME_IS_TOO_SHORT
.default Value<java.lang.Boolean> getCycleTimeIsTooShort()
BridgeModbus.ChannelId.CYCLE_TIME_IS_TOO_SHORT
.Value
default void _setCycleTimeIsTooShort(boolean value)
BridgeModbus.ChannelId.CYCLE_TIME_IS_TOO_SHORT
Channel.value
- the next valuedefault LongReadChannel getExecutionDurationChannel()
BridgeModbus.ChannelId.EXECUTION_DURATION
.default Value<java.lang.Long> getExecutionDuration()
BridgeModbus.ChannelId.EXECUTION_DURATION
.Value
default void _setExecutionDuration(long value)
BridgeModbus.ChannelId.EXECUTION_DURATION
Channel.value
- the next valuevoid addProtocol(java.lang.String sourceId, ModbusProtocol protocol)
sourceId
- the unique source identifierprotocol
- the Modbus Protocolvoid removeProtocol(java.lang.String sourceId)
sourceId
- the unique source identifier