Set up the OutPuts you want to use on the Spindle page in Ports and Pins, then aasign the Port and Pins you want to use for these OutPuts on the OutPuts page of Ports and Pins. Your spindle will turn on from code when you command a M3 or M4 and will stop with a M5. Also pressing the Spindle button will turn the spindle on if you want to start it manually.
Hood