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
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 inCoilAddress int 0 - 16 The address of the coil to be forced.
Input value 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.