Creates a new Modbus RTU context.
The function returns the following error codes:
E_INVALID
if a given argument is invalid.E_MODBUS
if no Modbus context could be created.Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(modbus_rtu_type), | intent(out) | :: | modbus |
Modbus RTU type. |
||
character(len=*), | intent(in) | :: | path |
Device path. |
||
integer, | intent(in) | :: | baud_rate |
Baud rate enumerator ( |
||
integer, | intent(in) | :: | byte_size |
Byte size enumerator ( |
||
integer, | intent(in) | :: | parity |
Parity enumerator ( |
||
integer, | intent(in) | :: | stop_bits |
Stop bits enumerator ( |