Class StringWordElement
java.lang.Object
io.openems.edge.bridge.modbus.api.element.ModbusElement
io.openems.edge.bridge.modbus.api.element.AbstractModbusElement<StringWordElement,com.ghgande.j2mod.modbus.procimg.Register[],String>
io.openems.edge.bridge.modbus.api.element.ModbusRegisterElement<StringWordElement,String>
io.openems.edge.bridge.modbus.api.element.AbstractMultipleWordsElement<StringWordElement,String>
io.openems.edge.bridge.modbus.api.element.StringWordElement
An StringWordElement represents a String value. Each Register (= 2 bytes)
represents two characters.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.openems.edge.bridge.modbus.api.element.AbstractModbusElement
AbstractModbusElement.FillElementsPriority
-
Field Summary
Fields inherited from class io.openems.edge.bridge.modbus.api.element.AbstractModbusElement
nextWriteValue, type
Fields inherited from class io.openems.edge.bridge.modbus.api.element.ModbusElement
length, startAddress
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
byteBufferToValue
(ByteBuffer buff) protected StringWordElement
self()
Gets an instance of the correct subclass of myself.protected void
valueToByteBuffer
(ByteBuffer buff, String value) Methods inherited from class io.openems.edge.bridge.modbus.api.element.AbstractMultipleWordsElement
getWordOrder, registersToValue, valueToRaw, wordOrder
Methods inherited from class io.openems.edge.bridge.modbus.api.element.ModbusRegisterElement
byteOrder, commonRegistersToValue, getByteOrder, rawToValue, valueToRaw
Methods inherited from class io.openems.edge.bridge.modbus.api.element.AbstractModbusElement
_getFillElementsPriority, deactivate, debug, fillElementsPriority, getNextWriteValueAndReset, invalidate, isDebug, onNextWriteValueReset, onSetNextWrite, onUpdateCallback, setInputValue, setNextWriteValue, setNextWriteValueFromObject, toString
Methods inherited from class io.openems.edge.bridge.modbus.api.element.ModbusElement
getModbusTask, setModbusTask
-
Constructor Details
-
StringWordElement
public StringWordElement(int startAddress, int length)
-
-
Method Details
-
byteBufferToValue
- Specified by:
byteBufferToValue
in classModbusRegisterElement<StringWordElement,
String>
-
self
Description copied from class:AbstractModbusElement
Gets an instance of the correct subclass of myself.- Specified by:
self
in classAbstractModbusElement<StringWordElement,
com.ghgande.j2mod.modbus.procimg.Register[], String> - Returns:
- myself
-
valueToByteBuffer
- Specified by:
valueToByteBuffer
in classModbusRegisterElement<StringWordElement,
String>
-