When the customer gets the hub motor and driver from Shenzhen Zhongling Technology Co., Ltd. (ZLTECH for short), the first thing is considering how to connect them together and use PC software to test and verify the quality of productS. This article takes driver ZLAC8015D as an example to introduce the corresponding process.
Step 1: Hardware wiring, check status
For driver ZLAC8015D, power supply range is 24-48VDC. Choose any side of left and right power ports is connected to power. The 3-phase power cables (yellow, green, blue correspond to U, V, W respectively) of the left and right motors are connected to driver U, V, W ports, and the signal cable is connected to the Encoder&Hall port.
ZLTECH PC software only supports RS485 communication protocol, so it’s necessary to prepare a USB-RS485 adapter module. Then connect USB port to computer, and connector another end to the J5 port of the driver. Module’s PIN A is connected to PIN RS485 A of the driver, PIN B is connected to PIN RS485 B of the driver, and PIN GND is connected to PIN SGND of the driver.
After powering on, first check the driver indicator light. The indicator light is green and constantly on under normal conditions. If the light is completely off, check the power supply first; If the green light stays on but the red light flashes at the same time, it’s recommended to use PC software to read the fault and troubleshoot it.
Step 2: Confirm communication parameters and establish connection
Open ZLTECH PC software, select the corresponding language and model. Before clicking on the connection, set the following three parameters:
1. Serial port number: Select the USB-RS485 adapter module and insert it into PC’s serial port (you can use device manager to check which COM port corresponds to the USB to 485 module)
2. 485 station number: default is 1
3. Baud rate: default 115200
After confirming the above parameters, click "Connect". After successful connection, PC software will pop up a prompt with content "Connecting the divice successfully", and automatically read the parameters, click "OK". If the connection fails or times out, you can investigate if the COM port is selected incorrectly, and if the communication cable and the A/B cable of the USB-RS485 adapter module are connected incorrectly, and if the 485 station number and baud rate have been changed (you can use CANOPEN to read the relevant address values).
After reading the parameters on the sofware interface, it is necessary to confirm if the currently programmed parameters (especially encoder wire, phase shift, and pole pairs) match the motor. If you need to make modification, fill in the corresponding parameters, press Enter, write to EEPROM, restart the drive, and then continue.
Step 3: run the motor
After communication is established, select synchronous/asynchronous mode, click "Run" to enable the motor (i.e. lock the shaft), select the running mode (there are speed mode, position mode, torque mode for selection), click "OK", enter the corresponding target value, click Enter key, and the motor will start running.
If the motor does not run as expected, first check if the driver is in the enabled state. If the state is not shaft locked, click "Run" first. Next, it is necessary to check whether the corresponding parameters (especially encoder wire, phase shift, and pole pairs) match the motor. If they do not match, fill in the corresponding parameters, press Enter, write them to the EEPROM, restart the driver, and then try again. Additionally, it is important to check if the mode is synchronous or asynchronous. In synchronous mode, simply set the target value for either motor, and both motors will operate synchronously; In asynchronous mode, set the target value for which motor will run and the other motor will not. Finally, check if there are any errors shown on the software. If so, investigate the corresponding issues, resolve them, clear the errors, and run again.
The task of running the hub motor is not complicated in essence, as long as the power supply, cable sequence, communication parameters are confirmed, then give a target value. The value of PC software lies in encapsulating the underlying protocols into table based operations, allowing you to complete verification without writing a single line of code. After running, there is a reliable starting point for PID tuning, acceleration and deceleration curve debugging, and multi wheel collaborative control. For more relevant information, please refer to www.www.zlingkj.com.


Mailbox:sales@zlingkj.com
Office address:303, 3rd Floor, Building B, Fenghuang Zhigu, Tiezi Road, Xixiang Street, Bao'an District, Shenzhen
Factory address:7th Floor, Building 1, XinLiKang LeChuangLi Smart Industry Park, No. 106 Changdong Road, Changping Town, Dongguan City, Guangdong Province, 523570.