News:

Welcome to Home Machinist's Journal!! We've been live since April 20th, 2024

Main Menu

Quick Links

Welcome to Home Machinist's Journal. Please login or sign up.

Oct 22, 2025, 02:57 AM

Login with username, password and session length

Recent

Members
Stats
  • Total Posts: 1,386
  • Total Topics: 279
  • Online today: 7
  • Online ever: 91 (Apr 13, 2025, 11:11 PM)
Users Online
  • Users: 0
  • Guests: 5
  • Total: 5
5 Guests, 0 Users (2 Spiders)

Need help with G19 G02(3) (Y,Z, J,K) +x

Started by kopcicle, Dec 19, 2024, 04:56 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

kopcicle

I'm having a great deal of trouble with what should be a simple manual gcode. This is a simple move, or should be but I can't seem to get the syntax even remotely correct.

G19 G02(3) (Y,Z, J,K)

Preamble.

Circular segment - is an area of a "cut off" circle from the rest of the circle by a secant (chord).

On the picture:
L - arc length
h - height
c - chord
R - radius
a - angle

If you know the radius and the angle, you may use the following formulas to calculate the remaining segment values:
R=52
Height=3.1360
Chord length=35.5701 1/2 Chord length=17.78505
Arc length=36.3028 1/2 Arc length=18.1514

I'm using an angle of 40 degrees because I will have to start at X0,Y0, Z52 (R) and move clockwise from Top Dead Center (for lack of a better description) to the end point of the radius.

I'm assuming I can do this in incremental as well as absolute and the syntax would be nearly the same save for G98 (absolute) G91 (incremental) modes. Still the syntax escapes me.

Using G19 , from TDC the start point, Y0 Z0, the end point would be 1/2 the chord length,  17.78505 and the height, -3.1360, while assuming (yeah, yeah , I know) the offset is 52 for the radius.

But wait, that's not all. I have an X move I need to add. That is relatively simple math that finds a common denominator  between  1/2 the arc length,  18.1514 and the X path length between 1 and 1,8. I can do triangles but.

I haven't the faintest notion of the correct syntax. I've beat my head on this long enough. It's time to humbly ask.

kopcicle

CW Move
G01 Y0.000 Z0.000
G19 G02 Y17.785 Z-3.136 J0.000 K-52.000

CCW Move
G01 Y0.000 Z0.000
G19 G03 Y-17.785 Z-3.136 J0.000 K-52.000

or something like that.
still not quite right
I keep messing up the machine/firmware specific headers and feeds

TerryWerm

I would love to help if I could, but there are not many in here that know anything substantial about G-code and what I know about it would not fill a thimble. Hopefully somebody will have the knowledge you seek.
cfe2    

Terry

Born in the 50's, grew up in the 70's, now in my 60's, hope I make it to my 80's.

chips and more


TerryWerm

Quote from: chips and more on Dec 21, 2024, 10:39 AMWhat is G-Code  :smiley_flabbergasted:
It is what modern machinists type in at a keyboard instead of counting turns and marks of a handwheel to achieve a part of a certain shape. It is also an amazing system in that it allows a machinist to run a program, containing the aforementioned G-code, which, if it contains an error, does an amazing job of trashing cutters, bits, chucks, and other tooling with a total and absolute lack of discretion. Additionally, it is nearly the perfect system for turning perfectly good stock into scrap in large quantities, giving recycling companies something to do.
  :tickedoff:        

No sarcastic humor here... I don't even know what that is!   
    :smiley_crocodile:
cfe2    

Terry

Born in the 50's, grew up in the 70's, now in my 60's, hope I make it to my 80's.

34_40

:smiley_verdrietig: :smiley_winkkiss: :smiley_tong2: you may not know what it is...  :smiley_computerfight:   but, you do it well!  :smiley_sealed:

chips and more

Is g-code and g-spot the same thing?

TerryWerm

Oh boy. I KNOW what a G-spot is, and NO, it's not the same thing!!   :smiley_crocodile:
cfe2    

Terry

Born in the 50's, grew up in the 70's, now in my 60's, hope I make it to my 80's.

4GSR

Ken