Generating G code


Results 1 to 10 of 10

Thread: Generating G code

  1. #1
    Member Reallypistauf's Avatar
    Join Date
    Aug 2016
    Location
    United States
    Posts
    35
    Downloads
    0
    Uploads
    0

    Default Generating G code

    Is there some kind (or kinds) of a drawing program that all you do is draw the profile you want to make and the program will generate the G code to run your Mach 3 sotware for it?

    Similar Threads:


  2. #2
    Community Moderator Jim Dawson's Avatar
    Join Date
    Dec 2013
    Posts
    5717
    Downloads
    0
    Uploads
    0

    Default Re: Generating G code

    What you are talking about is CAD/CAM software.

    The Computer Aided Drafting software is what you use to generate the drawing. The Computer Aided Manufacturing software is what you use to generate the G-code from the drawing.

    There is a lot of software available to do both. Many programs have both functions built in. They range in price from free to astronomical.

    Google CAD software and CAM software. Fusion360 is a full featured, professional CAD/CAM package that is free to startups and hobbyists, but it has a bit of a learning curve. I personally like CamBam for quick jobs, it has limited drafting capability, but the CAM functions are easy to learn.



  3. #3
    Member CitizenOfDreams's Avatar
    Join Date
    Nov 2012
    Location
    USA
    Posts
    1267
    Downloads
    4
    Uploads
    0

    Default Re: Generating G code

    Another vote for CamBam. It's a great program for drawing and machining 2.5D parts. Also, it's not cloud- or subscription-based - once you pay for it, it's yours to keep. And the trial terms are outright generous - 40 program launches with full functionality.

    Here is an example of a part you can slap together in CamBam in two minutes or so:

    Generating G code-cb2dbf9819e2-jpg



  4. #4
    Member Reallypistauf's Avatar
    Join Date
    Aug 2016
    Location
    United States
    Posts
    35
    Downloads
    0
    Uploads
    0

    Default Re: Generating G code

    I only need something for a 2 axis machine so will only be drawing in 2 dimensions.



  5. #5
    Member Reallypistauf's Avatar
    Join Date
    Aug 2016
    Location
    United States
    Posts
    35
    Downloads
    0
    Uploads
    0

    Default Re: Generating G code

    And I need a SIMPLE, EASY TO UNDERSTAND AND USE program that I can input G-code to and it will make a 2D drawing of the tool path the code will generate to view.

    I watched the intro video for Cambam - is wayy over my head!! I need to hire a machine operator that understands this sh_t!

    Last edited by Reallypistauf; 06-09-2017 at 11:51 AM.


  6. #6
    Member CitizenOfDreams's Avatar
    Join Date
    Nov 2012
    Location
    USA
    Posts
    1267
    Downloads
    4
    Uploads
    0

    Default Re: Generating G code

    Well, to operate a CNC machine, you do need a machine operator. You can hire one, or you can learn to be one. At the level we are talking about - drawing 2D profiles and making them into G-code - it does not take a rocket surgeon. If thousands of hobbyists have done it, so can you.



  7. #7
    Community Moderator Al_The_Man's Avatar
    Join Date
    Dec 2003
    Location
    Canada
    Posts
    24216
    Downloads
    0
    Uploads
    0

    Default Re: Generating G code

    You could always buy Peter Smids book (C/W CD) and learn G-code.
    Al.

    CNC, Mechatronics Integration and Custom Machine Design

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.


  8. #8
    Community Moderator Jim Dawson's Avatar
    Join Date
    Dec 2013
    Posts
    5717
    Downloads
    0
    Uploads
    0

    Default Re: Generating G code

    Quote Originally Posted by Reallypistauf View Post
    And I need a SIMPLE, EASY TO UNDERSTAND AND USE program that I can input G-code to and it will make a 2D drawing of the tool path the code will generate to view.

    I watched the intro video for Cambam - is wayy over my head!! I need to hire a machine operator that understands this sh_t!
    You could hand write the G code and then view the result in the Mach3 view window. Mach3 allows you to input G code manually.

    Copy the following code into the Mach3 editor and see what it looks like on the viewer. this is a 4 inch square with a 2 inch dia pocket in the center. Uses a 0.5 inch tool.

    ( Made using CamBam - CamBam CNC Software )
    ( Untitled 6/9/2017 09:51:59 )
    ( T1 : 0.5 )
    G20 G90 G91.1 G64 G40
    G0 Z0.25
    ( T1 : 0.5 )
    T1 M6
    ( Profile1 )
    G17
    M3 S1000
    G0 X-2.25 Y-2.0
    G0 Z0.0675
    G1 F5.0 Z-0.01
    G1 Y2.0
    G2 X-2.0 Y2.25 I0.25 J0.0
    G1 X2.0
    G2 X2.25 Y2.0 I0.0 J-0.25
    G1 Y-2.0
    G2 X2.0 Y-2.25 I-0.25 J0.0
    G1 X-2.0
    G2 X-2.25 Y-2.0 I0.0 J0.25
    ( Pocket1 )
    S1000
    G0 Z0.25
    G0 X0.05 Y0.0
    G0 Z0.0675
    G1 Z-0.01
    G3 X-0.025 Y0.0433 I-0.05 J0.0
    G3 Y-0.0433 I0.025 J-0.0433
    G3 X0.05 Y0.0 I0.025 J0.0433
    G1 X0.15
    G3 X-0.075 Y0.1299 I-0.15 J0.0
    G3 Y-0.1299 I0.075 J-0.1299
    G3 X0.15 Y0.0 I0.075 J0.1299
    G1 X0.35
    G3 X-0.175 Y0.3031 I-0.35 J0.0
    G3 Y-0.3031 I0.175 J-0.3031
    G3 X0.35 Y0.0 I0.175 J0.3031
    G1 X0.55
    G3 X-0.275 Y0.4763 I-0.55 J0.0
    G3 Y-0.4763 I0.275 J-0.4763
    G3 X0.55 Y0.0 I0.275 J0.4763
    G1 X0.75
    G3 X-0.375 Y0.6495 I-0.75 J0.0
    G3 Y-0.6495 I0.375 J-0.6495
    G3 X0.75 Y0.0 I0.375 J0.6495
    G0 Z0.25
    M5
    M30



  9. #9
    Community Moderator Al_The_Man's Avatar
    Join Date
    Dec 2003
    Location
    Canada
    Posts
    24216
    Downloads
    0
    Uploads
    0

    Default Re: Generating G code

    For expediency in typing a program in manually you could remember that many G codes are Modal, IOW no need to repeat them on each line for brevity.
    They stay modal until changed Ex: G01 and G02.

    The modal groups for G-codes are: Group 1 = {G00, G01, G02, G03, G38.2, G80, G81, G82, G84, G85, G86, G87, G88, G89} motion. Group 2 = {G17, G18, G19} plane selection. Group 3 = {G90, G91} distance mode.
    Al.

    Last edited by Al_The_Man; 06-09-2017 at 01:47 PM.
    CNC, Mechatronics Integration and Custom Machine Design

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.


  10. #10
    Member handlewanker's Avatar
    Join Date
    Sep 2006
    Location
    Australia
    Posts
    6463
    Downloads
    0
    Uploads
    0

    Default Re: Generating G code

    Hi....try Fusion 360 it has CAM capability too....as a learning curve you need to start at the bottom of the ladder if you want to get to the first rung.....the next rung is easier etc etc

    There are no short cuts to proficiency and experience is just another word for making mistakes that you should have learned not to.

    To understand the basics of G code programming, go onto UTUBE and watch a few videos.......over and over again until you grasp the fundamentals.

    I learned the basics of G code by applying the 9 G code examples from CNC cookbook and watched the vids on UTUBE.

    If you hand write a short G code sequence that works, it's easier afterwards to add to it and go on from there.

    At all times, apply the correcct sequence for G code that follows the rules or Mach 3 will stop you dead at each mistake......that is one way to analyse what you are not doing right.

    BTW.....you learned to read symbols that started with ABC and 123 so that you could read, write and count.....G code is the same method, only you're trying to communicate with a machine.
    Ian.



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

Generating G code

Generating G code