dm_modbus_set_slave Function

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

Sets slave number in the Modbus context.

The function returns the following error codes:

  • E_MODBUS if setting 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(in) :: slave

Device id.

Return Value integer


Calls

proc~~dm_modbus_set_slave~~CallsGraph proc~dm_modbus_set_slave dm_modbus_set_slave modbus_set_slave modbus_set_slave proc~dm_modbus_set_slave->modbus_set_slave