This repository should help users with the Modbus RS485 communication of a Yalang YL620 Variable Frequency Drive VFD and the integration in LinuxCNC. Some more information is based in the LinuxCNC Forum.
It is based on vfdmod. The plan is that this repository will provide you with:
The VFD RS 485 Signal is very noisy. I used this adapter which works best for me https://amzn.to/4886Km0 (Amazon affiliate link)
- Set up the VFD drive to receive signals via Modbus.
- P00.01 = 3 Start/Stop command source RS485
- P03.00 = 4 for 19200Bps
- P03.01 = 1 RS485 slave address 1
- P03.02 = 2 Data transfer format 8 bit data, 1 stop bit, no parity
- P07.08 = 5 Frequency source selection RS 485
- Connect the VFD with your USB Rs485 adapter.
- Download vdf.hal vfd.ini and vfd.xml to your linuxcnc/config/NAME folder. Replace NAME with the name of your machine.
- In the .ini file of your machine add under
[DISPLAY] PYVCP = vfd.xml
- Add
loadusr -W vfdmod vfd.ini
to the custom.hal file. - Add
source vfd.hal
to the postgui_call_list.hal file.
- Create the repository.
- Get the basic communication running. (Start, Stop, Direction, Speed) 🎉
- Have a a basic PyVCP.
- Translate the Yalang YL620 Modbus Manual from Chinese to English. (partly done)
- Read out feedback registers (Voltage, Current,...). Voltage and Current readings seems to be wrong, but also wrong in the VFD display. Confirm to P00.24.
- Read out the parameter registers.
- Display Parameter registers in a Axis Tab.
- Integrate a drop down setting for each parameter in the Axis Tab.
02. November 2021
Repository created04. November 2021
Integreated the Parameter register and feedback register read out. Unfortunatley the VFD doesn't show good values in Voltage and Current. This is11n issue of the VFD since even on the display it doesn't show correct values. Updated the tab.09. November 2021
Thanks to eNnvi for the upload of the English manual.18. November 2021
Added How to section.22. November 2021
Added some more Registers. Looking for reports on the OutputVoltage and OutputCurrent readings.