The `write_coil` method in the `ModbusTcpClient` class of the Python Pymodbus library is used to write a single coil value to a Modbus TCP server. This method allows the user to write a boolean value (True or False) to a specific coil address on the server. The method sends a Modbus request to the server and waits for a response to confirm the successful writing of the coil value. This function is synchronous, meaning it blocks further execution until the response is received.
Python ModbusTcpClient.write_coil - 46 examples found. These are the top rated real world Python examples of pymodbus.client.sync.ModbusTcpClient.write_coil extracted from open source projects. You can rate examples to help us improve the quality of examples.