private void open() throws ModbusIOException {
  if (commPort != null && !commPort.isOpen()) {
    setTimeout(timeout);
    if (!commPort.open()) {
      throw new ModbusIOException(String.format("Cannot open port %s",commPort.getDescriptivePortName()));
    }
  }
}

private void open ( ) throws ModbusIOException { if ( commPort != null && ! commPort . isOpen ( ) ) { setTimeout ( timeout ) ; if ( ! commPort . open ( ) ) { throw new ModbusIOException ( String . format ( "Cannot open port %s" , commPort . getDescriptivePortName ( ) ) ) ; } } }
opens the port if it isn ' t alredy open
