Back to Aurora Vision Library website

You are here: Start » Function Reference » System » Modbus TCP » ModbusTCP_ReadMultipleIntegerRegisters

ModbusTCP_ReadMultipleIntegerRegisters


Header: STD.h
Namespace: avl
Module: FoundationLite

Function Code 03. Reads the contents of a contiguous block of holding registers in a remote device

Syntax

void avl::ModbusTCP_ReadMultipleIntegerRegisters
(
	const avl::SocketId& inSocket,
	const atl::Optional<int>& inTimeout,
	int inUnitID,
	int inStartingAddress,
	int inCount,
	avl::ModbusDataFormat::Type inInputDataFormat,
	atl::Array<int>& outIntegerValue
)

Parameters

Name Type Range Default Description
Input value inSocket const SocketId& Connected socket ID on port 502.
Input value inTimeout const Optional<int>& 10 - NIL Timeout in milliseconds, block if not specified.
Input value inUnitID int 0 - 255 1 Default is 1.
Input value inStartingAddress int 0 - 65535 The address of the first holding register.
Input value inCount int 1 - 125 1
Input value inInputDataFormat ModbusDataFormat::Type
Output value outIntegerValue Array<int>& Received integer value.

See Also