Hello Guest it is April 23, 2024, 05:44:57 AM

Author Topic: Can one use a combination of G52 and G41  (Read 3057 times)

0 Members and 1 Guest are viewing this topic.

Can one use a combination of G52 and G41
« 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)

Offline Graham Waterworth

*
  • *
  •  2,673 2,673
  • Yorkshire Dales, England
    • View Profile
Re: Can one use a combination of G52 and G41
« Reply #1 on: July 03, 2007, 06:06:41 PM »
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.
Without engineers the world stops
Re: Can one use a combination of G52 and G41
« Reply #2 on: July 04, 2007, 04:52:10 PM »
Hi Graham

Thank you very much for your clear guidance. I got it working perfectly.

vmax549

*
Re: Can one use a combination of G52 and G41
« Reply #3 on: July 05, 2007, 10:43:03 AM »
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