Back to FabImage Library website
You are here: Start » Function Reference » Modbus TCP » ModbusTCP_ReadMultipleRealRegisters
Header: | STD.h |
---|---|
Namespace: | fil |
Function Code 03. Read the contents of a contiguous block of holding registers in a remote device
Syntax
void fil::ModbusTCP_ReadMultipleRealRegisters ( const fil::SocketId& inSocket, const ftl::Optional<int>& inTimeout, int inUnitID, int inStartingAddress, int inCount, ftl::Array<float>& outRealValue )
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 holding register. | |
![]() |
inCount | int | 1 - 125 | 1 | |
![]() |
outRealValue | Array<float>& | Received real value. |
See Also
- ModbusTCP_ReadMultipleRegisters_AsByteBuffer – Function Code 03. Read the contents of a contiguous block of holding registers in a remote device
- ModbusTCP_ReadMultipleIntegerRegisters – Function Code 03. Read the contents of a contiguous block of holding registers in a remote device
- ModbusTCP_WriteSingleRegister – Function Code 06. Write a single holding register in a remote device
- ModbusTCP_WriteMultipleRegisters_AsByteBuffer – Function Code 16. Write a block of contiguous registers (1 to 123 registers) in a remote device
- ModbusTCP_WriteMultipleIntegerRegisters – Function Code 16. Write a block of contiguous registers (1 to 123 registers) in a remote device
- ModbusTCP_WriteMultipleRealRegisters – Function Code 16. Write a block of contiguous registers (1 to 123 registers) in a remote device