add comments to the field package
This commit is contained in:
@@ -19,6 +19,9 @@ public class BooleanRegister extends ModbusRegister{
|
||||
updateMapOfRegisters(label, address); //add the address to the map
|
||||
}
|
||||
@Override
|
||||
/**
|
||||
* function to read a boolean datapoint from the modbus register
|
||||
*/
|
||||
public void read() {
|
||||
if(bdp.isOutput()){
|
||||
return; //if it is an output datapoint, it is not read
|
||||
@@ -27,6 +30,9 @@ public class BooleanRegister extends ModbusRegister{
|
||||
}
|
||||
|
||||
@Override
|
||||
/**
|
||||
* function to write a boolean datapoint on the modbus register
|
||||
*/
|
||||
public void write(DataPoint dp) {
|
||||
bdp = (BooleanDataPoint) dp; //make the empty datapoint to the desired datapoint, which is to be written on the address
|
||||
value = bdp.getValue(); //store the value of the datapoint
|
||||
|
||||
Reference in New Issue
Block a user