Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: leversole on January 03, 2016, 11:13:29 AM

Title: Simple Macro
Post by: leversole on January 03, 2016, 11:13:29 AM
Want to create a park button, and practice simple macros...have read the previous posts, can't get rid if the "null missing after newline"

Here is what I want

G0 Z1
G0 Y12

Have tried

Code "G0 Z1"
Code "G0 Y12"

Code "G0 Z1
G0 Y12"

All with and without a final carriage return...

Leslie







 
Title: Re: Simple Macro
Post by: ger21 on January 03, 2016, 11:16:50 AM
Code "G0 Z1"
While IsMoving()
Wend
Code "G0 Y12"
While IsMoving()
Wend
Title: Re: Simple Macro
Post by: leversole on January 03, 2016, 11:28:10 AM
You are single handedly my personal tutor!

Thanks again!
Leslie
Title: Re: Simple Macro
Post by: leversole on January 03, 2016, 11:49:19 AM
Same error, but just before commiting hari-kari, I saw that the button function was set for G-Code...changed it to "Execute basic script" and all is well!

Thanks again