Spindle control

thanks

do I wire the relay to the PWM spindle and the ground or the spindle 0-10v and the ground

Here is my solution,