public class BooleanRegister extends ModbusRegister
Constructor and Description |
---|
BooleanRegister(java.lang.String label,
boolean isOutput,
int address)
public constructor of the booleanRegister
|
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 BooleanRegister(java.lang.String label, boolean isOutput, int address)
label
- label of the datapointisOutput
- true if it is an output datapointaddress
- modbus address of the datapointpublic void read()
ModbusRegister
read
in class ModbusRegister
public void write(DataPoint dp)
ModbusRegister
write
in class ModbusRegister
dp
- datapoint to write on the address