How does G02 and G03 work in terms of their maths ?


Results 1 to 3 of 3

Thread: How does G02 and G03 work in terms of their maths ?

  1. #1
    Registered
    Join Date
    Feb 2017
    Location
    United Kingdom
    Posts
    2
    Downloads
    0
    Uploads
    0

    Smile How does G02 and G03 work in terms of their maths ?

    HI all,
    I'm trying to understand the maths behind G codes in general and G02 & G03 in particular. G01 are quite forward where the X and Y numbers are simply converted to steps in a stepper motor. But for a circle, two more parameters are introduced I and J in which they define the center of the circle or the ARC. I am trying to create a g code interpreter in which I have to know what kind of maths are done in the background to create a circle for instance any help is appreciated.

    Ahmed

    Similar Threads:


  2. #2
    Member ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Township
    Posts
    35538
    Downloads
    1
    Uploads
    0

    Default Re: How does G02 and G03 work in terms of their maths ?

    First, it depends on if your using incremental or absolute IJ mode.
    The arc starts from the existing position, and ends at the XY coordinates in the G2/G3 comand.
    In absolute IJ mode the I is the X coordinate of the arc center, and the J is the Y coordinate of the center.
    In In remental mode, the center is specified relative to the end point of the arc.

    Gerry

    UCCNC 2017 Screenset
    [URL]http://www.thecncwoodworker.com/2017.html[/URL]

    Mach3 2010 Screenset
    [URL]http://www.thecncwoodworker.com/2010.html[/URL]

    JointCAM - CNC Dovetails & Box Joints
    [URL]http://www.g-forcecnc.com/jointcam.html[/URL]

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


  3. #3
    Registered
    Join Date
    Feb 2017
    Location
    United Kingdom
    Posts
    2
    Downloads
    0
    Uploads
    0

    Default Re: How does G02 and G03 work in terms of their maths ?

    Thanks for the reply Gerry, the g code that I generate looks like
    G0 X -35.355 Y -35.355
    M3 M8
    G0 Z 0.000
    G1 Z 0.000
    F400
    G2 X 35.355 Y 35.355 I 35.355 J 35.355
    G2 X -35.355 Y -35.355 I -35.355 J -35.355
    F0
    G1 Z 0.000
    G0 Z 0.000
    M9 M5
    G0 X 0.000 Y 0.000
    M2 (Program end)

    so I assume this is an absolute mode?
    So to draw a circle will I have to create an equation in which the x and y axes are increasing till reaching a specific value? I really don't know how to start so and tiny help is appreciated

    Regards
    A.



Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

How does G02 and G03 work in terms of their maths ?

How does G02 and G03 work in terms of their maths ?