Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: angel tech on November 09, 2009, 08:55:07 PM

Title: entering info in gcode
Post by: angel tech on November 09, 2009, 08:55:07 PM
is it possible to have an info line in a program, let's say to tell me which tool to change to when needed.
Title: Re: entering info in gcode
Post by: ger21 on November 09, 2009, 09:02:39 PM
Just put it n parenthesis.

(Change tool)
Title: Re: entering info in gcode
Post by: angel tech on November 09, 2009, 09:04:20 PM
as easy as that, thanks ;D
Title: Re: entering info in gcode
Post by: Fastest1 on November 10, 2009, 09:44:16 PM
Dont you have to be careful where you put the parenthesis? Like it has to be alone or it is a subprogram? Mine throws an error if already inside a set of parenthesis.
Title: Re: entering info in gcode
Post by: RICH on November 10, 2009, 10:21:20 PM
N10 (REMEMBER IT IS TIME TO CHANGE THE TOOL)

Just like above, the N10 is just a line number, you shouldn't get an error.
RICH
Title: Re: entering info in gcode
Post by: alenz on November 12, 2009, 05:57:00 AM
Dont you have to be careful where you put the parenthesis? Like it has to be alone or it is a subprogram? Mine throws an error if already inside a set of parenthesis.
Yes mach doesn’t allow nested parenthesis in a comment, why I don’t know.
But you can use parentheses inside a comment if you start the comment with a semicolon such as:
N10 ;A macro containing xx(xx) is required for this file
Will work just fine.
Al