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