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.Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(modbus_type), | intent(inout) | :: | modbus |
Modbus RTU/TCP type. |
||
integer, | intent(out) | :: | slave |
Device id. |