585,762 active members*
4,177 visitors online*
Register for free
Login
Results 1 to 9 of 9
  1. #1
    Join Date
    Jun 2004
    Posts
    445

    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

  2. #2
    Join Date
    Aug 2004
    Posts
    145
    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
    Join Date
    Mar 2004
    Posts
    1306
    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
    Join Date
    Nov 2003
    Posts
    634
    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
    Join Date
    Mar 2003
    Posts
    35538
    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
    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)

  6. #6
    Join Date
    Jun 2004
    Posts
    445
    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
    Join Date
    Nov 2003
    Posts
    634

  8. #8
    Join Date
    Mar 2003
    Posts
    35538
    You might want to download the Mach2 manual from http://www.artofcnc.ca
    Lots of info in there.
    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)

  9. #9
    Join Date
    Mar 2018
    Posts
    15

    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.

Similar Threads

  1. Kiwa Excel 610
    By mattg2711 in forum DNC Problems and Solutions
    Replies: 4
    Last Post: 04-11-2012, 03:29 AM
  2. Replies: 3
    Last Post: 02-18-2010, 02:58 PM
  3. Editing Gcode in excel for 9 axis CNC ??
    By imanflash in forum G-Code Programing
    Replies: 5
    Last Post: 03-23-2009, 04:56 PM
  4. Excel 810
    By Dale283 in forum Fanuc
    Replies: 0
    Last Post: 01-16-2006, 12:47 AM
  5. Replies: 0
    Last Post: 03-10-2005, 07:46 PM

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
  •