Is all of this HAL file generated by pncconf?
In you HAL file I see:
net spindle-vel-cmd-abs => hm2_5i25.0.7i77.0.1.analogout5
But it has no driver.
I would change that to:
net spindle-vel-cmd-rpm-abs => hm2_5i25.0.7i77.0.1.analogout5
And then in you INI, assuming 3600rpm maximum speed when the VFD receives 10V:
[SPINDLE_9]
OUTPUT_SCALE = 3600.0
OUTPUT_MIN_LIMIT = 0.0
OUTPUT_MAX_LIMIT = 10.0
Then, you also have to start the VFD. I do see the CW/CCW pin, but not the run pin. Thus you might need something like
net spindle-on => hm2_5i25.0.7i77.0.0.output-09
and route the appropriate signal through a relay to the VFD, just like you did with the CW/CCW signal.
I do not have a HuanYang VFD anymore so I am doing it from memory: relay contact between DCM and FOR.
I actually doubt this will work flawless since as far as I can remember the forward/reverse rotation are just two separate inputs so a bit of HAL-logic would be needed. I ran mine in forward-only, reverse rotation is prettu useless on a highspeed spindle.
But this should allow forward rotation. When that works, we can tackle reverse rotation.