Back to Aurora Vision Library Lite website

You are here: Start » Hardware Support » Advantech » AdamTCP_Function03

AdamTCP_Function03


Header: ThirdPartySdk.h
Namespace: avl

Function code 03. Reads the binary contents of input registers.

Syntax

void avl::AdamTCP_Function03
(
	AdamTCP_State& ioState,
	const atl::Optional<atl::String>& inDeviceIP,
	int inStationAddress,
	int inStartAddress,
	int inNumberOfRegister,
	atl::Array<int>& outValues
)

Parameters

Name Type Range Default Description
Input will be modified ioState AdamTCP_State& Object used to maintain state of the function.
Input value inDeviceIP const Optional<String>& NIL The Advantech Adam device IP address.
Input value inStationAddress int 0 - 1
Input value inStartAddress int The address of the first holding register.
Input value inNumberOfRegister int 1 - Number of registers to read.
Output value outValues Array<int>& Received values as integers.

Remarks

You need to specify the IP address of your Adam device in the inDeviceIP port only in the first filter which is using the device. In the consecutive filters you can leave inDeviceIP set to Auto, these filters will connect to the device with the IP address specified in the first filter.

For a more detailed description of the function from this article and other Adam functions available in Aurora Vision, please refer to the Advantech documentation for your device.

Multithreaded environment

This function is not guaranteed to be thread-safe. When used in multithreaded environment, it has to be manually synchronized.

See Also