dm_modbus_read_float Function

public function dm_modbus_read_float(modbus, address, value, order) result(rc)

Reads 4-byte real from input or holding register, depending on the address, and returns result in value. If the address is not in input register or holding register range, it is interpreted as a holding register address.

The function returns the following error codes:

  • E_BOUNDS if argument n is larger than size of data.
  • E_INVALID if argument address is invalid.
  • E_MODBUS if reading the registers failed.
  • E_NULL if the Modbus context is not associated.

Arguments

Type IntentOptional Attributes Name
class(modbus_type), intent(inout) :: modbus

Modbus RTU/TCP type.

integer, intent(in) :: address

Address to read from.

real(kind=4), intent(out) :: value

Value read from register.

integer, intent(in) :: order

Byte order.

Return Value integer


Calls

proc~~dm_modbus_read_float~~CallsGraph proc~dm_modbus_read_float dm_modbus_read_float proc~dm_is_error dm_is_error proc~dm_modbus_read_float->proc~dm_is_error proc~dm_modbus_get_float dm_modbus_get_float proc~dm_modbus_read_float->proc~dm_modbus_get_float proc~dm_modbus_read_input_registers dm_modbus_read_input_registers proc~dm_modbus_read_float->proc~dm_modbus_read_input_registers proc~dm_modbus_read_registers dm_modbus_read_registers proc~dm_modbus_read_float->proc~dm_modbus_read_registers modbus_get_float_abcd modbus_get_float_abcd proc~dm_modbus_get_float->modbus_get_float_abcd modbus_get_float_badc modbus_get_float_badc proc~dm_modbus_get_float->modbus_get_float_badc modbus_get_float_cdab modbus_get_float_cdab proc~dm_modbus_get_float->modbus_get_float_cdab modbus_get_float_dcba modbus_get_float_dcba proc~dm_modbus_get_float->modbus_get_float_dcba modbus_read_input_registers modbus_read_input_registers proc~dm_modbus_read_input_registers->modbus_read_input_registers modbus_read_registers modbus_read_registers proc~dm_modbus_read_registers->modbus_read_registers