I had a problem with a macro that would not complete the function, and tracked it down to not having a carriage return after the last function.
Try it with a number of dry cuts and see if it now works, presume you have the two cypress basic mach3 manuals, can't remember if it was in there or on here or a known issue with basic...
(It was a THC macro not a dospin() function though)