Class ModbusRecord
java.lang.Object
io.openems.edge.common.modbusslave.ModbusRecord
- Direct Known Subclasses:
ModbusRecordChannel
,ModbusRecordConstant
,ModbusRecordCycleValue
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract AccessMode
Gets theAccessMode
.abstract String
getName()
Gets the name.int
getType()
getUnit()
abstract byte[]
getValue
(OpenemsComponent component) Gets the value.abstract String
Gets the value description.void
setComponentId
(String componentId) abstract void
writeValue
(int index, byte byte1, byte byte2) Sets the write value.
-
Constructor Details
-
ModbusRecord
-
-
Method Details
-
getOffset
public int getOffset() -
getType
-
setComponentId
-
getComponentId
-
getName
Gets the name.- Returns:
- the name
-
getValueDescription
Gets the value description.- Returns:
- the value description
-
getUnit
-
getValue
Gets the value.- Parameters:
component
- the actualOpenemsComponent
- Returns:
- the value as byte array
-
writeValue
public abstract void writeValue(int index, byte byte1, byte byte2) Sets the write value.- Parameters:
index
- the buffer indexbyte1
- the first bytebyte2
- the second byte
-
getAccessMode
Gets theAccessMode
.- Returns:
- the
AccessMode
-