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 > Fanuc


Fanuc Discuss Fanuc controllers here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 12-25-2008, 11:57 AM
 
Join Date: Jun 2006
Location: italy
Posts: 46
ALEXCOMO is on a distinguished road
Talking MACRO FOR HOLE SPIRAL MILLING

HI ALL.
I'M MAKING a FANUC 0M MACRO FOR HOLE SPIRAL MILLING .
ANY SUGGESTION?
Reply With Quote

  #2   Ban this user!
Old 12-25-2008, 01:20 PM
 
Join Date: Feb 2007
Location: USA
Posts: 531
skullworks is on a distinguished road
Cool G13

I wrote a quick and dirty macro to give partial compatability with a Yaznaq G13 on our 518MSC (Fanuc 18M) Mori Seiki.

I say partial because Yaznaq uses an "L" as one of the optional augments. This is not possible on the Fanuc as "L" is not normally supported in Macro B.

You would need to look up several machine parameters and change the variables to match your 0m.

I can stop by the shop and get a copy to post here later if there is interest.

Note again this is the Yaznaq type which does not have ANY Z axis movement. You must use a G01 Z before the G13 and a G00 Z after...

Someday I will "Upgrade" the Macro to be more like the HAAS usage of a G13. But at the time I was handed a cart with all preset tooling and ready to run Yaznaq code that I had to edit into something we could run today and it was full of G13's.

You might also try the G65 Pxxxx method if you don't want to add a G13 command.

Reply With Quote

  #3   Ban this user!
Old 12-25-2008, 02:33 PM
 
Join Date: Jan 2005
Location: USA
Posts: 2,346
mactec54 is on a distinguished road
Buy me a Beer?

Hi alexcomo

This is easy to do just right the Gcode that you need you don't need a macro

T5M6
M8
G54
S2850M3
G90G0X-1.0985Y.3569
G43Z.2H5
G1Z0F20.
G3X0.Y1.55Z-.16I1.0985J-.3569
Z-.36J-1.155
Z-.56J-1.155
Z-.76J-1.155
J-1.155
G0Z.2
M9
M5
G0Y5.5
M30

This will do a spiral down .200 per pass on a 2.56 dia hole x .760 deep .250 cutter centre
being X0Y0
__________________
Mactec54
Reply With Quote

  #4   Ban this user!
Old 12-26-2008, 01:55 AM
 
Join Date: Jun 2006
Location: italy
Posts: 46
ALEXCOMO is on a distinguished road
Grazie!

WERY WELL!!Thank you all for help!!!Grazie!

First of all ....sorry for my english!!!!!

Specification:for spiral i mean work an hole with archimede spiral. I think is the more efficent way for empty a round hole.

Skullworks please post it when you can.

G13 is the native way to do this on fanuc 18, isn't it?

Hi all!!!
Reply With Quote

  #5   Ban this user!
Old 12-26-2008, 08:31 AM
 
Join Date: Jan 2005
Location: USA
Posts: 2,346
mactec54 is on a distinguished road
Buy me a Beer?

Hi ALEXCOMO

The Gcode in my post is a archimede spiral & will work fine on your Fanuc 18 control
you don't need to have a G13 to make a spiral
__________________
Mactec54
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 12-26-2008, 11:50 AM
 
Join Date: Jun 2006
Location: italy
Posts: 46
ALEXCOMO is on a distinguished road

Thank you mactec54 I'll try your code next day.
Reply With Quote

  #7   Ban this user!
Old 12-27-2008, 07:55 PM
luky's Avatar  
Join Date: Oct 2008
Location: China
Posts: 9
luky is on a distinguished road

Hi,ALEXCOMO

for mactec54's program,please check attached pic.
Attached Thumbnails
Click image for larger version

Name:	SPIRAL.gif‎
Views:	211
Size:	10.4 KB
ID:	72329  
Reply With Quote

  #8   Ban this user!
Old 12-28-2008, 02:45 AM
 
Join Date: Jun 2006
Location: italy
Posts: 46
ALEXCOMO is on a distinguished road
Talking ANTEPRIMA

Hi all.

Thank you Luky...Which program you have used for make the pic?

Here is what I mean for archimede spiral
http://www.math.it/spirale/spirale-archimede.htm

The native Gcode for Fanuc 18 archimede spiral is only G2 or G3 but you
need to put into the command line the adress L (number of revolution) or Q( radius increment for spiral revolution).This function is not available on the fanuc 0i-mc(absurdity!!!!!!!!!!!!)

Tomorrow I'm going to test my dirty macro in my shop!

here is a preview
%
:9019(INTERPOLAZIONE FORI)
(X E Y POSIZIONE CENTRO CERCHIO #24 #25)
(I RAGGIO #4)
(W NUMERO DI GIRI DI SVUOTAMENTO #23)
(D PREFORO #7)
(E EVENTUALI GIRI D'ELICA #7)
(K ALTEZZA DI INIZIO #6)
(Z PROFONDITA CON SEGNO- #26 DISTANZA DAL PUNTO K)
(F AVANZAMENTO #9)
(#500=NUMERO UTENSILE A MANDRINO MEMORIZZATO DA MACRO CAMBIO UT)
#501=#5003(MEMORIZZA ALTEZZA IN CUI SI TROVA UT PRIMA CAMBIO MACRO)
#502=#6
#503=#9
#505=#4
#506=#26
#507=#23
#100=#[13001+#500](RAGGIO FRESA)
#106=[#502+#26](PROFONDITA IN Z)
#107=#505-#100(RAGGIO FINALE INTERPOLAZIONE)
#110=[[#107-#100]/#507]/360(INCREMENTO RAGGIO A STEP)
#112=0
#111=#100
#114=0
#113=360*#23(VALORE TOTALE DEGLI STEP)
G0#24Y#25
G52X#24Y#25
Z[#502+2]
G1Z#106F[#503*0.7]
N1WHILE[#114LT#113]DO1
#112=#112+1
#120=#111*COS[#112]
#121=#111*SIN[#112]
#111=#111+#110
G3I#120J#121
END1
G1X#107Y#25
G3I-#107
I-#107
G0Z#501X0Y0
G52X0Y0
M99
%
Reply With Quote

  #9   Ban this user!
Old 12-28-2008, 08:50 AM
 
Join Date: Jan 2005
Location: USA
Posts: 2,346
mactec54 is on a distinguished road
Buy me a Beer?

Hi ALEXCOMO

I think luky is showing you is my program

You don't need a call for how many ( revolution's ) the Z step & J keeps it going around
change it to metric numbers & it will work in your control

The link you have posted is a face milling spiral which you would have to go back to the centre for each Z step to make this work not really a good way to do it

Just drill a hole & use like what I have done you only need ( I ) ( J ) ( Z ) & ( G3 ) moves to make this work I use this for roughing all the time it can have arc on arc off if needed when I'm running one I will take a movie of it it is very cool way to do milling
__________________
Mactec54
Reply With Quote

  #10   Ban this user!
Old 12-29-2008, 07:45 AM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

These are the macros that I use for spinning a hole. You don't need to drill out the center of the pocket. This climb mills to depth. I have written this and run it on all my Fanucs. I have not run it on a OM series. However as long as you have macroB programming this will work.

Q=pick in Z, W=starting depth, E=dia to spin, K=cutter dia, Z=final depth, T=tool number, M=coolant code, X=x-center of hole, Y=y-center of hole.

O0001(MAIN PROGRAM)
#500=3.(CLEARANCE PLANE)
G65P8001Q.025W.1E.5K.25Z.9T10M8X0Y0
M30

O8001(C-BORE RAMPING ROUTINE)
#2=10000(ROUNDING)
#12=#17
#13=#23
M6T#20
#8=#8/2
#6=#6/2
#1=0
#15=[#8+#6]/2(ARC IN)
N100
IF[#6GE#8]GOTO260
G0G90G55G80
X#24Y#25Z#500
Z[#23+.1]
G1Z#23
G91G1X[#8-#15]Y-[#15-#6]M#13
G3X[#15-#6]Y[#15-#6]J[#15-#6]
N150G3X0Y0I-[#8-#6]Z-#17
#23=#23+#17
IF[#1EQ1]GOTO400
IF[ROUND[[#23+#17]*#2]/#2GE[ROUND[#26*#2]/#2]]GOTO300
GOTO150
N300#17=#26-[#23-#13]
#1=1
GOTO150
N400
#23=#13
#17=#12
#1=0
G3X0Y0I-[#8-#6]
G3X-[#15-#6]Y[#15-#6]I-[#15-#6]
G90G1X#24Y#25M9
G0Z#500M5
N200M99
N260#3000=10(CUTTER DIA. TO LARGE)

Stevo
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 12-29-2008, 08:27 AM
 
Join Date: Jan 2005
Location: USA
Posts: 2,346
mactec54 is on a distinguished road
Buy me a Beer?

Hi Stevo

Does your macro cut the dia of the cutter all the way down or the whole surface of the hole all the way down You don't need to drill a hole with my Gcode It is a place the chips can go when cutting steel it's a lot easer on the cutter to have a hole if you are going more than .500/12.7mm deep
__________________
Mactec54
Reply With Quote

  #12   Ban this user!
Old 12-29-2008, 08:54 AM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

This will cut around the diameter of the tool. So it will spin the hole dia that you specify - the tool dia. This will move to the center of the hole above the part. It will arc to the diameter of the hole then spin all the way around the hole moving down in the Z the pick distance specified with Q value. It will do this until depth set by Z is obtained then it will make 1 idle pass at the bottom to remove the material left from previous pass. Then it will arc back to the center of the hole and retract to the R-plane.

We do a lot of steel, SS, Inco, Hastaloy. I have never drilled out the center of the hole first. Althought it never hurts for chip removal and less tool wear. This program runs as smooth as a baby's butt, a lot of guys are very happy with running this mainly because of the versatility. You might find that you won't have to drill out the hole first.

This macro just runs one hole. I have these macros set up for doing mutiple holes on a BC with a rotary axis and non rotary axis machines. I also have them set up to use the tool radius in the offset page so you can make adjustments on the fly without resetting the program. I have also set them up for holes not on a BC but with multiple holes at different locations. This way would be set up with a macro modal call then just specify the X,Y locations. Let me know if this would be an application that you could use the other macros so I can post them.

Stevo
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
Fanuc bolt hole macro Machinist3 G-Code Programing 4 05-23-2008 10:43 AM
spiral macro ? cyclestart G-Code Programing 4 03-23-2008 09:42 PM
400x330x12mm AL hole milling fantasy2 Employment Opportunity 0 05-06-2006 10:54 AM
G12/G13 hole milling JFettig Mach Software (ArtSoft software) 14 03-10-2005 08:23 PM
Milling a hole igorko General CAM Discussion 25 01-30-2004 05:55 AM




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