Socket Ports

Socket Ports

Users can now configure the Modbus TCP/IP protocol to use a configurable socket port instead of the default port 502. Note that all devices using the CIMPLICITY port will use the same socket port.

There are now two global parameters available that enable a system manager to specify the Modbus TCP/IP port number.

MBETH_SOCKET_PORT

For Project
Purpose To reset the default socket port for Modbus TCP/IP from 502 to the designated value.
Comment PORT_SOCKET_PORT takes precedence over MBETH_SOCKET_PORT.
Value Port number that should be the new default
Default Value 502

<PORT>_SOCKET_PORT

For Project
Purpose

To reset the default socket port for Modbus TCP/IP from 502 to the designated value when multiple Modbus devices are available.

Note: <PORT> refers to the name of the Modbus TCP/IP port to be configured, such as MBTCP0, MBTCP1, etc. For example, for the MBTCP0 port, the global parameter would be MBTCP0_SOCKET_PORT.
Comment PORT_SOCKET_PORT takes precedence over MBETH_SOCKET_PORT.
Value Port number that should be the new default
Default Value 502