Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 04:48:07 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  Mach Screens
| | |-+  Machscreen Screen Designer (Moderator: Klaus1311)
| | | |-+  "Null missing after newline"?
Pages: 1   Go Down
Print
Author Topic: "Null missing after newline"?  (Read 421 times)
0 Members and 2 Guests are viewing this topic.
Ian Barley
Active Member

Offline Offline

Posts: 3


View Profile
« 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
Active Member

Offline Offline

Posts: 302


View Profile WWW
« 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
Ian Barley
Active Member

Offline Offline

Posts: 3


View Profile
« 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?Huh

Ian
Logged
Klaus1311
Active Member

Offline Offline

Posts: 302


View Profile WWW
« 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
Klaus1311
Active Member

Offline Offline

Posts: 302


View Profile WWW
« 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
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!