AdamTCP_Function01
Function code 01. Reads discrete output's ON/OFF status.
Syntax
C++
Python
def AdamTCP_Function01( state: AdamTCP_State, /, *, inDeviceIP: str | None = None, inStationAddress: int = 1, inStartAddress: int = 0, inNumberOfCoils: int = 1 ) -> ( outValues: list[int], outStatuses: list[bool] )
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 coil. | |
![]() |
inNumberOfCoils | int | 1 - 2000 | 1 | Requested number of bits. |
![]() |
outValues | list[int] | Received values as integers. | ||
![]() |
outStatuses | list[bool] | Received statuses as bits. |
Multithreaded environment
This function is not guaranteed to be thread-safe. When used in multithreaded environment, it has to be manually synchronized.




