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 | |
|---|---|---|---|---|---|
![]() |
ioState | AdamTCP_State | |||
![]() |
inDeviceIP | str | None | None | The Advantech Adam device IP address. | |
![]() |
inStationAddress | int | 0 - ![]() |
1 | |
![]() |
inStartAddress | int | 0 | The address of the first input register. | |
![]() |
inNumberOfRegister | int | 1 - ![]() |
1 | Number of registers to read. |
![]() |
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.




