dm_modbus_create Interface

public interface dm_modbus_create

Generic function to create Modbus RTU or TCP context.

Calls

interface~~dm_modbus_create~~CallsGraph interface~dm_modbus_create dm_modbus_create proc~dm_modbus_create_rtu dm_modbus_create_rtu interface~dm_modbus_create->proc~dm_modbus_create_rtu proc~dm_modbus_create_tcp dm_modbus_create_tcp interface~dm_modbus_create->proc~dm_modbus_create_tcp 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 modbus_new_tcp modbus_new_tcp proc~dm_modbus_create_tcp->modbus_new_tcp

Module Procedures

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

Creates a new Modbus RTU context.

Read more…

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

public function dm_modbus_create_tcp(modbus, address, port) result(rc)

Creates a new Modbus TCP context.

Read more…

Arguments

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

Modbus TCP type.

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

IPv4 address.

integer, intent(in) :: port

Port number.

Return Value integer