Modbus Communication with Inch products

For some of our customers there is a need for manual manipulating charging settings via modbus. Bellow you can find attached python script, that should be a good start what can you do with modbus on our Inch products. Script is written, with both Duo and Inch, in mind.

List of supported registers can be found here - Modbus TCP Registers

 

Prerequsites:

PC with Windows/Linux, MacOS or other device capable running Python

Python 3.(x) and above installed - Python 3.9

Modbus module - https://github.com/riptideio/pymodbus

Python editor - we suggest https://code.visualstudio.com/

 

Installation:

First you need to install Python and add it to you path. On Windows, path is found in Enviroment variables settings.

Then, using pip, you must install pymodbus library. Once your python was added to path you can use command

pip install -U pymodbus

In script there is a line that sets charger IP address. (Line 27), and it looks like following

clientIP="192.168.1.250" #Charger's IP address

Change IP address accordingly to your charger.

 

Running script:

Script can be easily run using python executable from command prompt.

For reading Modbus registers use

python INCH_modbus_read.py

And for writing Modbus registers use

When writing modbus, scripts asks for which connector on Inch Duo

 

Limitations:

During first 45 seconds is impossible to set current point, due to station figuring out minimal and maximum target current.

 

Running example:

Reading on modbus:

 

Writing on modbus, set current point was changed:

 

Python scripts

 

 

List of registers

 

 

Article on how to enable Modbus and its fallback functionalities: https://etrelchargingsolutions.atlassian.net/wiki/spaces/EH/pages/3224338453

Warning! Before installing, wiring, handling or accessing the charging station in any way, make sure to read, understand and follow the Safety Guidelines.
Any graphic material provided in this documentation library is subject to variation and may not reflect the most recent updates or changes due to ongoing development and the implementation of new features.
Owing to periodic improvements of our products, the supplied products can differ in some details from the information stated in this documentation library. The information is subject to alteration without notice.
The English version of this documentation is the official and authoritative source of information. We make every effort to ensure that translations are accurate and clear; however, we do not accept responsibility for any errors, omissions, or misinterpretations in translated versions. In case of discrepancies, the English version will take precedence.


Landis+Gyr | Privacy Policy | Disclaimer