public override void writeDouble(string var, double value) { try { var reg = ModbusClient.ConvertDoubleToRegisters(value); this.client.WriteMultipleRegisters(int.Parse(var), reg); //Read 10 Holding Registers from Server, starting with Address 1 } catch (Exception ex) { this.client.Disconnect(); throw ex; } }