Hello Guest it is April 25, 2024, 08:01:11 PM

Author Topic: G2 or G3 moves in the XZ plane  (Read 6420 times)

0 Members and 1 Guest are viewing this topic.

G2 or G3 moves in the XZ plane
« on: October 09, 2009, 03:25:39 PM »
I am trying to do a circular tool path in the XZ plane but I think I may have a bug in my MacH3   I have version 1.84.001.   I know it is old but it has been working fine for me up to this point.   I have a vertical mill that I use in a pinch as a vertical lathe.   I want to cut a spherical radius on the end of a shaft.   Lets say the shaft is 1" dia and the stationary cutting tool moves in the x axis.  Positive X direction of the tool will move it into shaft.   When Y = 0 the cutting edge of the tool is on the center line of the shaft.   When X =0 the tool is just touching the outside diameter and when Z= 0 the tool is at the bottom end of the shaft.   

So lets say I have the following  g-code:

G0 X0 Y0 Z0
G18 ( TO SET THE XZ PLANE)
G0 X-.1  (FOR CLEARANCE)
G0 Z-.5  (MOVE SHAFT DOWN TO START OF CUT POSITION)
G1 X0 F5    (BRING CUTTER IN CONTACT WITH SHAFT)
G3 X.5 Z0 R.5  (THIS SHOULD GO THROUGH 1/4 OF AN ARC AND CUT A SPHERICAL RADIUS ON END OF THE SHAFT.)

However, what happens is if you had a piece of paper on the stopped spindle and a pencil in place of a cutter it would scribe two complete circles 1" in diameter.    The X axis goes in and out twice while the z axis goes up and down twice and then finishes up were you would expect at X.5, Z0.   

If I change the code to do the same thing in the X and Y plane  and substitute Y for Z it works correctly.

G0 X0 Y0 Z0
G17
G0 X-.1 
G0 Y-.5 
G1 X0 F5
G3 X.5 Y0 R.5  (This goes through 1/4 arc with a radius of .5")

Thank you

Lou Cetrangelo
Saint James, NY

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: G2 or G3 moves in the XZ plane
« Reply #1 on: October 09, 2009, 07:56:48 PM »
Try using IK arcs instead of R arcs.

I was using G18 arcs last week without problems, although I found a different bug that Brian is fixing in the next release. G18 arcs feedrate seem to be limited to the Z axis velocity setting.
Gerry

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

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: G2 or G3 moves in the XZ plane
« Reply #2 on: October 10, 2009, 02:59:12 PM »
Hi Gerry:

Thanks for your reply.   Actually I tried using I and J yesterday but had an error message.   I ran it again today so I could write it down.


I entered in by hand on the input line of the MDI tab

G0 X0 Y0 Z0
G18
G3 Z.5 X.5 I0 J.5 F15

 
On the status I got "J WORD GIVEN FOR ARC IN XZ PLANE"

Then I tried the same move in the XY plane

G0 X0 Y0 Z0
G17
G3 X.5 Y.5 I0 J.5 F15


and that worked fine making a 90 degree arc.    I think what I am trying to do is supported, at lease not in my release.   I am wondering if I should update and if there would be any pain (configuration changes) in doing so?

Best regards
Lou Cetrangelo
Saint James, NY

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: G2 or G3 moves in the XZ plane
« Reply #3 on: October 10, 2009, 04:33:00 PM »
It's I and K, not I and J. Just swap the j's for k's.

I is for X, J is for Y, K is for Z.

Gerry

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

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html