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 05-12-2010, 01:07 PM
 
Join Date: Oct 2007
Location: United States
Posts: 28
revlimit is on a distinguished road
4th axis code?

Hello everyone, we have an HRT 210 4th axis we rarely use. I need to plug this in and use it to repeat a simple milling pattern on a 10" diameter part every 15 degrees or so. My plan was to simply generate code for the milling pass then insert a command into the code to rotate the 4th axis 15 degrees, then repeat the milling procedure and so on. My problem is that I don't know what code to insert in to allow the 4th axis to turn. Thanks for any help you may provide!
Reply With Quote

  #2   Ban this user!
Old 05-12-2010, 01:33 PM
 
Join Date: Oct 2005
Location: USA
Posts: 11
Stickerman is on a distinguished road

Just put in G0 A15. to move it 15 degrees. You could make a subprogram to have it repeat enough times to machine all around the part.
Reply With Quote

  #3   Ban this user!
Old 05-12-2010, 01:39 PM
 
Join Date: Oct 2005
Location: USA
Posts: 11
Stickerman is on a distinguished road

You could do this...

After the tool change put this.

M97 P100 L24 (Call the sub 24 times)

(put all of your retracting moves here... coolant off or whatever)

M30

N100
G91 A15.
G90
(your main program)
M99
Reply With Quote

  #4   Ban this user!
Old 05-12-2010, 01:39 PM
 
Join Date: Nov 2006
Location: US
Age: 26
Posts: 181
Ydna is on a distinguished road

You can use "A" codes inside a drill cycle. You also have the option of using G90/G91 for the angles too. Like this...
G81 X0 Y0 A0 (also need R,F,Z of course)
A15.
A30.
A45.
A60.
...

or use incremental...
G91 A15
A15
A15
A15
...

You might be able to use an L number to signify number of repeats, I can't remember if that works.
Reply With Quote

  #5   Ban this user!
Old 05-12-2010, 04:11 PM
 
Join Date: Oct 2007
Location: United States
Posts: 28
revlimit is on a distinguished road

Cooool! Thanks so much...I THINK I can take it from here. Looks good so far. Thanks guys!
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 06-01-2010, 04:04 PM
 
Join Date: Oct 2007
Location: United States
Posts: 28
revlimit is on a distinguished road

Hi again everyone, after refining the program, I end up with the need to rotate every 60 degrees instead of 15. I there a possibility that one of you (possibly Stickerman)can show me where to insert the data you've provided me? For example, I feel that I should insert:
"M97 P100 L6"
"M30"
"N100"
"G91 A15"
"G90" and finally,
"M99"........but I'm not 100 percent on exactly WHERE they should all fall in the mix. Thanks so much AGAIN for any help you guys may provide. Below is the current program I'm running now that is producing perfect parts....

%
O1234(slit,cbore,drill,tap6-1-2010)
N1G0G40G80G91G28Z0
T1M6(0.25,user_adjust_02500-00000)
G90G00G115X0.119Y-0.127S5200M3
G43Z2.0H1
Z1.0M8
Z.1
Z0.1
G85Z-0.25R0.1F8.32
G80
Z1.0
Y-0.521
Z0.1
G85Z-0.25R0.1F8.32
G80
Z1.0
G0Z2.0M9
G91G28Z0
M1
N2G0G40G80
T2M6(0.0781,center_2)
G90G00G115X0.119Y-0.127S5200M3
G43Z2.0H2
Z1.M8
Z-0.15
G81Z-0.373R-0.15F10.14
G80
Z1.0
Y-0.521
Z-0.15
G81Z-0.373R-0.15F10.14
G80
Z1.0
G0Z2.0M9
G91G28Z0
M1
N3G0G40G80
T3M6(0.136,TD_01360_29:J)
G90G00G115X0.119Y-0.127S5200M3
G43Z2.0H3
Z1.M8
Z-0.15
G83Z-0.4959Q0.205R-0.15F10.61
G80
Z1.0
Y-0.521
Z-0.15
G83Z-0.4959Q0.205R-0.15F10.61
G80
Z1.0
G0Z2.0M9
G91G28Z0
M1
N4G0G40G80
T4M6(0.12,TD_01200_31:J)
G90G00G115X0.119Y-0.127S5200M3
G43Z2.0H4
Z1.M8
Z-0.15
G83Z-0.7911Q0.26R-0.15F9.36
G80
Z1.0
Y-0.521
Z-0.15
G83Z-0.7911Q0.26R-0.15F9.36
G80
Z1.0
G0Z2.0M9
G91G28Z0
M1
N5G0G40G80
T5M6(2.75,2.75 slitting end mill)
G90G00G115X-0.8714Y1.8764S600M3
G43Z2.0H5
Z1.M8
Z-0.315
G1Z-0.416F100.0
X-1.195Y0.8616F20.0
Y-2.3468
G0Z1.0
X-0.8714Y1.8764
Z-0.315
G1Z-0.416F100.0
X-0.795Y1.2164F20.0
Y-2.3468
S500
F40.0
X-0.775Y1.2279
Y-2.3468
G0Z1.0
G0Z2.0M9
G91G28Z0
M1
N6G0G40G80
T6M6(0.138,tap#6-32 Form)
G90G00G115X0.119Y-0.127S1000M3
G43Z2.0H6
Z1.M8
Z-0.15
G84R-0.15Z-0.7547F31.25
G80
Z1.0
Y-0.521
Z-0.15
G84R-0.15Z-0.7547F31.25
G80
Z1.0
G91G28Z0M9
G91G28Y0
M30
%
THANK YOU!!!!
Reply With Quote

  #7   Ban this user!
Old 06-01-2010, 07:57 PM
 
Join Date: Oct 2005
Location: USA
Posts: 11
Stickerman is on a distinguished road

This is what I do when I have a program that's been written for a single part. Take the main part of each tool operation and put it as a sub. Just be sure to run this in the graphic view and don't trust anything I have done blindly since I know I can screw up anything!

I added a G90 and the starting X and Y coordinates in each subroutine and at the end there is a G91 A15. then a M99 so it will repeat the operation.

%
O1234(slit,cbore,drill,tap6-1-2010)
N1G0G40G80G91G28Z0
T1M6(0.25,user_adjust_02500-00000)
G90G00G115X0.119Y-0.127 A0 S5200M3
G43Z2.0H1
G97 P100 L24
G91G28Z0
M1
N2G0G40G80

T2M6(0.0781,center_2)
G90G00G115X0.119Y-0.127 A0 S5200M3
G43Z2.0H2
G97 P200 L24
G91G28Z0
M1
N3G0G40G80

T3M6(0.136,TD_01360_29:J)
G90G00G115X0.119Y-0.127 A0 S5200M3
G43Z2.0H3
G97 P300 L24
G91G28Z0
M1
N4G0G40G80

T4M6(0.12,TD_01200_31:J)
G90G00G115X0.119Y-0.127 A0 S5200M3
G43Z2.0H4
G97 P400 L24
G91G28Z0
M1
N5G0G40G80

T5M6(2.75,2.75 slitting end mill)
G90G00G115X-0.8714Y1.8764 A0 S600M3
G43Z2.0H5
G97 P500 L24
G91G28Z0
M1
N6G0G40G80

T6M6(0.138,tap#6-32 Form)
G90G00G115X0.119Y-0.127 A0 S1000M3
G43Z2.0H6
G97 P600 L24
G91G28Z0M9
G91G28Y0
M30

N100
G90 X0.119Y-0.127
Z1.0M8
Z.1
Z0.1
G85Z-0.25R0.1F8.32
G80
Z1.0
Y-0.521
Z0.1
G85Z-0.25R0.1F8.32
G80
Z1.0
G0Z2.0M9
G91 A15.
M99

N200
G90 X0.119 Y-0.127
Z1.M8
Z-0.15
G81Z-0.373R-0.15F10.14
G80
Z1.0
Y-0.521
Z-0.15
G81Z-0.373R-0.15F10.14
G80
Z1.0
G0Z2.0M9
G91 A15.
M99

N300
G90 X0.119 Y-0.127
Z1.M8
Z-0.15
G83Z-0.4959Q0.205R-0.15F10.61
G80
Z1.0
Y-0.521
Z-0.15
G83Z-0.4959Q0.205R-0.15F10.61
G80
Z1.0
G0Z2.0M9
G91 A15.
M99

N400
G90 X0.119 Y-0.127
Z1.M8
Z-0.15
G83Z-0.7911Q0.26R-0.15F9.36
G80
Z1.0
Y-0.521
Z-0.15
G83Z-0.7911Q0.26R-0.15F9.36
G80
Z1.0
G0Z2.0M9
G91 A15.
M99

N500
G90 X-0.8714 Y1.8764
Z1.M8
Z-0.315
G1Z-0.416F100.0
X-1.195Y0.8616F20.0
Y-2.3468
G0Z1.0
X-0.8714Y1.8764
Z-0.315
G1Z-0.416F100.0
X-0.795Y1.2164F20.0
Y-2.3468
S500
F40.0
X-0.775Y1.2279
Y-2.3468
G0Z1.0
G0Z2.0M9
G91 A15.
M99

N600
G90 X0.119 Y-0.127
Z1.M8
Z-0.15
G84R-0.15Z-0.7547F31.25
G80
Z1.0
Y-0.521
Z-0.15
G84R-0.15Z-0.7547F31.25
G80
Z1.0
G91 A15.
M99
%
Reply With Quote

  #8   Ban this user!
Old 06-01-2010, 10:39 PM
 
Join Date: Oct 2007
Location: United States
Posts: 28
revlimit is on a distinguished road

Stickerman, thanks so much. I've got a much better understanding of why the code is placed where it is now. Got a quick question on the "L" though. Is the "L" just a repeat value? For example L50 repeats a particular operation 50 times I assume? Also, I notice that the "P" and "N" values are incremented by 100..ex...P100, P200, N100, N200, etc. It seems that the N100 references the P100 and so on? One last thing, will this scenario run the parts through on the first tool then the second, third, etc.....or will it run one part then the second part, etc? Thanks again for your help!!
Reply With Quote

  #9   Ban this user!
Old 06-02-2010, 12:42 AM
 
Join Date: Oct 2005
Location: USA
Posts: 11
Stickerman is on a distinguished road

Yes, the L is how many times it repeats. The N100 could be N1 or N10 or whatever you want it to be. I started to do it with N1, N2, but then saw you had that in your other code and added the zeros.

The way I edited it the one tool would work all the way around the part then go to the next tool. It would be really simple to do it the other way, but would waste a bunch of time with tool changes.
Reply With Quote

  #10   Ban this user!
Old 06-02-2010, 11:33 AM
 
Join Date: Oct 2007
Location: United States
Posts: 28
revlimit is on a distinguished road

Stickerman, you're right, it certainly would waste a ton of time. I guess I was so focused on just getting it to happen that I wasn't thinking past the repeating. Thanks so much for the help. You guys are invaluable and I hope as time goes on I can contribute to solutions like these in return.

Gratefully yours,

J.Berto
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 06-02-2010, 01:03 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,565
Geof will become famous soon enough

When you use G91 for rotating the 4th axis you sometimes end up with it rotated several complete revolutions from zero. Haas has a feature called Quick Rotary G28 which lets you zero the 4th axis to the nearest zero point instead of 'unwinding' all the revolutions.

I cannot remember whether they are a Setting or Parameter that has to be turned on but I think there are two; one is called Quick rotary G28 and the other is Circle Wrap.
__________________
An open mind is a virtue...so long as all the common sense has not leaked out.
Reply With Quote

  #12   Ban this user!
Old 06-03-2010, 02:50 PM
 
Join Date: Oct 2007
Location: United States
Posts: 28
revlimit is on a distinguished road

Thanks Geof, I'll look into that at the end of the day when the operator has gone. We've been getting away with it because the end of the program contains optional stops that allow the operator to roll the 4th axis back around one position at a time. We need to do this to allow ease of part load/unload so it works well and we don't end up "wrapped." Thanks again everyone!
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
Need Help!- 4 axis g-code help THend G-Code Programing 3 03-25-2009 06:27 PM
Newbie- Homing axis in G-Code Des Jacobsen Mach Software (ArtSoft software) 0 10-21-2008 01:06 AM
G code help C-X axis slkret G-Code Programing 1 05-10-2008 08:53 AM
zero axis key code? drafterman Mach Software (ArtSoft software) 2 03-06-2008 08:18 AM
Z-Axis Arc G-Code? GTmike400 G-Code Programing 16 01-27-2006 11:15 AM




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