Back to Adaptive Vision Library website
You are here: Start » Function Reference » Modbus TCP » ModbusTCP_WriteMultipleIntegerRegisters
ModbusTCP_WriteMultipleIntegerRegisters
Function Code 16. Write a block of contiguous registers (1 to 123 registers) in a remote device
Syntax
void avl::ModbusTCP_WriteMultipleIntegerRegisters ( const avl::SocketId& inSocket, const atl::Optional<int>& inTimeout, int inUnitID, int inStartingAddress, const atl::Array<int>& inIntegerValues, avl::ModbusDataFormat::Type inDataFormat )
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 register. | ||
inIntegerValues | const Array<int>& | Integer values to set | |||
inDataFormat | ModbusDataFormat::Type |