Read Discrete Inputs VI
- Updated2024-11-20
- 3 minute(s) read
Reads values from contiguous discrete inputs. The maximum number of discrete inputs this VI can read is 2,000.

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.
starting address
—
starting address specifies the initial address for the read operation. Valid values are between 0 and 65,535, where 65,535 is the maximum number. The address that this VI reads is 0-based, meaning that the address numbering convention for the Modbus slave starts at 0.
number of discrete inputs
—
number of discrete inputs specifies the number of discrete inputs you want to read. Valid values are between 1 and 2,000, where 2,000 is the maximum number. After you specify a value for number of discrete inputs, check the value you specify for starting address. Ensure that you do not use this VI to read the value of a discrete input whose address is larger than 65,535. Otherwise, LabVIEW returns error code -389113.
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.
discrete input values
—
discrete input values returns the discrete input values.
error out
—
error out contains error information. This output provides standard error out functionality. |
Modbus master in
—
starting address
—
error in (no error)
—
Modbus master out
—
discrete input values
—
error out
—