Place the license.dat file in the mach folder (Usually C:\Mach3). If you have done that already, run Mach, then navigate to the "Help" tab at the top, and then click "About Mach3 CNC Controller..." Your registration name should be listed there. It should not report as being a demo. I don't think the demo ever cut out the code, but rather it just would not run beyond a certain line. If that does not solve your problem, try re-installing. If that does not solve your problem, please attach your code using the "additional options" feature when you post a reply. There *could* be an error in your code.