Using Excel for Gcode


Results 1 to 9 of 9

Thread: Using Excel for Gcode

  1. #1
    Registered itsme's Avatar
    Join Date
    Jun 2004
    Location
    United Kingdom
    Posts
    445
    Downloads
    0
    Uploads
    0

    Default Using Excel for Gcode

    Hi there,

    Firstly, I don't have any experience with Gcode and don't have a CNC machine (hopefully this will change in the near future...).

    I have got the parametric equations for a shape that I would like to machine. I have used Excel to work out some points on this curve (720 to be exact). So now I have got 720 different (x,y) coordinates and all I really need to know is if it is possible to turn these into some nice Gcode that will make my shape?

    Any thuoghts on this?

    Regards
    Warren

    Similar Threads:


  2. #2
    Registered
    Join Date
    Aug 2004
    Location
    Greece
    Posts
    145
    Downloads
    0
    Uploads
    0

    Default

    Yes, it can be done, I've done it (BTW Excel can do 2d CNC simulation too, using a graph). You just have to add G & M commands to the coordinates you have, along with feeds etc. I guess since you have calculated distinctive points on the curves you'll be using G01 most of the time.



  3. #3
    Member RotarySMP's Avatar
    Join Date
    Mar 2004
    Location
    Vienna, Austria
    Posts
    1306
    Downloads
    7
    Uploads
    0

    Default

    Excel is great for hand coding G code. You can use the auto fill function for generating line numbers, or filling a whole column with G's.

    Regards,
    Mark


  4. #4
    Registered buscht's Avatar
    Join Date
    Nov 2003
    Location
    United States
    Posts
    634
    Downloads
    0
    Uploads
    0

    Default

    Here's a simple excel formula example. If you can program in VBA, you can create all kinds of automated G code routines.

    Let's say you want the G gode in column A, X coordinates are in column B, Y in C.

    Put this formula in A1
    ="G01X"&B1&"Y"&"C1"&"F300"

    copy this down the length of the list and manually add a "M02" at the end.

    There is a little more set up than this, you have to add some commands specific to your machine, but its pretty easy.

    I would then copy column A and "paste special" values to get just leave the data. Delete colums B and C, then save out as a text file.



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

    Default

    I'd put spaces before the X,Y,C and F, to make it a little more readable. jmo

    ="G01 X"&B1&" Y"&" C1"&" F300"

    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)


  6. #6
    Registered itsme's Avatar
    Join Date
    Jun 2004
    Location
    United Kingdom
    Posts
    445
    Downloads
    0
    Uploads
    0

    Default

    Thanks everyone - it worked.

    I used Excel with the line you suggested, generated some G-code and stuck it into CutViewer. I was shocked - the exact shape appeared in front of me - WOW!!! I also added in some z axis movements to make it a bit more exciting.

    I have downloaded TurboCNC. I have seen that the help file has a list of g and m codes. Would this be a good place to learn all the other functions of gcode? Where has everyone else learnt about it? I think I kind of know the basics now though...

    Thanks again

    Regards
    Warren



  7. #7
    Registered buscht's Avatar
    Join Date
    Nov 2003
    Location
    United States
    Posts
    634
    Downloads
    0
    Uploads
    0


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

    Default

    You might want to download the Mach2 manual from http://www.artofcnc.ca
    Lots of info in there.

    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)


  9. #9
    Member xman2000's Avatar
    Join Date
    Mar 2018
    Posts
    15
    Downloads
    6
    Uploads
    0

    Default Re: Using Excel for Gcode

    Quote Originally Posted by itsme View Post
    Thanks everyone - it worked.

    I used Excel with the line you suggested, generated some G-code and stuck it into CutViewer. I was shocked - the exact shape appeared in front of me - WOW!!! I also added in some z axis movements to make it a bit more exciting.

    I have downloaded TurboCNC. I have seen that the help file has a list of g and m codes. Would this be a good place to learn all the other functions of gcode? Where has everyone else learnt about it? I think I kind of know the basics now though...

    Thanks again

    Regards
    Warren
    Hi Itsme - Warren, please you can share your Excel and VB files of CNC and Cut ? i am like more work with Excel and VB ! thank you very mutch. Xman200.



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

Using Excel for Gcode

Using Excel for Gcode