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 01-10-2012, 04:07 AM
 
Join Date: Jan 2012
Location: Norge
Posts: 2
DanielBamek is on a distinguished road
How to programme an ellipse?

Hello, boys and girls.
I really need help here.

We have a Dah-Lih lathe with fanuc manual 0-MC software.
How is the best way to program an elliptic toolpath? Is there a function for this, or can i use a mathematical expression? Or do i simply have to use a CAM-software for this?

Best regards
Daniel
Reply With Quote

  #2   Ban this user!
Old 01-10-2012, 05:02 AM
fordav11's Avatar  
Join Date: Aug 2011
Location: Fordaville
Posts: 939
fordav11 is on a distinguished road

there is no built-in function. cam software is easiest as it can give you multiple tangential arcs.
it can also be done using macro.
I wrote a 20 or 30 line macro to do an ellipse on a mill years ago.
Reply With Quote

  #3   Ban this user!
Old 01-10-2012, 05:18 AM
 
Join Date: May 2007
Location: US
Posts: 779
Andre' B is on a distinguished road

If the control has the optional macro B this bit of code will do it.
Code:
#100= 2    (X AXIS RADIUS)
#101= 0.25  (Y SCALE, 1.0 FOR A CIRCLE)
#102= 1    (STEP ANGLE)
(----------------------)

#103= 0    (CURRENT ANGLE)
G1X[#100*COS[0]]Y[#101*#100*SIN[0]]

WHILE [#103 LT 360] DO1
G1X[#100*COS[#103]]Y[#101*#100*SIN[#103]]F10.0
#103=#103+#102
END1
G1X[#100*COS[360]]Y[#101*#100*SIN[360]]
G0X0.0Y0.0
Reply With Quote

  #4   Ban this user!
Old 01-10-2012, 07:12 AM
fordav11's Avatar  
Join Date: Aug 2011
Location: Fordaville
Posts: 939
fordav11 is on a distinguished road

that's for a mill. it won't really help on a lathe though
I've turned many ellipses on lathes. the easiest way is with cam software.
Reply With Quote

  #5   Ban this user!
Old 01-10-2012, 08:32 AM
 
Join Date: May 2007
Location: US
Posts: 779
Andre' B is on a distinguished road

Ops, missed the lathe part.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-10-2012, 08:48 AM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,562
Geof will become famous soon enough

It should be possible to convert Andre' B's macro to generate an elliptical toolpath by swapping Y for Z, yes?
__________________
An open mind is a virtue...so long as all the common sense has not leaked out.
Reply With Quote

  #7   Ban this user!
Old 01-10-2012, 12:01 PM
samu's Avatar  
Join Date: Feb 2007
Location: quebec
Posts: 216
samu is on a distinguished road

without cam, macro is a good way to do it. But an ellipse approximated with line of a constant angular increment won't have the same tolerance all along the profile, especially if there is a big difference between X and Y radius. I wrote a macro trying to solve that using an increment inversely proportional to the distance from the center to the current point on the ellipse. It's a mill macro but like Geof said, it is not to hard to convert in lathe macro. More detail here:
http://www.cnczone.com/forums/508047-post9.html
Reply With Quote

  #8   Ban this user!
Old 01-11-2012, 04:24 AM
 
Join Date: Jan 2012
Location: Norge
Posts: 2
DanielBamek is on a distinguished road

I'm sorry guys, my english got mixed up a bit there, I ment that it's a mill. So i'm going to try what Andre' B suggests.


Thanks! This was really helpfull since i'm really new to all this!
Have a nice day!
Reply With Quote

  #9   Ban this user!
Old 01-12-2012, 12:43 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

Using a scale factor for y-axis does not make it exact ellipse, though it would look like one. If a mathematically true ellipse is to be made, one has to use its mathematical equation.
Reply With Quote

  #10   Ban this user!
Old 01-12-2012, 06:09 AM
 
Join Date: May 2007
Location: US
Posts: 779
Andre' B is on a distinguished road

You are right, only the center of the tool is moving in an ellipse, disregarding the cord error.
The part that is cut will be distorted some by the radius of the tool.
Turning on radius compensation should take care of that.

But keep the end mill small relative to the minor diameter and for many jobs it is not going to make a measurable difference.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 01-13-2012, 09:16 AM
fordav11's Avatar  
Join Date: Aug 2011
Location: Fordaville
Posts: 939
fordav11 is on a distinguished road

An ellipse is one of those curves you can't really 'measure' so it's not usually that important if it's not perfect as long as it is smooth.
Our hacky programmers in the office don't have a clue and draw an ellipse in Autocad then manually best-fit 3 or 4 curves per quadrant with close-enough tangents then dimension the start/end points and center points to get the coordinates then use that data to program the part.
Depending on how knowledgeable your quality control people are that method can normally be used with impunity.
Reply With Quote

  #12   Ban this user!
Old 01-15-2012, 09:02 PM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

In manual drawing also (isometric projection), an ellipse is drawn using four-center method, consisting of four arcs. It looks pretty good. The method is explained in all engineering-drawing books.
Reply With Quote

Reply

Tags
ellipse, fanuc, programming




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!- FACETED ELLIPSE cncstephen Mastercam 12 06-15-2011 04:23 AM
ELLIPSE BOBINETTE Mach Wizards, Macros, & Addons 11 07-04-2009 06:34 PM
Newbie- Wrapped Ellipse TZ250 BobCad-Cam 1 05-22-2009 03:07 AM
Need Help!- super ellipse Solgaard Commercial CNC Wood Routers 2 01-30-2009 01:11 AM
Milling an Ellipse Dave4x4 General CAM Discussion 2 02-28-2008 03:24 PM




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