CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > MetalWorking Machines > Haas Mills


Haas Mills Discuss Haas machinery here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 03-10-2009, 09:28 AM
 
Join Date: Jun 2006
Location: usa
Posts: 236
kendo is on a distinguished road
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
File Type: zip CNC Workbook.zip‎ (447.2 KB, 96 views)
Reply With Quote

  #2   Ban this user!
Old 03-10-2009, 01:12 PM
 
Join Date: Apr 2006
Location: usa
Posts: 128
JWK42 is on a distinguished road
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.
Reply With Quote

  #3   Ban this user!
Old 03-10-2009, 02:58 PM
 
Join Date: Jun 2006
Location: usa
Posts: 236
kendo is on a distinguished road

as you wish...
Attached Files
File Type: zip CNC Workbook c.zip‎ (433.0 KB, 86 views)
Reply With Quote

  #4   Ban this user!
Old 03-10-2009, 08:37 PM
 
Join Date: Jun 2008
Location: Canada
Posts: 70
george4657 is on a distinguished road

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
Reply With Quote

  #5   Ban this user!
Old 03-12-2009, 09:58 AM
 
Join Date: Jun 2006
Location: usa
Posts: 236
kendo is on a distinguished road

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
Reply With Quote

Sponsored Links
  #6  
Old 03-12-2009, 10:45 AM
tobyaxis's Avatar
Moderator
 
Join Date: Jan 2006
Location: USA
Posts: 4,396
tobyaxis is on a distinguished road

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
Reply With Quote

  #7   Ban this user!
Old 03-12-2009, 07:54 PM
 
Join Date: Jun 2008
Location: Canada
Posts: 70
george4657 is on a distinguished road

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
Reply With Quote

  #8  
Old 03-12-2009, 08:15 PM
Switcher's Avatar
Moderator
 
Join Date: Apr 2005
Location: Vectorink.com
Posts: 3,660
Switcher is on a distinguished road

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 Files - Vectorink.com - myDXF.blogspot.com
Reply With Quote

  #9   Ban this user!
Old 03-15-2012, 07:23 PM
 
Join Date: Jun 2010
Location: United States
Posts: 1
Legacy_Heirloom is on a distinguished road
Smile http://excelvbatutor.com/

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

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
From Stirling engines to thermoacoustic generators greybeard Stirling Engines 33 03-11-2009 02:20 PM
yaskawa encoders,tacho generators? integerspin General Electronics Discussion 1 02-12-2009 03:21 PM
g-code generators! cyclestart LinuxCNC (formerly EMC2) 10 01-17-2008 11:29 PM
simple python g-code generators Dan Falck OpenSource Software 0 11-26-2007 04:37 PM
Manual Pulse Generators Michael M General Electronics Discussion 0 09-28-2004 05:19 PM




All times are GMT -5. The time now is 11:52 AM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361