Support for Multiple Modbus TCP Master Connections to CompactRIO Modbus TCP Slave

Updated Oct 23, 2026

Reported In

Hardware

  • CompactRIO Controller

Software

  • LabVIEW

Issue Details

I am using the LabVIEW Modbus API to implement a Modbus TCP Slave on a CompactRIO (cRIO) controller. Multiple Modbus TCP Masters need to communicate with the same slave device. Is there a limit to the number of simultaneous Modbus TCP Master connections supported by the LabVIEW Modbus API?

Solution

Neither the Modbus TCP protocol nor the LabVIEW Modbus API imposes a fixed or hardcoded limitation on the number of concurrent Modbus TCP Masters that can connect to a single Modbus TCP Slave. The achievable number of simultaneous master connections depends on the resources available on the real-time target, including CPU utilization, available memory, network bandwidth, and the requirements of the application running on the controller.

When designing a system that supports multiple Modbus TCP Masters, consider the following recommendations:

 

  • Ensure sufficient CPU and memory remain for the rest of your controller application. To monitor these parameters, please refer to Monitoring CPU and Memory Usage on Real-Time Embedded Targets.
  • Evaluate the performance of the system under the expected communication load, including polling rates, register counts, and network traffic
  • If multiple Modbus TCP Masters must perform write operations, implement an application-level arbitration mechanism, such as a dedicated write master, ownership register, token-based access control, or command queuing, to ensure that write requests are processed in a controlled manner and to prevent race conditions or unintended data overwrites.