Z4Sight_Modbus_WriteCoils
Writes the coil data table in local memory to send to the Modbus controller.
Syntax
C++
Python
def Z4Sight_Modbus_WriteCoils( state: Z4Sight_State, inValues: list[bool], /, *, inDeviceID: Z4SightSystemAndDeviceIdentifier | None = None, inInstanceName: str | None = None, inOffset: int = 0 ) -> None
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
ioState | Z4Sight_State | |||
![]() |
inDeviceID | Z4SightSystemAndDeviceIdentifier | None | None | Device identification. | |
![]() |
inInstanceName | str | None | None | Instance name of a given Industrial Communication protocol set in the MILConfig utility. | |
![]() |
inOffset | int | 0 - 65535 | 0 | Offset to which to start writing the data in the specified data table. |
![]() |
inValues | list[bool] | Values to write. |


