585,737 active members*
4,870 visitors online*
Register for free
Login
IndustryArena Forum > Events, Product Announcements Etc > News Announcements > How does G02 and G03 work in terms of their maths ?
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2017
    Posts
    2

    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

  2. #2
    Join Date
    Mar 2003
    Posts
    35538

    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
    http://www.thecncwoodworker.com/2017.html

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

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

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

  3. #3
    Join Date
    Feb 2017
    Posts
    2

    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.

Similar Threads

  1. Maths - 250 dpi/0.1 mm @ 400 mm/sec - actually, wow...
    By ELaser in forum Laser Engraving / Cutting Machine General Topics
    Replies: 0
    Last Post: 01-06-2015, 08:59 PM
  2. Post Processor Maths - - argh my head hurts
    By awemawson in forum FeatureCAM CAD/CAM
    Replies: 0
    Last Post: 11-28-2012, 01:45 PM
  3. Machinery's Handbook, figure is wrong? Need Maths advice please.
    By ImanCarrot in forum Mechanical Calculations/Engineering Design
    Replies: 7
    Last Post: 05-07-2010, 12:58 PM
  4. Plans in laymen's terms
    By Goran321 in forum Joes CNC Model 2006
    Replies: 15
    Last Post: 03-24-2008, 07:40 PM
  5. Complicated Maths Problem!...Long Shot...
    By diarmaid in forum Hobby Discussion
    Replies: 17
    Last Post: 10-17-2006, 09:24 AM

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
  •