![]() | Download Help (Windows Only) |
Owning Palette: Modbus Master VIs
Requires: DSC Module or Real-Time Module
Creates a serial or TCP Modbus master instance. You must manually select the polymorphic instance to use.
You can use the Modbus master instance to perform read and write operations on Modbus slaves. The default read and write operation timeout is 5,000 ms. You can use the Property Node or the Set Timeouts VI to change the timeout.
Use the pull-down menu to select an instance of this VI.
![]() | serial type specifies the type of data transmission through serial ports.
| ||||||||||||
![]() | unit ID specifies the identification of the Modbus slave with which you want to communicate. The Modbus slave can be a Modbus slave you create or a third-party Modbus slave. If you want to communicate with a third-party Modbus slave, check the documentation for the Modbus slave to find its unit ID. | ||||||||||||
![]() | VISA resource name specifies the resource you want to open. | ||||||||||||
![]() | baud rate specifies the baud rate of the Modbus slave with which you want to communicate. The Modbus slave can be a Modbus slave you create or a third-party Modbus slave. If you want to communicate with a third-party Modbus slave, check the documentation for the Modbus slave to find its baud rate. The default is 9,600. | ||||||||||||
![]() | error in describes error conditions that occur before this node runs. This input provides standard error in functionality. | ||||||||||||
![]() | parity specifies the parity of the Modbus slave with which you want to communicate. The Modbus slave can be a Modbus slave you create or a third-party Modbus slave. If you want to communicate with a third-party Modbus slave, check the documentation for the Modbus slave to find its parity.
| ||||||||||||
![]() | flow control specifies the flow control of the Modbus slave with which you want to communicate. The Modbus slave can be a Modbus slave you create or a third-party Modbus slave. If you want to communicate with a third-party Modbus slave, check the documentation for the Modbus slave to find its flow control.
| ||||||||||||
![]() | serial master instance returns a serial Modbus master instance. | ||||||||||||
![]() | error out contains error information. This output provides standard error out functionality. |
![]() | address specifies the TCP/IP address of the Modbus slave with which you want to communicate. The Modbus slave can be a Modbus slave you create or a third-party Modbus slave. If you want to communicate with a third-party Modbus slave, check the documentation for the Modbus slave to find its address. |
![]() | port specifies the TCP port of the Modbus slave with which you want to communicate. The Modbus slave can be a Modbus slave you create or a third-party Modbus slave. If you want to communicate with a third-party Modbus slave, check the documentation for the Modbus slave to find its port. The default is 502. |
![]() | error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() | TCP master instance returns a TCP Modbus master instance. |
![]() | error out contains error information. This output provides standard error out functionality. |
Refer to the following VIs for examples of using the Create Master Instance VI:
Helpful
Not Helpful