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 04-02-2006, 07:31 PM
 
Join Date: Mar 2006
Location: USA
Posts: 41
Traceycnc300 is on a distinguished road
macro's

The company I work for bought a brand new Haas VF4.So we get 200hour of Macro's to try out.But I've never used them can someone show me where I can find a use for this feature.I've heard its some cool sh$$ but I can't see how its any better than regular G coding.Can someone shed some light on this for me. Thanks Tracey
Reply With Quote

  #2  
Old 04-02-2006, 08:14 PM
miljnor's Avatar
S.N.A.F.U.
 
Join Date: Jan 2005
Location: usa
Posts: 1,844
miljnor is on a distinguished road

The biggest advantage of macros is that you can make whole programs that can take care of a class of parts. Within each class of parts, if the only change is size, then you can make all the changes thru variables.

Macros are very useful but mainly it depends on your programming style. If you have high-end cad and/or do 1 off parts you might not see the advantage.

But if you hand code allot or like to make little programs that fit a variety of needs then macros are indispensable.
__________________
thanks
Michael T.
"If you don't stand for something, chances are, you'll fall for anything!"
Reply With Quote

  #3   Ban this user!
Old 04-02-2006, 09:16 PM
gar gar is offline
 
Join Date: Mar 2005
Location: USA
Posts: 1,498
gar is on a distinguished road

060402-2101 EST USA

Traceycnc300:

miljnor has given you some good perspective.

I will add the following:

You can do logic, math, and trig functions. You can easily pass parameters to subroutines. DPRNT is available which allows you to output data to the COM 1 serial port. You can create counters for special functions. You can easily do step and repeat functions, even with varying increments. You can write a program that will step and repeat for a variable number of steps, and do it efficiently without a lot of tool changes. You can access timers and operate on the values.

I have a standard tool change subroutine that can greatly reduce errors of hand coding. Also standard subroutines for collecting timing information from within a machine cycle.

The DPRNT function along with external equipment can provide a means to do special functions.

Scaling and rotation is another very useful option, but on our machines lacks independent scaling of each axis.

.
Reply With Quote

  #4   Ban this user!
Old 04-02-2006, 09:33 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,565
Geof will become famous soon enough

If you have not turned the 200 hour Macro trial on I suggest don't do it yet. You cannot turn it off and it will be a waste if you burn up all 200 hours on the early part of a learning curve. Find out what macros can do, get some samples and then when you are set turn on the trial.
Reply With Quote

  #5   Ban this user!
Old 04-02-2006, 09:55 PM
 
Join Date: Mar 2006
Location: USA
Posts: 41
Traceycnc300 is on a distinguished road

Thanks guys.I am going to wait till I get better understanding before I activate the function.But I am interested so any examples would be apreciated.Then if I can show the boss man where it is usefull I'll try to get him to buy the option.I've read a little about it in the Haas manual but find it to be pretty vage.I've been programing by hand for several year and we also have acouple other good programmers but none of us have used macro's.So were very interested.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 04-03-2006, 06:31 AM
gar gar is offline
 
Join Date: Mar 2005
Location: USA
Posts: 1,498
gar is on a distinguished road

060403-0631 EST USA

Traceycnc300:

Following is a thread I started on a Tool Change Macro:

http://www.cnczone.com/forums/showth...l+change+macro



And at some time you might want to study this thread:

http://www.cnczone.com/forums/showth...ighlight=dprnt

.
Reply With Quote

  #7   Ban this user!
Old 04-03-2006, 07:25 AM
Wiseco's Avatar  
Join Date: Jul 2005
Location: Canada
Age: 31
Posts: 175
Wiseco is on a distinguished road

Originally Posted by Geof
If you have not turned the 200 hour Macro trial on I suggest don't do it yet. You cannot turn it off and it will be a waste if you burn up all 200 hours on the early part of a learning curve. Find out what macros can do, get some samples and then when you are set turn on the trial.
You can turn off a trial that's been activated. Something you must not forget after turning a trial off is to cycle the power (power off, then power on). I've used the trial for rigid tapping and I turned it off after using it so this way, I'm not trowing away the rest of the 200hrs.

But I agree with you. If you don't really need it, don't activate it. This way, you'll be sure to not forget to turn it off.
Reply With Quote

  #8   Ban this user!
Old 04-03-2006, 08:21 AM
JPMach's Avatar  
Join Date: Aug 2005
Location: USA
Age: 30
Posts: 311
JPMach is on a distinguished road

One of the easiest things you can do with macros is run several parts on the table. Simply program each part as you normally would with a different fixture offset for each. Then change the M30 at the end of each program to M99 and right one more small little program. Lets say you have three parts on table with programs O100 through O102 then make a program like this

O105
G65 P100
G65 P101
G65 P102
M30

The if you get more in depth on macros, say you wan to run two of part O101 on the table and only one each of the others. Then you simply need to make the fixture offset in the program for O101 a variable (say #100 use an empty one)and then your program would look something like this

O105
G65 P100
G65 P101 #100=56
G65 P101 #100=57
G65 P102
M30

Don't quote me exactly but that is close. In school I went above what the teacher new and wrote a parametric (read macro) progam for a part that we ran on an old BP and for a test another student did the same part by cam. I believe the cam program was around 8 pages of code or so and the program I made was a page and a half and was still easily adjustable for different size parts or diferent number of bolt holes.

JP
Reply With Quote

  #9   Ban this user!
Old 04-03-2006, 08:23 AM
JPMach's Avatar  
Join Date: Aug 2005
Location: USA
Age: 30
Posts: 311
JPMach is on a distinguished road

Another way to look at things is that all canned cycles like drill cycles are esentially macros with variable arguments. They just happen to be built in.

JP
Reply With Quote

  #10   Ban this user!
Old 04-03-2006, 06:11 PM
 
Join Date: Mar 2006
Location: USA
Posts: 41
Traceycnc300 is on a distinguished road

Thanks gent's thats the kind of info I was looking for.It's also nice to know it can be turned off to conserve.
Reply With Quote

Sponsored Links
  #11  
Old 04-03-2006, 06:24 PM
miljnor's Avatar
S.N.A.F.U.
 
Join Date: Jan 2005
Location: usa
Posts: 1,844
miljnor is on a distinguished road

it Cant be turned off once turned on!!!!!

edit:
of course I didnt' see the other post on cycling the power so... of course ignore my ignorant remark!!!
__________________
thanks
Michael T.
"If you don't stand for something, chances are, you'll fall for anything!"
Reply With Quote

  #12   Ban this user!
Old 04-11-2006, 07:04 AM
 
Join Date: Mar 2006
Location: U.K.
Posts: 61
Stu_M3 is on a distinguished road

I use macros for milling angles on blocks at any rotation or location all i have to do is specify the position in (xy), rotation, depth, angle, length, peck, finishing peck, the macro does the rest.I have a few others for helical milling bosses, corner radii on blocks, pockets and rectangular profiles, All of them have protection against the user entering wrong data. Macros are really good when you do a lot of the same sort of operations and it saves using cad/cam to generate simple toolpaths.
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





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