Hi. Controlling my Huanyang inverter using the X-Controller.
For sometime now I’ve wanted to forward start and set the rpm using the x-controller.
I have a 1.5 kw water cooled spindle mounted on my Shapako2, upgraded to an X-Carve. So far this setup as worked fine.
manually starting the vfd using the front panel.
After some help from members on this forum I think I’ve got external control using g-code in my .nc files.
This is what works for me:
To forward start I connected the DCM and FOR inputs on the VFD to a 5v relay. The relay is controlled by the M8 and GND outputs on the X-Controller.
To control the RPM I connected the ACM and VI inputs on the VFD to the Spindle (0-10v) and GND outputs on the X-Controller.
My Huanyang settings:
Pd001 set to 1 (this allows external control for starting/run, forward in my case)
Pd002 set to 1 (this allows external control for RPM)
Pd014 set to 3 (this ramps up the zero to full rpm time to 3 seconds)
Pd015 set to 3 ( this ramps down the rpm to zero in 3 seconds)
All other settings were left the same in my case.
Arduino settings:
$30 set to 24000.
$31 set to 0.
G-Code
I’ve modified my post processor to include:
This line at the beginning of the file.
M8 M3 S? (whatever rpm you want, 0 - 24000 in my case)
This line at the end.
S0 M5 M9
These settings work for me on my machine.
JV