Solution
When configuring a Modbus I/O Server in LabVIEW, each Master server is configured to communicate with a single COM port for Modbus Serial or a single slave IP address for Modbus Ethernet.
- For Modbus Serial, up to 247 slave devices can be connected on a single serial network. It is important that each slave device have a unique Unit ID.
- For Modbus Ethernet, a Modbus Master I/O Server can only connect to a single slave device. To communicate with multiple Modbus Ethernet slave devices, you must define a separate Master I/O Server for each device.
When configuring a Serial Modbus Master to communicate with multiple Modbus Slaves, you can control the target of any read/write operations completed by the Serial Modbus Master. This is done by changing the UnitID Property of the Master. You can change it via the Set Unit ID VI or a Property Node by selecting the UnitID Property.