No your VFD does not accept frequency for control and very few do
You have PWM in your programing that should output the 0-10v you need
Your VFD Drive can use Modbus or 0-5v and 0-10v to control the speed
Make sure the VFD Drive has all your spindle spec Parameters set