It is quite straight forward you need a PWM to Analog 0-10v to control the spindle speed and a Relay to Turn it 0n /0ff, so check to see what you Hardware has
The main Power wiring to the VFD Drive will connect to R / T Terminals Plus Ground/ Earth to the PE Terminal
What are is the spindle motor specs???