dm_modbus_mode Function

public function dm_modbus_mode(modbus) result(mode)

Returns Modbus mode (MODBUS_MODE_NONE, MODBUS_MODE_RTU or MODBUS_MODE_TCP).

Arguments

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

Modbus type.

Return Value integer