CAD CAM EDM DRO - Yahoo Group Archive

Re: Beginning tool path text

Posted by Matt Shaver
on 2000-02-04 21:02:05 UTC
> From: Clint Bach <clintbach@...>
> What commands are normally used in the beginning of a G-code tool path?
<...>
> What do others use to start and end their Tool paths?

Here's a file I wrote up called skeleton.txt (I think this is in either the
doc or prog directory under emc, but I'm not sure), it's what I use:

N5(SKELETON 00-00-00 1 filename, date, etc...)
(set up modal operators)
N10G17G20G40G49(XY plane select, inch mode, cancel diameter comp, cancel
length offset)
N15G54G80G94G98(coordinate system 1, cancel motion, feed/minute mode, initial
level return)
N20M48
(The next 3 lines probably aren't needed anymore, they fixed an old bug)
N25G91
N30G0X0Y0Z0
N35G90
N40G53G0Z0(retract quill)
N45X0.Y0.(move X and Y to the tool change position, change as required)
N50M05M09(spindle and coolant OFF!)
(display a message for the operator)
N55(MSG,LOAD TOOL #1)
N60M00(don't move until the operator presses the S key)
(clear the message line, I don't think this is needed anymore either)
N65(MSG, )
N70T1M06G43H1(change to tool 1 and get its length from the tool table)
(start G0 lines with a .001 second pause to avoid motion blending problems)
N75G04P.001G0X1.0Y1.0S1000M3M8(rapid to the starting XY, spindle CW, coolant
ON, change as required)
N80G04P.001G0Z0.25(rapid to .25" above the part, change as required)
( )
(the program goes here, don't have blank lines)
( )
(PROGRAM END)
N980G0Z0.25(rapid to .25" above the part, change as required)
N985M05M09(spindle and coolant OFF!)
N990G53G0Z0(retract quill)
N995X0.Y0.(move X and Y to the tool change position, change as required)
N1000M2(end program)

Note:
The e-mail system may wrap some of the longer comments. The starting and
ending parentheses should be on the same line.

Matt

Discussion Thread

Clint Bach 2000-02-04 20:40:38 UTC Beginning tool path text Matt Shaver 2000-02-04 21:02:05 UTC Re: Beginning tool path text Dan Mauch 2000-02-05 07:04:46 UTC Re: Beginning tool path text