AdamTCP_Function05
Function code 05. Forces a single coil to either ON or OFF.
Syntax
C++
Python
def AdamTCP_Function05( state: AdamTCP_State, inState: bool, /, *, inDeviceIP: str | None = None, inStationAddress: int = 1, inCoilAddress: int = 16 ) -> None
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
ioState | AdamTCP_State | |||
![]() |
inDeviceIP | str | None | None | The Advantech Adam device IP address. | |
![]() |
inStationAddress | int | 0 - ![]() |
1 | |
![]() |
inCoilAddress | int | 0 - ![]() |
16 | The address of the coil to be forced. |
![]() |
inState | bool | Coil state to be set. |
Multithreaded environment
This function is not guaranteed to be thread-safe. When used in multithreaded environment, it has to be manually synchronized.



