Gets the current Modbus RTU serial mode (RS-232 or RS-485).
The function returns the following error codes:
E_MODBUS if getting the serial mode failed.E_NULL if the Modbus context is not associated.| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(modbus_rtu_type), | intent(inout) | :: | modbus |
Modbus RTU type. |
||
| integer, | intent(out) | :: | mode |
Modbus RTU mode ( |