Exchanges

Data exchanges take place in one of two modes:

  • server mode: The RTU module supports all Modbus-over-TCP requests from the PLC or the external Modbus client.

  • client mode: This type of exchange enables Modbus-over-TCP requests to be sent using the functions:

    • READ_VAR

    • WRITE_VAR

    • DATA_EXCH

NOTE: The maximum Ethernet frame size depends on the type of transaction. The maximum frame size is 256 bytes for messaging.

The BMENOR2200H module manages these TCP connections through port 502 messaging:

  • Modbus server: 32 connections

  • Modbus client: 16 connections

Port 502

TCP/IP reserves specific server ports for specific applications through IANA (Internet Assigned Numbers Authority). Modbus requests are sent to registered software port 502.

Port 502 messaging paths:
  • server path:

    • Port 502 messaging can process up to 8 incoming requests from the network. Requests are received during the previous scan and sent to the Modbus server in the IN section.

    • Port 502 messaging can process up to 8 responses from the Modbus server in the IN section (including writing the data into the socket).

  • client path:

    • Port 502 messaging can process up to 16 outgoing requests from the application in the OUT section (including writing the data into the socket).

    • Port 502 messaging can process up to 16 incoming responses from the network in the IN section. Responses are sent to the application.