Machsupport Forum
Mach Discussion => Mach Screens => Machscreen Screen Designer => Topic started 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 ??
-
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
-
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
-
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
-
Hi Ian,
my last entry was incorrect. Assuming you use execute VB-Script, try:
Code "G57 Z0"
Code "G0 X0Y0"
Klaus
-
so there's no newline for "Execute G-Code"(33) ?
Thanks