Hello Guest it is October 26, 2021, 04:11:24 PM

Author Topic: "Null missing after newline"?  (Read 7401 times)

0 Members and 1 Guest are viewing this topic.

"Null missing after newline"?
« 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 ??
Re: "Null missing after newline"?
« Reply #1 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
The brain isn't a soap, it doesn't shrink when used.
Re: "Null missing after newline"?
« Reply #2 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
Re: "Null missing after newline"?
« Reply #3 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
The brain isn't a soap, it doesn't shrink when used.
Re: "Null missing after newline"?
« Reply #4 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
« Last Edit: November 11, 2010, 05:37:32 PM by Klaus1311 »
The brain isn't a soap, it doesn't shrink when used.
Re: "Null missing after newline"?
« Reply #5 on: February 18, 2013, 06:01:46 AM »
so there's no newline for "Execute G-Code"(33) ?
Thanks
Kenneth