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! > Machine Controllers Software and Solutions > G-Code Programing


G-Code Programing Discuss G-code programing and problems here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 07-26-2006, 01:19 AM
 
Join Date: Jul 2006
Location: N.Y.
Posts: 22
iMisspell is on a distinguished road
G71,73,70 equivalent's for Milling ?

Aside from using a sub-program are there any profiling & roughing cycles like G71, G73 and G70 for a lathe which would do the same for a mill or will these work for both ?

Would like to key in a dia. and depth path, set how much would like to take off per-pass and how much to leave for a finish pass. With the ease of changing one varable we would like to change the DOC from .125 to .093 and have the control cal. how many more passess it will need to take.

For a lathe its a snap with a G73, looking for some like that with a Mill, possable ?

Heres a clip incase im not being clear...

N004 X2.562 Z.5
G71 U.093 (DOC .093)
G71 P666 Q668 U.02 W.01 F.010
(LEAVE .02 on DIA. AND.01 ON LENTH)
(ROUGH AT F.01)
(START LINE IS N666)
(FINISH LINE IS N668)
N666 G0 X1.
G1 Z.0 F.01
X1.3589 F.005
X1.4955 Z-.0683 F.002
Z-.281 F.005
X1.5124
X1.63 Z-.343 F.002
X1.6958 F.005
X1.9699 Z-.3803 F.002
X2. Z-.3953 F.005
N668 G00 X2.562
N005 G70 P666 Q668 (FINISH PASS)


Ahhh... after seeing that, maybe this will work on a mill ??? (gonna try at work tomarrow)

Simple fake facing example...
Make one swoop at 4in dia, move out a 1/16 and then another swoop at a 2.5in dia.
Then jump in a Z amount and use the G70 to loop the path from before.
Finish the 1/16 as Z0

G0 X0 Y6 Z.25
Z.125
N100 G1 Y4 F40.
G3 J-4 F60.
G1 K.062 F40.
Y2.5
G3 J-2.5 F60.
G1 Y4.032
N200 G0 Y6
Z.062
G70 P100 Q200
Z.0
G70 P100 Q200
Z-.062
G70 P100 Q200
G0 G53 Z0...

If that does work, you would have to use K for the Z cause its incremental, correct ?


_
__________________
~ What was once an Opinion, became a Fact, to be later proven Wrong ~
Reply With Quote

  #2   Ban this user!
Old 07-26-2006, 10:21 AM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,563
Geof will become famous soon enough

"are there any profiling & roughing cycles like G71, G73 and G70 for a lathe which would do the same for a mill or will these work for both ?

This is a darn good question; when you find one let me know .

Haas have pocketing routines that you can fake a bit and do zero depth pockets but I just wrote my own template programs using subroutines. I use a mix of absolute and incremental for square and rectangular facing and for circular facing I use a single G02 in a subroutine and use different tool diameters with tool compensation to change the radius of the circle.
Reply With Quote

  #3   Ban this user!
Old 07-27-2006, 11:08 AM
 
Join Date: May 2006
Location: USA
Posts: 10
thogib is on a distinguished road

The only way to to that on a mill is with macro programs. No simple G or M codes for a mill, unless your machine tool maker pre-wrote them for you.
Don't ask why when you have a machine with a Y axis, I would think that would have been easy enough to transfer over from a turning controller to a mill controller?
Tom G
Reply With Quote

  #4   Ban this user!
Old 08-01-2006, 04:46 PM
 
Join Date: Jun 2006
Location: USA
Age: 46
Posts: 478
ajl6549 is on a distinguished road

Simple sub programs work as well. Like prog. an incrementle routine that would mill a rec. pocket the repeat it with an " L " count.
Reply With Quote

  #5  
Old 08-03-2006, 08:11 PM
tobyaxis's Avatar
Moderator
 
Join Date: Jan 2006
Location: USA
Posts: 4,396
tobyaxis is on a distinguished road
Arrow Pocketing Macro

This is only "Hear Say", but someone told me Fadal like the HAAS has a Pocketing Macro/Canned Cycle. Anyone else know anything about this? The Yasnac Control found on Matsuura VMC's has a G12/G13 Canned Cycle close to what your asking for Imisspell. It's a circular spiral cycle. It won't do rectangular boxes though.

I have a book that has a pocketing macro that I'll post here when it is located. Maybe someone here with more knowledge of macro type programming can try it to see if it will work.
__________________
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

Sponsored Links
  #6  
Old 08-03-2006, 08:33 PM
dertsap's Avatar
Gold Member
 
Join Date: Oct 2005
Location: canada
Posts: 3,667
dertsap is on a distinguished road
Buy me a Beer?

[QUOTE=tobyaxis]This is only "Hear Say", but someone told me Fadal like the HAAS has a Pocketing Macro/Canned Cycle.
QUOTE]

this was the only thing that i liked about the fadals , there are some nice little sub routines
Reply With Quote

  #7  
Old 08-03-2006, 08:59 PM
tobyaxis's Avatar
Moderator
 
Join Date: Jan 2006
Location: USA
Posts: 4,396
tobyaxis is on a distinguished road
Talking Guess he wasn't blowing smoke

[QUOTE=dertsap]
Originally Posted by tobyaxis
This is only "Hear Say", but someone told me Fadal like the HAAS has a Pocketing Macro/Canned Cycle.
QUOTE]

this was the only thing that i liked about the fadals , there are some nice little sub routines
Thanks for the info Dertsap.
I wonder why other Machine Tool Builders didn't follow up on this? I only got to use older controls. The newest control was a Fanuc 1LE on a 6 axis Swiss Screw Machine and it only had standard Lathe Canned Cycles with a few extras for cross drilling. Can't say how many times a pocketing cycle would have helped out. With all the advances with CAD/CAM I doubt anyone will be offering much in options anymore. Then again most newer controls handle 3D solids with their own intergraded CAD/CAM. Who started that trend, Mazak?
__________________
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

Last edited by tobyaxis; 08-04-2006 at 02:43 AM.
Reply With Quote

  #8  
Old 08-04-2006, 02:45 AM
tobyaxis's Avatar
Moderator
 
Join Date: Jan 2006
Location: USA
Posts: 4,396
tobyaxis is on a distinguished road

Originally Posted by iMisspell
Aside from using a sub-program are there any profiling & roughing cycles like G71, G73 and G70 for a lathe which would do the same for a mill or will these work for both ?

Would like to key in a dia. and depth path, set how much would like to take off per-pass and how much to leave for a finish pass. With the ease of changing one varable we would like to change the DOC from .125 to .093 and have the control cal. how many more passess it will need to take.

For a lathe its a snap with a G73, looking for some like that with a Mill, possable ?

Heres a clip incase im not being clear...

N004 X2.562 Z.5
G71 U.093 (DOC .093)
G71 P666 Q668 U.02 W.01 F.010
(LEAVE .02 on DIA. AND.01 ON LENTH)
(ROUGH AT F.01)
(START LINE IS N666)
(FINISH LINE IS N668)
N666 G0 X1.
G1 Z.0 F.01
X1.3589 F.005
X1.4955 Z-.0683 F.002
Z-.281 F.005
X1.5124
X1.63 Z-.343 F.002
X1.6958 F.005
X1.9699 Z-.3803 F.002
X2. Z-.3953 F.005
N668 G00 X2.562
N005 G70 P666 Q668 (FINISH PASS)


Ahhh... after seeing that, maybe this will work on a mill ??? (gonna try at work tomarrow)

Simple fake facing example...
Make one swoop at 4in dia, move out a 1/16 and then another swoop at a 2.5in dia.
Then jump in a Z amount and use the G70 to loop the path from before.
Finish the 1/16 as Z0

G0 X0 Y6 Z.25
Z.125
N100 G1 Y4 F40.
G3 J-4 F60.
G1 K.062 F40.
Y2.5
G3 J-2.5 F60.
G1 Y4.032
N200 G0 Y6
Z.062
G70 P100 Q200
Z.0
G70 P100 Q200
Z-.062
G70 P100 Q200
G0 G53 Z0...

If that does work, you would have to use K for the Z cause its incremental, correct ?


_
Yes K should the parallel axis to Z It's X(U) Y(V) Z(W) on a Lathe. On a Mill it's X(I)Y(J)Z(K)
__________________
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

  #9  
Old 08-08-2006, 12:45 AM
tobyaxis's Avatar
Moderator
 
Join Date: Jan 2006
Location: USA
Posts: 4,396
tobyaxis is on a distinguished road
Arrow Pocketing Macro

Here is the Macro I promissed. This one was written in a machine manual and I have not had a chance to test it, so be very carefull.

Pocket Macro Call (Yasnac MX1)

G65 P9061 X.. Y.. Z.. R.. I.. J.. K.. T.. Q.. D.. F.. E..

Where

X, Y The absolute coordinate value of the start point (the lower left hand corner of the pocket)

Z The absolute position of the bottom of the pocket.

R The absolute position of the rapid traverse tool return

I, J X-axis and Y-axis lenghts of the pocket (unasigned)

K Finish allowance (left-over allowance, unasigned) Default value is 0 (zero)

T Cut width rate (designated in %)Cut width = tool radius * T/100

Q Z-axis cut depth for each cut

D Tool Offset number

F Feedrate in the X,Y plane (G17)

E Feedrate in the Z-axis (Plunge feedrate in Z)

User Macro Body

O9061
#10 = #[2000 + #7].....Tool radius
#11 = #6 + 1.0 + #10
#12 = #5 - 2 * #11
#13 = 2 * #10 * #20/100...Cut Width
#14 = FUP [#12/#13]....X-axis cut count:-1
________________________

#27 = #24 + #11
} X, Y coordinates of the machining start point
#28 = #25 + #11
_______________________

#29 = #26 + #6 .......... Z-axis coordinates of cut bottom
#30 = #24 + #4 - #11
#15 = #4003 ......... Read of G90/G91
G90 ..... ABS Programming
G00 X#27 Y#28
G00 Z#18
#32 = #18 ........#32 cut bottom in execution
DO1
#32 = #32 - #17
IF [#32 GT #29] GO TO 1
#32 = #29
N1 G01 Z#32 F#8
G01 X#30 F#9
#33 = 1
WHILE[#33 LE#14] DO 2
IF [#33 EQ#14] GO TO 2
G01 Y[#28 + #33 * #13]F#9
GO TO 3
N2 G01 Y[#25 + #5 - #11]
N3 IF[#33 AND 1 EQ 0] GOTO 4
G01 X#27
GO TO 5
N4 G01 X#30
N5 #33 = #33 + 1
END 2

G00 Z#18
IF[#32 LE#29] GO TO 6
G00 X#27 Y#28
G01 Z[#32 + 1.0]F[4 * #8]
END 1

N6 #11 = #11 - 1.0
#27 = #27 - 1.0
#28 = #28 - 1.0
#30 = #30 + 1.0
#31 = #25 + #5 - #11
G00 X#27 Y#28
G01 Z#32 F#8
G01 X#30 F#9
Y#31
X#27
Y#28
G00 Z#18
G00 X#24 Y#25 ......Return to start point
G#15 ...........Restore of G90/G91
M99
__________________
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

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 08:12 PM.





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