modbus_set_float(3)

modbus_set_float3

Set a float value from 2 registers

Usage

void modbus_set_float(float f, uint16_t *dest);

Warning, this function is deprecated since libmodbus v3.2.0 and has been replaced by modbus_set_float_dcba().

Overview

The modbus_set_float() function shall set a float to 4 bytes in Modbus format (ABCD). The dest array must be pointer on two 16 bits values to be able to store the full result of the conversion.

Return value

There is no return values.

Releases

6 releases since Debian 7 (Wheezy); the text changed 5 times.

  1. 7
  2. 8
  3. 9
  4. 10
  5. 11
  6. 12

Authors

The libmodbus documentation was written by Stéphane Raimbault <[email protected]>

From libmodbus-dev 3.1.6-2.1 in Debian 12 (Bookworm). Parsed by carta from the page's man source.