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 > Daewoo/Doosan


Daewoo/Doosan Discuss Daewoo/Doosan machines here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 06-26-2008, 09:32 PM
 
Join Date: May 2008
Location: usa
Posts: 1
john terrell is on a distinguished road
Macro Programming

I've been programming with esprit cam software for 9 years and just recently
have been trained to start using Master Cam X2 cam software.I like both
very well but in the work I do, I need to be able to program
using macros. I 've had a programming class on macros recently and
having a hard time understanding how to write a macro program.
Any tips on how I can pick this up within a reasonable amount of time.
Reply With Quote

  #2   Ban this user!
Old 06-29-2008, 09:56 AM
 
Join Date: May 2007
Location: USA
Posts: 913
g-codeguy is on a distinguished road

John, sorry that you haven't received an answer yet. I can't help you either. You are already further along than I am since you have taken a class on it. I have been teaching myself, although I do want to take the online course. Haven't gotten the nerve to sign up yet.

Have you visited the Parametric Programming section yet? It is under G-Code Programming. You might get some answers there. You will also find some examples of Parametric programming.

Do you have any specific questions? We all like to help when we can. Best advice I can give is to just start doing it. I only program for lathes, so am limited in my use of parametric programming.

I started off by writing a master program for each thread size (from 10-32 to 1/2-20) for a family of studs we make for a sister company. It required changing one variable to start machining another part. Diameters were all controlled by 500 series macros. No longer had to go out and modify a program because of taper or because one diameter was on size while another was a few tenths off. Also saved me a ton of programming.

I then put my Barfeed and Cut-off operations into a subprogram. At first I used 500 series macros, but when we got a new family of studs, I started running out of unused variables, and so went to the 100 series variables. Then I learned how to use the G65 Macro call. Now both of these operations are not only called by one block, but all the variables are also set in that block. It eliminated several blocks from my programs. I picked letters that made it easy for the operators to understand which had to be changed when necessary. T for station number (Tool) being used. F for feedrate, X for X-starting position, etc. Course not every variable works out that way.

I got tired of writing the same part program for the same lathe just because a different size stock was being used. First I switched to a G71 canned cycle to make my life easier. Then I added a variable for the stock size. Problem was that I still needed to change the DOC manually for best results. Then I asked myself why a WHILE statement couldn't be written to handle that. So I did. It will also change the feedrate based on the DOC.

Guess what I am saying (in a rather long way ) is that you will learn more ways of using variable/parametric programming as you use it. You will also come to understand it better as you use it.

I have a parametric program (sent to me by a person posting here, and never used yet) that will do grooves based on the assigned variables. My next project is to write my own. His puts 45 degree chamfers on it, but I always swing radii to avoid any burrs being pushed back. Talking about on the 45 degree chamfer moves. Sometimes I only need a radius at the OD/ID, no 45 degree. This will require a little more complicated routine.

Most of the guys posting here are so far ahead of me that it isn't funny. I blame a lot of it on only having worked for this company, and not being able to program for mills. Working at different companies will give you the opportunity to learn more things, but I have never been one to jump from company to company. Fear, I guess.
Reply With Quote

  #3   Ban this user!
Old 08-18-2008, 06:06 PM
Chipload's Avatar  
Join Date: Apr 2007
Location: United States
Posts: 41
Chipload is on a distinguished road

I have done some macro programming. I learn it after reviewing the following book:

Fanuc CNC Custom Macros: Programming Resources For Fanuc Custom Macros B Users

By: Peter Smid

I found it easy to follow, unlike the Fanuc manual.
Reply With Quote

  #4   Ban this user!
Old 08-18-2008, 08:16 PM
 
Join Date: May 2007
Location: USA
Posts: 913
g-codeguy is on a distinguished road

Originally Posted by Chipload View Post
I have done some macro programming. I learn it after reviewing the following book:

Fanuc CNC Custom Macros: Programming Resources For Fanuc Custom Macros B Users

By: Peter Smid

I found it easy to follow, unlike the Fanuc manual.
I've heard of that book before. Guess I will need to order a copy for myself. Thanks for giving me the title of the book and the author. Appreciate it.

EDIT: Book is ordered.

Last edited by g-codeguy; 08-18-2008 at 08:39 PM.
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
Macro Programming danhaskell Fanuc 1 05-07-2008 02:04 PM
Macro Programming Intro? I_flungdung G-Code Programing 2 04-14-2008 05:16 PM
Macro Programming dapoling G-Code Programing 4 01-18-2008 11:33 AM
Do I need macro programming in future koppis General CAM Discussion 3 09-19-2006 01:44 PM
Macro/Parametric Programming screensnot Fadal 4 03-28-2005 08:45 PM




All times are GMT -5. The time now is 09:06 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