dm_modbus_get_slave Function

public function dm_modbus_get_slave(modbus, slave) result(rc)

Gets current slave number in the Modbus context.

The function returns the following error codes:

  • E_MODBUS if getting the slave 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(out) :: slave

Device id.

Return Value integer


Calls

proc~~dm_modbus_get_slave~~CallsGraph proc~dm_modbus_get_slave dm_modbus_get_slave modbus_get_slave modbus_get_slave proc~dm_modbus_get_slave->modbus_get_slave