586,643 active members*
2,805 visitors online*
Register for free
Login

Thread: Gcode

Page 1 of 2 12
Results 1 to 20 of 25
  1. #1
    Join Date
    Aug 2006
    Posts
    119

    Gcode

    Hi can anybody help me understand g code
    i need gcde for a 5" square

    Frank

  2. #2
    Join Date
    Mar 2007
    Posts
    207
    G01 (set linear moves - assume starting point is 0,0 for your square)

    F10.0 (feed rate is 10 ipm)

    X5.000 (first edge 0,0 to 5,0)
    Y5.000 (second edge 5,0 to 5,5)
    X0.000 (third edge 5,5 to 0,5)
    Y0.000 ( fourth edge and back to start 0,5 to 0,0)

    M30 (end of program)

  3. #3
    Join Date
    Aug 2006
    Posts
    119

    thanx

    ok is this correct

    G01
    F10
    X5.00
    Y5.000
    X0.000
    Y0.000

  4. #4
    Join Date
    Apr 2005
    Posts
    3634
    G90 (absolute)
    G01
    F10

    X5.0
    Y5.0
    X0.0
    Y0.0

    M30

  5. #5
    Join Date
    Aug 2006
    Posts
    119

    L

    that only made an L

    Frank

  6. #6
    Join Date
    Aug 2006
    Posts
    119

    ok

    sorry i didn't zero the dro's that did it

  7. #7
    Join Date
    Apr 2005
    Posts
    3634
    G90 (absolute)

    G00
    X0.0 Y0.0 (zero out X-axis & Y-axis)

    G01
    F10

    X5.0
    Y5.0
    X0.0
    Y0.0

    M30

  8. #8
    Join Date
    Aug 2006
    Posts
    119
    ok what about 5" circule what would be the gcode for that

  9. #9
    Join Date
    Aug 2006
    Posts
    119
    i think its time to buy Mach and use the wizards

  10. #10
    Join Date
    Apr 2005
    Posts
    3634
    With the g-code already posted, you will still need to compensate for tool offset.


    .

  11. #11
    Join Date
    Aug 2006
    Posts
    119
    thanks switcher like th ecurley pic

  12. #12
    Join Date
    Oct 2006
    Posts
    51
    personnally, i like to program from center when possible. it just makes things easier imho.
    so say x0 y0 is the center of the part
    no cutter comp, 1/2 endmill

    g0 g90 x-2.75y-3.
    g01z__f___
    g01y2.75
    g01x2.75
    g01y-2.75
    g01x-3.
    g0z1.

  13. #13
    Join Date
    Jul 2007
    Posts
    3
    i think he wanted a 5" square not a 5" pocket you all are going CCW

  14. #14
    Join Date
    Oct 2006
    Posts
    51
    i think he wanted a 5" square not a 5" pocket you all are going CCW
    not me.
    i think programming from center is easiest.

  15. #15
    Join Date
    Mar 2007
    Posts
    207
    Frankg521,

    For your 5" circle you would use G02 if you wanted the cutter to travel in a clockwise path, and G03 for counter-clockwise.

    What HIRAH said about being easier to start from the center is even more true for doing circles.

    I typically use two G02's or two G03's to do a full circle, each one traveling 180 degrees. You will have to input the center of the circle via I and J values for each G02/G03.

    -John

  16. #16
    Join Date
    Oct 2006
    Posts
    51
    for a circle, i would go this way with no cutter comp, 1/2" endmill,5" diameter.
    x0 y0 is the center of the circle

    g0x-2.75y-3.25(enough to be off the part)
    g01z-____f_____
    g01y0
    g02I2.75
    g01y.3( to get past center of the starting point of the circle)
    g0z1.

    or split it up into 2 like John3said

    g0x-2.75y-3.25(enough to be off the part)
    g01z-____f_____
    g01y0
    g02x2.75y0r2.75
    g02x-2.75y0r2.75
    g01y.3( to get past center of the starting point of the circle)
    g0z1.

  17. #17
    Join Date
    Jul 2007
    Posts
    3
    G02 is for O.D. G03 is for I.D. programming from center is great in G91 for Sub
    Routing

  18. #18
    Join Date
    Oct 2006
    Posts
    51
    [QUOTE][/G02 is for O.D. G03 is for I.D.QUOTE]

    only if you are climb milling.
    you can use either g02 or g03, but 1 way will be conventional mill.

  19. #19
    Join Date
    Jun 2003
    Posts
    2103
    Before you can had code for a 5" sq you first need to know your starting position, how the material is going to be oriented on the machine and the bit size. To just randomly write code is fun......but it ain't gonna work!

    Material is 6X6"
    Lower left hand corner is x0y0. Set the bit .250" over the material thickness.

    using a .5" bit
    absolute G90
    G00X.250Y.250
    G01Z-.........WHATEVER YOU NEED
    G01Y5.75
    G01X5.75
    G01Y.250
    G01X.250
    G00Z0.00
    G00X0.00Y0.00

    This will leave nothing outside the cut of the bit for clamping but it is for example anyway. This is for a clockwise cut which will be a climb cut on the part.

    Mike
    No greater love can a man have than this, that he give his life for a friend.

  20. #20
    Join Date
    Jul 2007
    Posts
    6
    wee

Page 1 of 2 12

Similar Threads

  1. Gcode I think
    By Mr.Chips in forum DIY CNC Router Table Machines
    Replies: 2
    Last Post: 10-27-2006, 12:52 AM
  2. Help with Gcode
    By xairflyer in forum G-Code Programing
    Replies: 2
    Last Post: 04-11-2005, 02:10 AM
  3. Replies: 0
    Last Post: 03-10-2005, 07:46 PM
  4. Gcode help
    By ynneb in forum G-Code Programing
    Replies: 8
    Last Post: 01-30-2005, 06:13 AM
  5. gcode to gcode converter
    By july_favre in forum Uncategorised CAM Discussion
    Replies: 4
    Last Post: 05-25-2004, 12:51 AM

Posting Permissions

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