dm_modbus_create_tcp Function

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

Creates a new Modbus TCP context.

The function returns the following error codes:

  • E_INVALID if the given arguments are invalid.
  • E_MODBUS if no Modbus context could be created.

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


Calls

proc~~dm_modbus_create_tcp~~CallsGraph proc~dm_modbus_create_tcp dm_modbus_create_tcp modbus_new_tcp modbus_new_tcp proc~dm_modbus_create_tcp->modbus_new_tcp

Called by

proc~~dm_modbus_create_tcp~~CalledByGraph proc~dm_modbus_create_tcp dm_modbus_create_tcp interface~dm_modbus_create dm_modbus_create interface~dm_modbus_create->proc~dm_modbus_create_tcp