Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Creating Modbus I/O Servers (DSC Module)

You can create a Modbus or ModbusSlave I/O server interactively or programmatically.

Creating Modbus I/O Servers Interactively

Complete the following steps to configure a DSC Module Modbus or ModbusSlave I/O server interactively.

  1. 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.
  2. In the Create New I/O Server dialog box, select Modbus or ModbusSlave and click the Continue button.
Note  If you have not specified a default project library, LabVIEW creates a project library and places the new I/O server inside it. Right-click a library and select Make Default to specify a library as the default library.
  1. In the Configure Modbus Instance or Configure Modbus Slave Instance dialog box, select the communication protocol, or Model, and the Communication Setting you want to use.
  2. (Optional) Click the Advanced button of the Configure Modbus Instance dialog box to configure the Maximum Data Points Per Read Command.
  3. Click the OK button.

Creating Modbus I/O Servers Programmatically

Complete the following steps to configure a DSC Module Modbus or ModbusSlave I/O server programmatically.

  1. Place the Create and Configure IO Server Express VI on the block diagram.



  2. In the configuration dialog box that appears, select Modbus or ModbusSlave from the I/O Server Type drop-down list.
  3. Click the Set Attributes button to display the Configure Modbus Instance or Configure Modbus Slave Instance 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 Instance or Configure Modbus Slave Instance dialog box.
  1. In the Configure Modbus Instance or Configure Modbus Slave Instance dialog box, configure the settings for the new I/O server.
  2. Click the OK button to close the Configure Modbus Instance or Configure Modbus Slave Instance dialog box.
  3. Click the OK button to close the configuration dialog box for the Express VI.

Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit