G code programing in a Book


Results 1 to 17 of 17

Thread: G code programing in a Book

  1. #1
    Member
    Join Date
    Nov 2005
    Location
    UK
    Posts
    42
    Downloads
    0
    Uploads
    0

    Default G code programing in a Book

    I now have my machine up and running on x and y and would like to start to understand g code ect I know some of it is easy to spot but I would like to be able to edit code ect can anyone suggest a book to start with I have programed before in Visal Basic
    I,m in the uk but dont mind waiting for the right book

    Thanks for any help

    Andrew Bishop

    Similar Threads:


  2. #2
    Registered
    Join Date
    Oct 2003
    Location
    USA
    Posts
    263
    Downloads
    0
    Uploads
    0
    Software For Metalworking
    http://closetolerancesoftware.com


  3. #3
    Member BlueChip's Avatar
    Join Date
    Jun 2003
    Location
    Massachusetts
    Posts
    205
    Downloads
    0
    Uploads
    0

    Default CNC Programming Training

    KipwareEDU ... www.KentechInc.com



  4. #4
    Registered
    Join Date
    May 2006
    Location
    USA
    Posts
    82
    Downloads
    0
    Uploads
    0

    Default

    Some machine and/or software manuals have a section on programming the machine.



  5. #5
    Prototyper pointcloud's Avatar
    Join Date
    Sep 2006
    Location
    USA
    Posts
    340
    Downloads
    0
    Uploads
    0

    Default books

    I would start with the book that came with my machine.
    If it is a home built machine then start with the machine control software book. It's a good idea to understand what the machine wants to start.

    G and M codes are easy if you understand where they go. The machine control book will give good examples of what to place where.

    I would not spend any money until I understand what my machine wants.
    After this you willl be suprised, books are not as machine specific just full of general info.
    You might end up buying a book but between this site, and the machine control book you should be in Great shape.
    A G and M code list is here on the site, but they will be different for a lot of machines.

    I hope this helps, and saves some $..
    Later...

    Hey check out my website...www.cravenoriginal.com
    Thanks Marc


  6. #6
    Member dertsap's Avatar
    Join Date
    Oct 2005
    Location
    canada
    Posts
    4230
    Downloads
    1
    Uploads
    0

    Default

    http://www.cncci.com/products/optional%20stop/spr05.htm


    not much need to buy books , all the info you need is available free on the internet
    a google search will come up with lots of stuff



  7. #7
    Member Switcher's Avatar
    Join Date
    Apr 2005
    Location
    United States
    Posts
    3634
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by andrewbishop66 View Post
    I now have my machine up and running on x and y and would like to start to understand g code ect I know some of it is easy to spot but I would like to be able to edit code ect can anyone suggest a book to start with I have programed before in Visal Basic
    I,m in the uk but dont mind waiting for the right book

    Thanks for any help

    Andrew Bishop
    I'll assume it's a diy cnc mill thats almost finished, since you said "X & Y" a didn't mention "Z".

    I would start with a program like www.ncplot.com (or something similar), they have a free version & a 15-day trial version.

    If you have worked with VB, consider yourself one step ahead of the game. Start working with things that are free (software trials, Google info.), then when you get up to speed, spend your money.

    I like NcPlot, you can adjust the g-code all you want, & see the results very easily.

    G-code is like any other programming language, you can write programs that are simple, or very complex.

    G & M codes are just a list of instructions, not all controls are created equal, especially M-codes (Machine Code).

    I think we could help you better, If we knew what control you are running (Mach3, etc...).




    .



  8. #8
    Member
    Join Date
    Nov 2005
    Location
    UK
    Posts
    42
    Downloads
    0
    Uploads
    0

    Default

    Sorry should have made that more clear Bridgeport clone Mach 3 I can draw simple things in Auto Cad use lazy cam to do the g code file but I like to understand what I,m seeing in code so that if I wish I can edit it

    thanks some of the links so far have been a help

    Andrew



  9. #9
    Prototyper pointcloud's Avatar
    Join Date
    Sep 2006
    Location
    USA
    Posts
    340
    Downloads
    0
    Uploads
    0

    Talking No problem

    Post a code and I will show you what each thing does? then you will get it a little better...

    Look it is not hard there are only so many G's and M's, and a few more letters but post it and we will go from there...

    Hey check out my website...www.cravenoriginal.com
    Thanks Marc


  10. #10
    Member
    Join Date
    Nov 2005
    Location
    UK
    Posts
    42
    Downloads
    0
    Uploads
    0

    Default

    here are two done on wizzards the first a drilling hole pattern the second cutting a circle I would like with practice be able to merge two files like this add stops for manual tool changes and small alterations


    (Program Posted for Steel Hard )
    G0 G49 G40.1 G17
    G80 G50 G90 G98
    G21 (mm)
    (***** Circular Hole Pattern *****)
    M6 T4
    M03 S242.6
    M8 (Flood On)
    G00 G43 H4 Z100
    G81 X110 Y60 Z-5 R0.125 F12.7
    X103.3013 Y85
    X85 Y103.3013
    X60 Y110
    X35 Y103.3013
    X16.6987 Y85
    X10 Y60
    X16.6987 Y35
    X35 Y16.6987
    X60 Y10
    X85 Y16.6987
    X103.3013 Y35
    G80
    M5 M9
    M30



    (Program Posted for Steel Hard )
    G0 G49 G40.1 G17
    G80 G50 G90 G98
    G21 (mm)
    (***** Circular Groove/Cutout *****)
    M6 T4
    M03 S242.6
    M8 (Flood On)
    G00G43 H4 Z0.1
    G00 X131.5 Y65.75
    G01 Z-1 F1.25
    G41 P5
    G01 X125.75 F2.5
    G03 X120 Y60 R5.75
    G02 X0 Y60 R60
    X120 Y60 R60
    G03 X125.75 Y54.25 R5.75
    G40
    G00 Z0.1
    G00 X131.5 Y65.75
    G01 Z-2 F1.25
    G41 P5
    G01 X125.75 F2.5
    G03 X120 Y60 R5.75
    G02 X0 Y60 R60
    X120 Y60 R60
    G03 X125.75 Y54.25 R5.75
    G40
    G00 Z0.1
    G00 X131.5 Y65.75
    G01 Z-3 F1.25
    G41 P5
    G01 X125.75 F2.5
    G03 X120 Y60 R5.75
    G02 X0 Y60 R60
    X120 Y60 R60
    G03 X125.75 Y54.25 R5.75
    G40
    G00 Z0.1
    G00 X131.5 Y65.75
    G01 Z-4 F1.25
    G41 P5
    G01 X125.75 F2.5
    G03 X120 Y60 R5.75
    G02 X0 Y60 R60
    X120 Y60 R60
    G03 X125.75 Y54.25 R5.75
    G40
    G00 Z0.1
    M5 M9
    M30


    thanks for the help



  11. #11
    Prototyper pointcloud's Avatar
    Join Date
    Sep 2006
    Location
    USA
    Posts
    340
    Downloads
    0
    Uploads
    0

    Red face No good

    Not much there... Tell me what you are doing and I will make you something to look at.

    You got to many G's tool comp off to many times and things like that.

    I would like for you to search MODAL on here the cnczone.
    Then Search circle G02 and G03.

    Go ahead and reply, I'll check back tonight and get you started tomorrow. I can make you a code in the morning pretty quick.
    You got the right idea just a little much for someone just starting.
    Later.

    Hey check out my website...www.cravenoriginal.com
    Thanks Marc


  12. #12
    Prototyper pointcloud's Avatar
    Join Date
    Sep 2006
    Location
    USA
    Posts
    340
    Downloads
    0
    Uploads
    0

    Talking Not crack just a little .

    Ok this is better with one little problem. Your groove cuts the entire time... You need it to come up then to the circle then into the material.

    N1 (Program Posted for Steel Hard )
    N11 G0 G49 G40.1 G17
    N21 G80 G71 G50 G90 G98
    N31 G21 (mm)
    N41 (***** Circular Hole Pattern *****)
    N51 M6 T4
    N61 M03 S242.6
    N71 M8 (Flood On)
    N81 G00 G43 H4 Z1.00
    N91 G81 X110. Y60. Z-5. R0.125 F12.7
    N101 X103.3013 Y85.
    N111 X85. Y103.3013
    N121 X60. Y110.
    N131 X35. Y103.3013
    N141 X16.6987 Y85.
    N151 X10. Y60.
    N161 X16.6987 Y35.
    N171 X35. Y16.6987
    N181 X60. Y10.
    N191 X85. Y16.6987
    N201 X103.3013 Y35.
    N211 G80
    N221 M5 M9
    N231 M30
    N271 (Program Posted for Steel Hard )
    N281 G0 G49 G40.1 G17
    N291 G80 G71 G50 G90 G98
    N301 G21 (mm)
    N311 (***** Circular Groove/Cutout *****)
    N321 M6 T4
    N331 M03 S242.6
    N341 M8 (Flood On)
    N342 G43 H4
    N351 G00 Z0.1
    N361 G00 X131.5 Y65.75
    N371 G01 Z-1. F1.25
    N381 G41 P5
    N391 G01 X125.75 F2.5
    N401 G03 X120. Y60. R5.75
    N411 G02 X0. Y60. R60.
    N421 X120. Y60. R60.
    N431 G03 X125.75 Y54.25 R5.75
    N441 G40
    N451 G00 Z0.1
    N461 G00 X131.5 Y65.75
    N471 G01 Z-2 F1.25
    N481 G41 P5
    N491 G01 X125.75 F2.5
    N501 G03 X120. Y60. R5.75
    N511 G02 X0. Y60. R60.
    N521 X120. Y60. R60.
    N531 G03 X125.75 Y54.25 R5.75
    N541 G40
    N551 G00 Z0.1
    N561 G00 X131.5 Y65.75
    N571 G01 Z-3. F1.25
    N581 G41 P5
    N591 G01 X125.75 F2.5
    N601 G03 X120. Y60. R5.75
    N611 G02 X0. Y60. R60.
    N621 X120. Y60. R60.
    N631 G03 X125.75 Y54.25 R5.75
    N641 G40
    N651 G00 Z0.1
    N661 G00 X131.5 Y65.75
    N671 G01 Z-4 F1.25
    N681 G41 P5
    N691 G01 X125.75 F2.5
    N701 G03 X120. Y60. R5.75
    N711 G02 X0. Y60. R60.
    N721 X120. Y60. R60.
    N731 G03 X125.75 Y54.25 R5.75
    N741 G40
    N751 G00 Z0.1
    N761 M5 M9
    N771 M30
    N781

    Screen shot is both combined.

    I like line numbers (notice lines by 10 starting w/1 this leaves room for changes) and you needed to tell it Inch or Metric I put G71 (metric/mm) also you needed decimals.(well ncplot did)

    Attached Thumbnails Attached Thumbnails G code programing in a Book-cnczone-help-1-jpg  
    Hey check out my website...www.cravenoriginal.com
    Thanks Marc


  13. #13
    Member
    Join Date
    Nov 2005
    Location
    UK
    Posts
    42
    Downloads
    0
    Uploads
    0

    Default

    So the N numbers are just line numbers the same as in a computer program M codes are for flood spindle ect T are for tool offsets and G seem a little bit more comlex OK so G0 is rapid position and G20 G21 inch mm what I would like is a programing explanation that why I thought a book 1 Ilke reading 2 its easier to sit in bed and read as oposed to my laptop

    Thanks for the help



  14. #14
    Prototyper pointcloud's Avatar
    Join Date
    Sep 2006
    Location
    USA
    Posts
    340
    Downloads
    0
    Uploads
    0

    Talking G and M

    Here is a link for my G and M's. http://www.camsoftcorp.com/prod02g.asp
    Most G's are the same on many machines.. M's can operate different things on different machines but most call similar ones.

    G70 and 71 are for in/mm they are modal (in the start with G90 and stuff for program start).

    Books are fine..

    Some machines do not need a G71/70 or G90/91 to start like Mach 3. It has those setting in the control software.

    Say I wanted to move from X0.Y0.Z.25 TO X8.Y14.Z.25, I could just type in the control G00(G0 SOME NEED 2 0'S)X8.Y14.Z.25 Then start. No jog...

    Notice I call Z each time. It is just a safe way + some machines need it too.

    Later

    Hey check out my website...www.cravenoriginal.com
    Thanks Marc


  15. #15
    Registered
    Join Date
    Nov 2006
    Location
    UK
    Posts
    31
    Downloads
    0
    Uploads
    0

    Default

    Try my book 'The Journeyman's Guide to CNC Machines' it covers all the basics for both turning and machining centres. The guide also cover G & M codes together with cycles and macro progamming, it also has room to add your own data as all controls and machines are different. It cost less than ÂŁ20 from www.lulu.com/bryanhurst or you can get it through Google books / Amazon etc.



  16. #16
    Member
    Join Date
    Nov 2005
    Location
    UK
    Posts
    42
    Downloads
    0
    Uploads
    0

    Default

    Have now placed an order with lulu

    Thanks look forward to getting it

    Andrew



  17. #17
    Member Switcher's Avatar
    Join Date
    Apr 2005
    Location
    United States
    Posts
    3634
    Downloads
    0
    Uploads
    0

    Default

    If you don't have the "Mach3 Mill" PDF (below), it will help you some.

    It includes G-M code list.

    I would stick with your specific control manual (Mach3) at first.

    Right Click & "Save Target As..." it's over 5meg.

    http://www.artsoftcontrols.com/docum...M3M1_84-A2.pdf

    .



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

G code programing in a Book

G code programing in a Book