(DSC Module) You can create a Modbus or Modbus Slave I/O server interactively or programmatically.
(RT Module) You can create a Modbus or Modbus Slave I/O server interactively.
![]() |
Note The Modbus I/O server uses serial ports to communicate with the device. The Shared Variable Engine (SVE) registers the available serial ports only while the SVE is initializing. Ensure that no process or application occupies any serial ports when the SVE is initializing. Otherwise, the SVE does not register the occupied serial ports. If you install new serial ports using the ENET232, USB, or Virtual Ports when the SVE is running, restart the computer or the SVE to register the new serial ports. |
After you create a Modbus I/O server, you can create shared variables and bind the shared variables to Modbus I/O server data items. Use the Create Bound Variables dialog box to generate multiple shared variables and bind them to Modbus I/O server data items simultaneously.
![]() |
Note If you create multiple Modbus Slave I/O servers in Ethernet model on a single computer, only the first one works properly. The other Modbus Slave I/O servers return errors in the CommFail and ErrorStatus data items. |
Complete the following steps to create a Modbus or Modbus Slave I/O server interactively.
Complete the following steps to create a Modbus or Modbus Slave I/O server programmatically.
![]() | Note If you click the OK button before you set the attributes for this I/O server instance, LabVIEW automatically displays the Configure Modbus I/O Server or Configure Modbus Slave I/O Server dialog box. |