This library enables to monitor and control cinergia electronic loads.
The library has been tested with python 2.7, 3.5 and 3.6.
You just need to install pymodbus.
First import the module and declare a client to connect to the load:
import cinergia.client
cinergiaClient = cinergia.client.CinergiaClient('xxx.xxx.xxx.xxx')
cinergiaClient.connect()
Then you can read some registers (you have to know the registers table):
print("Errors:", cinergiaClient.read_uint32(168))
print("Input temperature:",cinergiaClient.read_IQ21(158))
Finally, close the connection:
cinergiaClient.disconnect()
pip install .
coverage run setup.py test
coverage report -m
- Include the modbus tables in the module so that to access registers via keywords