Back to Adaptive Vision Library website
You are here: Start » Function Reference » Modbus TCP » ModbusTCP_ReadInputIntegerRegisters
Function Code 04. Read contiguous input registers in a remote device
Syntax
void avl::ModbusTCP_ReadInputIntegerRegisters ( const avl::SocketId& inSocket, const atl::Optional<int>& inTimeout, int inUnitID, int inStartingAddress, int inCount, avl::ModbusDataFormat::Type inInputDataFormat, atl::Array<int>& outIntegerValues )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inSocket | const SocketId& | Connected socket ID on port 502. | |||
inTimeout | const Optional<int>& | 10 - | NIL | Timeout in milliseconds, block if not specified. | |
inUnitID | int | 0 - 255 | 1 | Default is 1 | |
inStartingAddress | int | 0 - 65535 | The address of the first input register. | ||
inCount | int | 1 - 125 | 1 | ||
inInputDataFormat | ModbusDataFormat::Type | ||||
outIntegerValues | Array<int>& | Received integer values |
See Also
- ModbusTCP_ReadInputRealRegisters – Function Code 04. Read contiguous input registers in a remote device
- ModbusTCP_ReadInputRegisters_AsByteBuffer – Function Code 03. Read contiguous input registers in a remote device