dm_modbus_connect Function

public function dm_modbus_connect(modbus) result(rc)

Connects to Modbus RTU/TCP device.

The function returns the following error codes:

  • E_IO if no connection could be established.
  • E_NULL if the modbus context is not associated.

Arguments

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

Modbus RTU/TCP type.

Return Value integer


Calls

proc~~dm_modbus_connect~~CallsGraph proc~dm_modbus_connect dm_modbus_connect modbus_connect modbus_connect proc~dm_modbus_connect->modbus_connect