I am working with a Wincnc base CNC and I am working on the macro file to set the spindle speed. I have attached the SPIN.MAC that I am going to work from. For some reason it didn't like my file until I renamed the extension to .txt.

I wasn't able to find a resource on how to format macro files. Is there a good place to find more information. My main questions is can there be spaces between turning the channels on and off using the M11s and M12s or does it need to be one continuous string of commands?