Read Holding Registers VI

LabVIEW 2017 Datalogging and Supervisory Control Module Help

Edition Date: March 2017

Part Number: 371618K-01

»View Product Info
Download Help (Windows Only)

Owning Palette: Modbus Slave VIs

Requires: DSC Module or Real-Time Module

Reads values of contiguous holding registers.

Modbus slave in specifies the reference to the Modbus slave instance. Use the Create Slave Instance VI to create a Modbus slave instance.
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 holding registers specifies the number of holding registers you want to read. Valid values are between 1 and 65,536, where 65,536 is the maximum number. After you specify a value for number of holding registers, check the value you specify for starting address. Ensure that you do not use this VI to read the value of a holding register whose address is larger than 65,535. Otherwise, LabVIEW returns error code -389113.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
Modbus slave out returns a duplicate of Modbus slave in.
register values returns the holding register values.
error out contains error information. This output provides standard error out functionality.

WAS THIS ARTICLE HELPFUL?

Not Helpful