|Download Help (Windows Only)|
Owning Palette: Utilities VIs
Requires: DSC Module or Real-Time Module
Sets both read and write operation timeouts on a Modbus slave.
You can also use the Property Node to set the read operation timeout, write operation timeout, or both timeouts.
|Modbus master in specifies the reference to the Modbus master instance. Use the Create Master Instance VI to create a Modbus master instance.|
|read operation timeout specifies the read operation timeout in milliseconds. If you specify -1 for read operation timeout, the read operation does not time out until the Modbus slave responds.|
|write operation timeout specifies the write operation timeout in milliseconds. If you specify -1 for write operation timeout, the write operation does not time out until the Modbus slave responds.|
|error in describes error conditions that occur before this node runs. This input provides standard error in functionality.|
|Modbus master out returns a duplicate of Modbus master in.|
|error out contains error information. This output provides standard error out functionality.|
The Set Timeouts VI enables you to use a single Modbus master instance to perform read or write operations with different timeouts on different Modbus slaves simultaneously, as shown in the following block diagram:
The following list describes important details about the previous diagram:
|When the TCP master instance 1 output performs read and write operations on a Modbus slave, the timeouts are both 5,000 ms, which is the default value.|
|When the TCP master instance 2 output performs read operations on a Modbus slave, the timeout is 4,000 ms. When this output performs write operations, the timeout is 6,000 ms.|