(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.
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.
Complete the following steps to create a Modbus or Modbus Slave I/O server interactively.
- In the Project Explorer window, right-click a target, such as the My Computer target, and select New»I/O Server from the shortcut menu.
- In the Create New I/O Server dialog box, select Modbus or Modbus Slave and click the Continue button.
- In the Configure Modbus I/O Server or Configure Modbus Slave I/O Server dialog box, select the communication protocol, or Model, and configure the Communication Settings you want to use.
- (Optional) Click the Advanced button of the Configure Modbus I/O Server dialog box to configure the Maximum Data Points Per Command.
- Click the OK button.
Complete the following steps to create a Modbus or Modbus Slave I/O server programmatically.
- Place the Create and Configure IO Server Express VI on the block diagram.
- In the configuration dialog box that appears, select Modbus or Modbus Slave from the I/O server type drop-down list.
- Click the Set Attributes button to display the Configure Modbus I/O Server or Configure Modbus Slave I/O Server dialog box.
 | 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. |
- In the Configure Modbus I/O Server or Configure Modbus Slave I/O Server dialog box, configure the settings for the new I/O server.
- (Optional) Click the Advanced button of the Configure Modbus I/O Server dialog box to configure the Maximum Data Points Per Command.
- Click the OK button.