Machsupport Forum
G-Code, CAD, and CAM => G-Code, CAD, and CAM discussions => Topic started by: camcut on July 03, 2007, 05:17:34 PM
-
I have just taken delivery of my router and need to learn G Coding quickly. I get an error in Mach3 when running g52 and G41 together. I have tried the cutter offset code on different lines without success. It works well if I only use G41 or only G52 but not together. I have placed an extract of the code below. Can someone put me in the right direction?
Tom
g90 g40
g52 g41p4 x36.235 y130
G1 ( code for lead in)
-
Hi,
G52 is a sub datum, to use this you must specify a position from your datum to the sub datum point e.g.
G52 x2. y4. z5.
Once you have done this you can then use g41/42 to offset your cutter.
G21 G40 G00 G90
G52 X2. Y4.( shift datum )
G00 X0 Y0 (move to new zero)
Z.1
G01 Z-.5 F2.
G41 X10. F10. (apply comp)
G03 I-10. (mill circle)
G40 X0 (cancel comp)
G00 Z1.
G52 X0 Y0 (cancel shift)
M30
Graham.
-
Hi Graham
Thank you very much for your clear guidance. I got it working perfectly.
-
Good Mornig Graham, did you ever get you Gcode programing guide posted on the site? I like you explaination style it is very easy to follow. (;-) TP