Set Timeouts VI
- Updated2024-11-20
- 3 minute(s) read
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.

Inputs/Outputs
Modbus master in
—
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 (ms)
—
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 (ms)
—
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 (no error)
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
Modbus master out
—
Modbus master out returns a duplicate of Modbus master in.
error out
—
error out contains error information. This output provides standard error out functionality. |
Set Timeouts Details
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. |
Modbus master in
—
read operation timeout (ms)
—
error in (no error)
—
Modbus master out
—
error out
—

