Machsupport Forum

Mach Discussion => Mach Screens => Machscreen Screen Designer => Topic started by: Ian Barley on November 11, 2010, 08:39:04 AM

Title: "Null missing after newline"?
Post by: Ian Barley on November 11, 2010, 08:39:04 AM
Dumb newbie question i'm sure but ......

I'm trying to execute some g code from a button. It works great if all the code is on one line but i get a status of "Null missing after newline" if i try and execute more than 1 line.

Heres my code -

G57 Z0
G0 X0Y0

I'm sure I'm doing something simple wrong but can't see what. The properties line in machscreen shows 2 nonprinting placeholders at the end of each line if that helps?? Suggestions ??
Title: Re: "Null missing after newline"?
Post by: Klaus1311 on November 11, 2010, 02:10:05 PM
Hi Ian,

please use "enter" key behind last character of the last line. I didn't' add lf cr automatically to behave like Mach3. I'll change that in the next version.



Klaus
Title: Re: "Null missing after newline"?
Post by: Ian Barley on November 11, 2010, 02:25:57 PM
Hey Klaus

Thanks for replying and for the machscreen program!

I have tried with "cr" at the end of the program - effectively giving me a null final line but thats what causes the problem - its fine if everything is on one line but if I use a CR either to end that one line or to start a new one then I get the status message as shown - any chance that its something to do with my English UK character set????

Ian
Title: Re: "Null missing after newline"?
Post by: Klaus1311 on November 11, 2010, 03:20:26 PM
Hi Ian,

I didn't look close enough to your code. Please try the following:
Code "G57 P10 Z0
G0 X0Y0"

You need to start your commands with "Code" and than put your G-Code in quotes.


Klaus
Title: Re: "Null missing after newline"?
Post by: Klaus1311 on November 11, 2010, 05:26:47 PM
Hi Ian,

my last entry was incorrect. Assuming you use execute VB-Script, try:

Code "G57 Z0"
Code "G0 X0Y0"

Klaus
Title: Re: "Null missing after newline"?
Post by: Kenneth on February 18, 2013, 06:01:46 AM
so there's no newline for "Execute G-Code"(33) ?
Thanks