User Guide
EVALUATION BOARD SOFTWARE
Using Modbus Host Tools
Once the host PC is physically connected to the AD-
ACEVSE22KWZ-KIT, either use an existing Modbus primary tool
(Simply Modbus
is recommended), or the basic command line
script included in the AD-ACEVSE22KWZ-KIT BSP. To use the
included command line script, run the following code inside a
PowerShell terminal (starting at the root directory of the BSP).
> cd dist
> python -m venv venv
> venv/scripts/activate
> pip install -r requirements.txt
> python adi_ui.py
The script initially asks which COM port the communication device
is connected to on the host machine. To retrieve the COM port,
navigate to device manager and see under the ports tab. Once
found, enter comx.
Example:
python adi_ui.py
Input the serial port connected to AD-
ACEVSE22KWZ-SL
Example response: 'COM5'
> com4
Connection successful
Type your command (type 'help' for help, type
'exit' to exit):
Once connected, type "help" in the console for a list of available
commands.
> help
Possible commands, parameters will be prompted
after calling a specific command:
- read_coil
- read_discrete
- read_holding_reg
- read_input_reg
- write_single_coil
- write_single_reg
- write_multiple_reg
- exit
Choose one of the following commands. For example, to write
'0xDECAFBAD' to ADE9178 register AVGAIN:
analog.com
AD-ACEVSE22KWZ-KIT
First, write the 'SET_MODE' coil to debug mode.
> write_single_coil
input the address e.g('8')
> 19
input the desired value to written e.g('True'
for 1 and 'False' for 0)
> True
1
Type your command (type 'help' for help, type
'exit' to exit):
Now, write to the desired register.
> write_single_reg
input the address e.g('40008')
> 40001
input the value to write in hex e.g(a1b2c3d4)
> decafbad
decafbad
Type your command (type 'help' for help, type
'exit' to exit):
See the console respond with the same data to indicate a success-
ful write.
Note: If the AD-ACEVSE22KWZ-KIT and/or ADE9178 resets, user-
written register values are NOT saved.
Simulating a Charge Session
To simulate a charge session over Modbus, connect to the P5
UART port or the P8 RS-485 port, as described above. If a Python
environment is not yet created in the dist directory, create one
using the "venv" command, activate it, and install the requirements,
as shown in the following. If the environment is already created,
simply activate it. As with the adi_ui.py script, there is a prompt
to enter a com port number.
Using Modbus Host Tools
the instructions to find the port number. Once the port is entered,
the script simulates the control pilot (CP) and proximity pilot (PP)
voltages to step through a charge session.
> cd dist
> python -m venv venv
> venv/scripts/activate
> pip install -r requirements.txt
> python adi_run_session.py
shows
Rev. 0 | 16 of 29
Need help?
Do you have a question about the AD-ACEVSE22KWZ-KIT and is the answer not in the manual?