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! > CAM Software > General CAM Discussion


General CAM Discussion Discuss CAD/CAM software and Design software methods here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 06-03-2003, 04:15 PM
 
Join Date: Jun 2003
Location: Minnesota
Posts: 20
cncfreak is on a distinguished road
Cool Macros

Hi, I'd love to talk to people about Macros used in programming. I've created some of my own for use on a Haas VF-2. I have found little info in the web other than Haascnc.com and people that want to sell you something. It would be great to get something going here to share macros and come up with ideas for new macros.
Thanks
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 06-03-2003, 06:24 PM
 
Join Date: May 2003
Location: Brisbane Australia
Posts: 44
MPE racing is on a distinguished road
Hi CNCfreak, I've done some macro programming. Mostly I've used it for changing tool diameters between loops to create tapers. I've also written one that does pocketing.

Go to www.programmingunlimited.com
This is a pretty good site. I would suggest you buy the book off him.
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 06-03-2003, 06:48 PM
MachineSMM's Avatar  
Join Date: Mar 2003
Location: Minnesota
Posts: 34
MachineSMM is on a distinguished road
I have made a lot of Macros. Email me tomorrow and I can send you a whole bunch of them that I have made and gotten from other people.

Any questions in particular that I can help with. If there is anything that you do all of the time in your shop, you must make a macro for it. It can make your life much easier.

I use a Cad/Cam package called VX, www.vx.com. They have an internal macro language that I used to automate the programming fo some of are standard molds. It use to take about 2-4 hours to program these molds but now All you do is enter a couple of variables and presto the program is ready for the CNC.

Please fell free to contact me anytime
__________________
MachineSMM
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 06-03-2003, 09:29 PM
hardmill's Avatar  
Join Date: Mar 2003
Location: United States
Posts: 499
hardmill is on a distinguished road
WHAT!!!!!!.........

Who said macro?
Cool, what do you got in mind?
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 06-04-2003, 08:32 AM
 
Join Date: Jun 2003
Location: Minnesota
Posts: 20
cncfreak is on a distinguished road
Well I have two macros now one for face milling and one for side milling on a Haas mill. This mill is used in our Toolroom and we are always taking sawed stock and milling it square. When ever I write a cnc program I alway assume the stock is already milled to size and square. Becouse I never know what size of stock the toolmaker will grab. This way the toolmaker can grab any size stock they want and use the macros to quickly mill it to size and square. Then my Cad/Cam program will do the rest. I'm looking to do some macros on the Haas lathe but have found out that you cann't use macros in canned turnning cycles.
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 06-04-2003, 08:34 AM
 
Join Date: Jun 2003
Location: Minnesota
Posts: 20
cncfreak is on a distinguished road
If anyone has found a good use for macros for a lathe, I would love to hear about it.
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 06-04-2003, 10:38 PM
 
Join Date: Mar 2003
Location: Eastern CT
Posts: 114
Turbine is on a distinguished road
I emailed ya a good un. I have more.
__________________
"The source of expertise is not in the memorization of the minute details of a subject but in the thorough understanding of the fundamental concepts on which it is based." --author unknown
Tweet this Post!Share on Facebook
Reply With Quote

  #8   Ban this user!
Old 06-04-2003, 10:50 PM
 
Join Date: Mar 2003
Location: Eastern CT
Posts: 114
Turbine is on a distinguished road
Here's a mill one to blast a circle pocket without a start hole. It has slick helical motion. My favorite lathe one is in your email. (Sorry guys... It wouldn't be right for me to post that one here as I did not write it.)
  • O9001
    (VERSION 1.1 - 2/17/03)
    (X=X CENTER)
    (Y=Y CENTER)
    (Z=FINAL DEPTH)
    (B=BORE DIAMETER)
    (C=CUTTER DIAMETER)
    (D=DIRECTION, 2 OR 3)
    (W=DEPTH PER PASS)
    (R=START PLANE OF MATERIAL)
    (F=FEED RATE)
    #30=#4001
    #31=#4003
    #32=#4109
    #33=#5043-#5083
    IF[#24EQ#0]THEN#24=#5041
    IF[#25EQ#0]THEN#25=#5042
    IF[#18EQ#0]THEN#18=#33
    IF[#9EQ#0]THEN#9=#32
    IF[#26EQ#0]OR[#2EQ#0]OR[#3EQ#0]OR[#7EQ#0]OR[#23EQ#0]THEN#3000=1(INSUFFICIENT INFORMATION SUPPLIED)
    IF[#23LE0]THEN#3000=1(ILLEGAL W SPECIFIED)
    IF[#2LE0]OR[#3LE0]THEN#3000=1(BOTH BORE AND CUTTER DIA MUST BE GREATER THAN ZERO)
    IF[#26GE#18]THEN#3000=1(DEPTH MUST BE LESS THAN START POINT)
    IF[#26GT[#18-#23]]THEN#3000=1(W VALUE TOO GREAT)
    IF[#3GE#2]THEN#3000=1(CUTTER CAN NOT BE BIGGER OR EQUAL TO BORE DIAMETER)
    IF[#7EQ2]OR[#7EQ3]GOTO5
    #3000=1(ILLEGAL DIRECTION SPECIFIED)
    N5#29=#2/2-#3/2
    G00G90X#24Y#25
    Z[#18+#23]
    #18=#18-#23
    G01G91X#29Z-#23F#9
    N10G#7X0.Y0.Z-#23I-#29J0.
    IF[#18EQ#26]GOTO15
    #18=#18-#23
    IF[#18GT#26]GOTO10
    #23=#18+#23-#26
    #18=#26
    GOTO10
    N15G#7X0.Y0.I-#29J0.
    G#7X-#29Y0.I-[#29/2]J0.
    G00G90Z#33
    G#30G#31F#32
    M99
__________________
"The source of expertise is not in the memorization of the minute details of a subject but in the thorough understanding of the fundamental concepts on which it is based." --author unknown
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 06-05-2003, 11:13 AM
 
Join Date: Jun 2003
Location: Minnesota
Posts: 20
cncfreak is on a distinguished road
Hay, Turbine I didn't recieve your e-mail.
and I cann't e-mail you through this board.
Thanks.
Tweet this Post!Share on Facebook
Reply With Quote

  #10   Ban this user!
Old 06-05-2003, 10:21 PM
 
Join Date: Mar 2003
Location: Eastern CT
Posts: 114
Turbine is on a distinguished road
freak,
The program is too long.
I could not PM it either. There is a 3000 char. limit.
Check your PM anyways I sent you my email.
__________________
"The source of expertise is not in the memorization of the minute details of a subject but in the thorough understanding of the fundamental concepts on which it is based." --author unknown
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 07-04-2003, 07:37 PM
 
Join Date: Jul 2003
Location: southern indiana
Posts: 126
ty1295 is on a distinguished road
If anyone has found a good use for macros for a lathe, I would love to hear about it.
I have developed at work a macro for turning aerospace piston rings. Basically you give info on raw material, tooling, speeds/feeds, and finshed part size. Macro then machines rings, keeping both turretts (4 axis lathe) in sync.

I also have sub running that double check operator has not changed chuck barriers or X offsets on machine, and either automatically fixes them, or throw up an alarm.

Program is now 4 subs, and the main totalling 6-7 pages. In the 2 + years it has been used, I bet it has machined close to a 1/2 million rings. Has saved MANY hours, and prevented several crashes.

I can't post the program, since it belongs to work, but I can guide in developing yours.

All mine was done on an Okuma, but other controls all operate similar.

I find myself using small macros even when doing simple 1 off parts. For example I tend to leave my math in the programs.

(G1 X=3.0+.05)

Helps me when I come back later, remeber where the numbers are coming from.
Tweet this Post!Share on Facebook
Reply With Quote

  #12   Ban this user!
Old 08-11-2003, 09:36 PM
 
Join Date: Aug 2003
Location: conn.
Posts: 4
nocamhere is on a distinguished road
repeat macros

Has anyone written a macro to repeat a subprogram x number of times? We do alot of repeated work at our shop. we'll load a large piece of stock into the machine and machine a profile into the stock. We then repeat the profile over in x...then the whole row down in y. we'll get like 8 parts froma single piece of stock....


has anyone written a macro to write the repeats for this? I've tried, but i keep getting illegal macro operation errors (fanuc 0i-ma)
Tweet this Post!Share on Facebook
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 On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
KCam and Macros MHINK Kellyware CAM 2 04-15-2011 03:58 PM
Log file question... murphy625 CamSoft Products 9 04-05-2005 05:12 PM
macros toyoda General CAM Discussion 0 05-30-2004 05:56 AM
Post tricks and tips for onecnc HuFlungDung OneCNC 70 11-25-2003 01:31 PM
Macros MachineSMM General CAM Discussion 2 06-20-2003 01:41 PM




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