Hello
Guest
it is
May 13, 2025, 01:12:40 AM
Guest
Login
Register
Menu
Home
Help
Search
Login
Register
YouTube
Machsupport Forum
/
Mach Discussion
/
Mach Screens
/
Machscreen Screen Designer
(Moderator:
Klaus1311
)
/
"Null missing after newline"?
« previous
next »
Print
Pages:
1
Go Down
Author
Topic: "Null missing after newline"? (Read 25673 times)
0 Members and 1 Guest are viewing this topic.
Ian Barley
4
"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 ??
Logged
Klaus1311
531
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
Logged
The brain isn't a soap, it doesn't shrink when used.
Ian Barley
4
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
Logged
Klaus1311
531
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
Logged
The brain isn't a soap, it doesn't shrink when used.
Klaus1311
531
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
»
Logged
The brain isn't a soap, it doesn't shrink when used.
Kenneth
279
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
Logged
Kenneth
Print
Pages:
1
Go Up
« previous
next »