Created
December 8, 2018 16:09
-
-
Save osaether/10a95f2a8f9e03ecd4c6b3191c5f4835 to your computer and use it in GitHub Desktop.
Turn Venus GX Relay 1 on
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from pymodbus.constants import Defaults | |
from pymodbus.client.sync import ModbusTcpClient as ModbusClient | |
Defaults.Timeout = 25 | |
Defaults.Retries = 5 | |
client = ModbusClient('ipaddress.of.venus', port='502') | |
client.write_register(806, 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment