603,970 active members*
3,114 visitors online*
Register for free
Login
Results 1 to 9 of 9
  1. #1
    Join Date
    Jun 2006
    Posts
    247

    excel program generators

    Thought I'd take the time to share something thats helped me out a lot in the last year.

    I do a lot of reading on here and haven't seen anything like this. I can't write VB and at the time we didn't have any cam software and the ol' Tree machine never had macros either. So, one day while I was writing a bunch of boring code for cutting back and forth in a slot, I decided to create the excel sheet I've attached. The "slot generator" page was my first, but you can see if you check out the file that I've found a lot of uses for this trick. Now this workbook stays open half the time on my desktop.

    We do a lot of probing, drilling, tapping, and countersinking hole patterns here with parts that are on fixtures and all different obstacles like clamps in the way.
    Naturally, when I program these tools to only retract when they have to, it saves time in the cycle, and when theres a lot of holes it saves a lot of time.
    When we first got the Haas, I wrote programs that retracted to initial plane (G98) between every hole, and found out that going back through and editing the code to remove unnecessary movement, it was very tedious and if I made a mistake, a crash could occur, a PROBE crash even.
    Now I have a sheet in the workbook that spits out a complete program that will: probe the center of a frame and a ring side by side, probe the Z variance at the hole locations on the ring, drill and tap the frame, and drill and counter-sink the ring. All with the retracts being setup in the early stages of fixture design.

    I couldn't write a macro this in-depth, I don't know how you'd write one to do what I'm doing, but I bet if there's a way, its a lot more complex, less flexible, and doesn't heve a nifty self-designed GUI to go with it. Or maybe you don't have macros on your machine. Most the macros I've written so far could be accomplished with an excel sheet like this. In fact, most of my macros start off as excel sheets.

    So there ya go,
    take my file, check it out, and start dreaming of ways you could use it or improve it.
    Just shout back at me and let me know what you come up with.
    Attached Files Attached Files

  2. #2
    Join Date
    Apr 2006
    Posts
    133

    My Excel is to old.

    I can't open an XLSM file with my version of Excel. Can you save it as an Excel Worksheet.

  3. #3
    Join Date
    Jun 2006
    Posts
    247
    as you wish...
    Attached Files Attached Files

  4. #4
    Join Date
    Jun 2008
    Posts
    128
    I have Excel 2000 so I could not open either file as well. I did a check and found a file from Microsoft "FileFormatConverters.exe" that once run does a file conversion for these files so they open in office 2000.

    This is an impressive looking set of function . You must have spent a lot of time building it.

    With your skills at writing macros visual basic would be easy to learn and you would find you could do more and do it faster than with macros. For most people figuring out the logic is the problem and you show that would not be your problem.

    George

  5. #5
    Join Date
    Jun 2006
    Posts
    247
    sorry about the file problem, if saving it as 97-2003 would help anybody I'd be glad to.

    Geroge, thanks for the encouragement
    but where should I start?
    A book?
    A class?
    A website?
    I only speak g-code and macro b for the time being and I taught myself that in the last three years

    I'd love to be writing real apps with VB, if I had some good recomendations I'd get started on it
    My limited searching for info on the topic usually yields a deluge thats hard to gain any direction from since so much of the lingo is unkown to me

  6. #6
    Join Date
    Jan 2006
    Posts
    4396
    Quote Originally Posted by george4657 View Post
    I have Excel 2000 so I could not open either file as well. I did a check and found a file from Microsoft "FileFormatConverters.exe" that once run does a file conversion for these files so they open in office 2000.

    This is an impressive looking set of function . You must have spent a lot of time building it.

    With your skills at writing macros visual basic would be easy to learn and you would find you could do more and do it faster than with macros. For most people figuring out the logic is the problem and you show that would not be your problem.

    George
    You might be able to use Open Office from SunMicro to open the file, and it is FREE!
    Toby D.
    "Imagination and Memory are but one thing, but for divers considerations have divers names"
    Schwarzwald

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

    www.refractotech.com

  7. #7
    Join Date
    Jun 2008
    Posts
    128
    Kendo
    To learn VB go to http://www.microsoft.com/Express/VB/
    Here you can download VB Express for free as well as tutorials and sample programs.
    I am amazed the Microsoft gives this away. I paid several hundred for visual studio years ago and now I use the free version of C# which is very similar to visual basic.

    George

  8. #8
    Join Date
    Apr 2005
    Posts
    3634
    Quote Originally Posted by george4657 View Post
    Kendo
    To learn VB go to http://www.microsoft.com/Express/VB/
    Here you can download VB Express for free as well as tutorials and sample programs.
    I am amazed the Microsoft gives this away. I paid several hundred for visual studio years ago and now I use the free version of C# which is very similar to visual basic.

    George



    I did the same, I bought VB.net 2003, then they started giving VB.net 2005/2008 away for free.

    Oh well, I still use the 2003 editor sometimes.
    Free DXF - vectorink.com

  9. #9
    Join Date
    Jun 2010
    Posts
    0

    Smile http://excelvbatutor.com/

    go to this site to learn excel and vb express together to write the program needed.

Similar Threads

  1. yaskawa encoders,tacho generators?
    By integerspin in forum CNC Machine Related Electronics
    Replies: 1
    Last Post: 02-12-2009, 10:21 PM
  2. g-code generators!
    By cyclestart in forum LinuxCNC (formerly EMC2)
    Replies: 10
    Last Post: 01-18-2008, 06:29 AM
  3. simple python g-code generators
    By Dan Falck in forum OpenSource Software
    Replies: 0
    Last Post: 11-26-2007, 11:37 PM
  4. Manual Pulse Generators
    By Michael M in forum CNC Machine Related Electronics
    Replies: 0
    Last Post: 09-28-2004, 11:19 PM

Posting Permissions

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