// config.setProperty("parity", String.valueOf(SerialPort.PARITY_EVEN));
// config.setProperty("stop-bits", String.valueOf(SerialPort.STOPBITS_1));
ModbusMaster master = ModbusMasterGateway.getInstance();
try {
master.init();
NumericLocator bl = new NumericLocator(1, RegisterRange.HOLDING_REGISTER, 266, DataType.TWO_BYTE_INT_UNSIGNED);
System.out.println(master.getValue(bl));
} catch (ModbusTransportException ex) {
System.out.println(ex.toString());
} catch (ErrorResponseException ex) {