1MODBUS_GET_FLOAT_ABC(3)        libmodbus Manual        MODBUS_GET_FLOAT_ABC(3)
2
3
4

NAME

6       modbus_get_float_abcd - get a float value from 2 registers in ABCD byte
7       order
8

SYNOPSIS

10       float modbus_get_float_abcd(const uint16_t *src);
11

DESCRIPTION

13       The modbus_get_float_abcd() function shall get a float from 4 bytes in
14       usual Modbus format. The src array must be a pointer on two 16 bits
15       values, for example, if the first word is set to 0x0020 and the second
16       to 0xF147, the float value will be read as 123456.0.
17

RETURN VALUE

19       The function shall return a float.
20

SEE ALSO

22       modbus_set_float_abcd(3) modbus_get_float_badc(3)
23       modbus_get_float_cdab(3) modbus_get_float_dcba(3)
24

AUTHORS

26       The libmodbus documentation was written by Stéphane Raimbault
27       <stephane.raimbault@gmail.com>
28
29
30
31libmodbus v3.1.6                  07/21/2022           MODBUS_GET_FLOAT_ABC(3)
Impressum