Figure 1. Configure Modbus Slave I/O Server Window
Figure 2. Select Source Item Window
Figure 3. Default Binding Path for a Shared Variable Bound to a Modbus Register (F400001-F465534 range) in the Shared Variable Properties Window
Figure 4. Variable Manager Window
Using these shared variables in writing your RT application is no different than how you normally use them in RT. You can add or remove variables as needed. Just remember that if you make any changes to the IO Server Name or the .lvlib name, you will need to manually update the Path of the bound shared variables before deploying. Also remember to remove any Modbus Slave IO Servers at the same Modbus Address that are already deployed to the RT Target through the variable manager before re-deploying.
Note: This portion of the tutorial is only to confirm that your shared variables are working through Modbus correctly. You could also do this to use the additional functionality of the LabVIEW DSC Module. Otherwise, to use the Modbus shared variables in LabVIEW for Windows, simply drag the shared variable from under the RT Target into your LabVIEW for Windows VI and program as is normally recommended with shared variables.
Figure 5. Advanced Attribute Settings Window
Figure 6. Configure Modbus I/O Server Window
Collaborate with other users in our discussion forums
A valid service agreement may be required, and support options vary by country.