dm_modbus_create_rtu Function

public function dm_modbus_create_rtu(modbus, path, baud_rate, byte_size, parity, stop_bits) result(rc)

Uses

  • proc~~dm_modbus_create_rtu~~UsesGraph proc~dm_modbus_create_rtu dm_modbus_create_rtu module~dm_tty dm_tty proc~dm_modbus_create_rtu->module~dm_tty iso_c_binding iso_c_binding module~dm_tty->iso_c_binding module~dm_error dm_error module~dm_tty->module~dm_error module~dm_file dm_file module~dm_tty->module~dm_file module~dm_kind dm_kind module~dm_tty->module~dm_kind module~dm_string dm_string module~dm_tty->module~dm_string module~dm_error->module~dm_kind module~dm_ascii dm_ascii module~dm_error->module~dm_ascii module~dm_file->module~dm_error module~dm_file->module~dm_kind iso_fortran_env iso_fortran_env module~dm_kind->iso_fortran_env module~dm_string->module~dm_error module~dm_string->module~dm_kind

Creates a new Modbus RTU context.

The function returns the following error codes:

  • E_INVALID if a given argument is invalid.
  • E_MODBUS if no Modbus context could be created.

Arguments

Type IntentOptional Attributes Name
type(modbus_rtu_type), intent(out) :: modbus

Modbus RTU type.

character(len=*), intent(in) :: path

Device path.

integer, intent(in) :: baud_rate

Baud rate enumerator (TTY_B*).

integer, intent(in) :: byte_size

Byte size enumerator (TTY_BYTE_SIZE*).

integer, intent(in) :: parity

Parity enumerator (TTY_PARITY_*).

integer, intent(in) :: stop_bits

Stop bits enumerator (TTY_STOP_BITS*).

Return Value integer


Calls

proc~~dm_modbus_create_rtu~~CallsGraph proc~dm_modbus_create_rtu dm_modbus_create_rtu modbus_new_rtu modbus_new_rtu proc~dm_modbus_create_rtu->modbus_new_rtu proc~dm_tty_is_valid_baud_rate dm_tty_is_valid_baud_rate proc~dm_modbus_create_rtu->proc~dm_tty_is_valid_baud_rate proc~dm_tty_is_valid_byte_size dm_tty_is_valid_byte_size proc~dm_modbus_create_rtu->proc~dm_tty_is_valid_byte_size proc~dm_tty_is_valid_parity dm_tty_is_valid_parity proc~dm_modbus_create_rtu->proc~dm_tty_is_valid_parity proc~dm_tty_is_valid_stop_bits dm_tty_is_valid_stop_bits proc~dm_modbus_create_rtu->proc~dm_tty_is_valid_stop_bits

Called by

proc~~dm_modbus_create_rtu~~CalledByGraph proc~dm_modbus_create_rtu dm_modbus_create_rtu interface~dm_modbus_create dm_modbus_create interface~dm_modbus_create->proc~dm_modbus_create_rtu