Hello Guest it is March 28, 2024, 08:55:06 AM

Author Topic: entering info in gcode  (Read 3596 times)

0 Members and 1 Guest are viewing this topic.

entering info in gcode
« 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.

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: entering info in gcode
« Reply #1 on: November 09, 2009, 09:02:39 PM »
Just put it n parenthesis.

(Change tool)
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: entering info in gcode
« Reply #2 on: November 09, 2009, 09:04:20 PM »
as easy as that, thanks ;D

Offline Fastest1

*
  •  920 920
  • Houston, TX
    • View Profile
Re: entering info in gcode
« Reply #3 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.
I want to die in my sleep like my grandfather, not like the passengers in the car! :-)

Offline RICH

*
  • *
  •  7,427 7,427
    • View Profile
Re: entering info in gcode
« Reply #4 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

Offline alenz

*
  •  137 137
    • View Profile
Re: entering info in gcode
« Reply #5 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
« Last Edit: November 12, 2009, 05:59:44 AM by alenz »