Creates a new Modbus TCP context.
The function returns the following error codes:
E_INVALID if the given arguments are invalid.E_MODBUS if no Modbus context could be created.| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(modbus_tcp_type), | intent(out) | :: | modbus |
Modbus TCP type. |
||
| character(len=*), | intent(in) | :: | address |
IPv4 address. |
||
| integer, | intent(in) | :: | port |
Port number. |