public class FloatRegister extends ModbusRegister
Constructor and Description |
---|
FloatRegister(java.lang.String label,
boolean isOutPut,
int address,
int range,
int offset)
public constructor of the Float Register
|
Modifier and Type | Method and Description |
---|---|
void |
read()
function to read a datapoint from the modbus register
|
void |
write(DataPoint dp)
function to write datapoint on the modbus register
|
getAddress, getRegisterFromDatapoint, poll, updateMapOfRegisters
public FloatRegister(java.lang.String label, boolean isOutPut, int address, int range, int offset)
label
- label of the datapointisOutPut
- true if it is an output datapointaddress
- modbus address of the datapointrange
- range of the datapoint valueoffset
- offset of the datapoint valuepublic void read()
ModbusRegister
read
in class ModbusRegister
public void write(DataPoint dp)
ModbusRegister
write
in class ModbusRegister
dp
- datapoint to write on the address