AdamTCP_Function04


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

Syntax

C++
Python
 
def AdamTCP_Function04(
	state: AdamTCP_State,
	/,
	*,
	inDeviceIP: str | None = None,
	inStationAddress: int = 1,
	inStartAddress: int = 0,
	inNumberOfRegister: int = 1
)
-> outValues: list[int]

Parameters

Name Type Range Default Description
Input will be modified ioState AdamTCP_State
Input value inDeviceIP str | None None The Advantech Adam device IP address.
Input value inStationAddress int 0 - 1
Input value inStartAddress int 0 The address of the first input register.
Input value inNumberOfRegister int 1 - 1 Number of registers to read.
Output value outValues list[int] Received values as integers.

Multithreaded environment

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