Class ModbusSlaveNatureTable.Builder
java.lang.Object
io.openems.edge.common.modbusslave.ModbusSlaveNatureTable.Builder
- Enclosing class:
- ModbusSlaveNatureTable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
channel
(int offset, ChannelId channelId, ModbusType type) Add a Channel to theModbusSlaveNatureTable.Builder
.<T extends OpenemsComponent>
ModbusSlaveNatureTable.BuildercycleValue
(int offset, String name, Unit unit, String valueDescription, ModbusType type, Function<T, Object> function) Add a CycleValue to theModbusSlaveNatureTable.Builder
.Add a Float 32 value to theModbusSlaveNatureTable
ModbusSlaveNatureTable.Builder
.float32Reserved
(int offset) Add a Float 32 Reserved value to theModbusSlaveNatureTable
ModbusSlaveNatureTable.Builder
.Add a Float 64 value to theModbusSlaveNatureTable
ModbusSlaveNatureTable.Builder
.float64Reserved
(int offset) Add a Float 64 Reserved value to theModbusSlaveNatureTable
ModbusSlaveNatureTable.Builder
.Add a String 16 value to theModbusSlaveNatureTable
ModbusSlaveNatureTable.Builder
.string16Reserved
(int offset) Add a String 16 Reserved value to theModbusSlaveNatureTable
ModbusSlaveNatureTable.Builder
.Add a Unsigned Int 16 value to theModbusSlaveNatureTable
ModbusSlaveNatureTable.Builder
.uint16Hash
(int offset, String text) Add a Unsigned Int 16 Hash value to theModbusSlaveNatureTable
ModbusSlaveNatureTable.Builder
.uint16Reserved
(int offset) Add a Unsigned Int 16 Reserved value to theModbusSlaveNatureTable
ModbusSlaveNatureTable.Builder
.uint32Reserved
(int offset) Add a Unsigned Int 32 Reserved value to theModbusSlaveNatureTable
ModbusSlaveNatureTable.Builder
.
-
Constructor Details
-
Builder
-
-
Method Details
-
channel
Add a Channel to theModbusSlaveNatureTable.Builder
.- Parameters:
offset
- the register address offsetchannelId
- theChannelId
type
- theModbusType
- Returns:
- myself
-
cycleValue
public <T extends OpenemsComponent> ModbusSlaveNatureTable.Builder cycleValue(int offset, String name, Unit unit, String valueDescription, ModbusType type, Function<T, Object> function) Add a CycleValue to theModbusSlaveNatureTable.Builder
.A
ModbusRecordCycleValue
allows to receive aModbusRecord
via aFunction
. The Function is executed in the 'run()' method of the Modbus-TCP-Api-Controller.- Type Parameters:
T
- the target OpenemsType- Parameters:
offset
- the register address offsetname
- the nameunit
- theUnit
valueDescription
- the value descriptiontype
- theModbusType
function
- theFunction
- Returns:
- myself
-
uint16
Add a Unsigned Int 16 value to theModbusSlaveNatureTable
ModbusSlaveNatureTable.Builder
.- Parameters:
offset
- the address offsetname
- the name of the registervalue
- the value- Returns:
- myself
-
uint16Hash
Add a Unsigned Int 16 Hash value to theModbusSlaveNatureTable
ModbusSlaveNatureTable.Builder
.- Parameters:
offset
- the address offsettext
- the description text- Returns:
- myself
-
uint16Reserved
Add a Unsigned Int 16 Reserved value to theModbusSlaveNatureTable
ModbusSlaveNatureTable.Builder
.- Parameters:
offset
- the address offset- Returns:
- myself
-
uint32Reserved
Add a Unsigned Int 32 Reserved value to theModbusSlaveNatureTable
ModbusSlaveNatureTable.Builder
.- Parameters:
offset
- the address offset- Returns:
- myself
-
float32
Add a Float 32 value to theModbusSlaveNatureTable
ModbusSlaveNatureTable.Builder
.- Parameters:
offset
- the address offsetname
- the name of the registervalue
- the value- Returns:
- myself
-
float32Reserved
Add a Float 32 Reserved value to theModbusSlaveNatureTable
ModbusSlaveNatureTable.Builder
.- Parameters:
offset
- the address offset- Returns:
- myself
-
float64
Add a Float 64 value to theModbusSlaveNatureTable
ModbusSlaveNatureTable.Builder
.- Parameters:
offset
- the address offsetname
- the name of the registervalue
- the value- Returns:
- myself
-
float64Reserved
Add a Float 64 Reserved value to theModbusSlaveNatureTable
ModbusSlaveNatureTable.Builder
.- Parameters:
offset
- the address offset- Returns:
- myself
-
string16
Add a String 16 value to theModbusSlaveNatureTable
ModbusSlaveNatureTable.Builder
.- Parameters:
offset
- the address offsetname
- the name of the registervalue
- the value- Returns:
- myself
-
string16Reserved
Add a String 16 Reserved value to theModbusSlaveNatureTable
ModbusSlaveNatureTable.Builder
.- Parameters:
offset
- the address offset- Returns:
- myself
-
build
-