Most VFD's need a parameter setting to enable external control as they default to the pot and keys on the front.
Then you need to set the input parameter for control to PVM or 0-10V or what ever your system outputs then all you should need is to connect the run/fwd switch to your relay and configure spindle output in ports and pins.
Some pictures of the VFD will help us to give you better info.