Solution
The behavior can be related to a previously deployed Modbus I/O server on the remote controller since it is not possible to implement two instances of a Modbus Master or Slave on the same device. This means that you must select just one Modbus implementation method. In this case, if the Modbus I/O Server works as expected and you would like to use the Modbus API instead, you need to undeploy the I/O server from the controller first, by following one of the approaches listed below:
- If you remember which LabVIEW project you used for deploying the Modbus I/O Server, you can open it and right-click on the library. Then you can select the Undeploy option.
- Use the NI Distributed System Manager to identify the library that contains the I/O Server and undeploy it from there:
- Launch the NI Distributed System Manager.
- Right-click on My Systems >> Add System... to add your remote controller.
- Type the IP address of your device in the blank space and click on OK
- Open the tree of your target to display the libraries and processes that have been deployed on it. Right-click on the library that contains the Modbus I/O Server and select Remove Process to undeploy the library.