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 03-08-2011, 09:35 AM
 
Join Date: Mar 2011
Location: USA
Posts: 4
Logan_ is on a distinguished road
Irregular circles with Fanuc 0-mc

I have a glass cutting machine with a fanuc 0-mc controller. The problem I have is when cutting circles. The circles consistently come out like an ellipse, with the major an minor axis in always the same spot. The major axis is about 28 degrees above the machine's x-axis. The axis' are only 0.015" different but I would like to reduce that to 0.006".
I've read up on this to discover people with this problem have x-y square issues. I have cut large squares to find the axis' are off by maybe 0.1 degrees. The diagonals of the squares I measuring have never been off more than 0.002".
The consistency of this machine is very good and the placement repeatability is phenomenal. I don't think backlash plays any role in this problem. Is the circular interpolation created by the controller whack? Is this a common problem? Am I expecting too much accuracy for this operation? Is there any compensation parameters in the controller other than backlash?

Thanks, Logan
Reply With Quote

  #2   Ban this user!
Old 03-08-2011, 11:22 AM
 
Join Date: Feb 2009
Location: usa
Posts: 2,914
underthetire is on a distinguished road

Is the egg shape out in the 45deg quadrants or out 90 degrees to the axis. I'm not sure i'm following your description. 0 controls on mills can handle .0001 circularity all day long, if the iron can. Not a control issue most likely, probable a mechanical problem or drive tuning. Does this machine have the Fanuc red cap AC servo motors on it, or some other system? There are probably 150 different parameters for motor tuning with Red Cap motors, if something other than fanuc motors all bets are off.
Reply With Quote

  #3   Ban this user!
Old 03-08-2011, 12:02 PM
 
Join Date: Mar 2011
Location: USA
Posts: 4
Logan_ is on a distinguished road

Essentially it is creating a circle and the low side is 0.015" less than the high side. The part I can't figure out is why the high and low diameters are happening in the same spot every time.

Yes it has redcap motors. I'm kind of looking for a scaling parameter. Essentially I g-code in a 3.55 circle and get a 3.2 circle as finished part. I was wondering if i could change a scaling factor to compensate.
Reply With Quote

  #4   Ban this user!
Old 03-08-2011, 06:59 PM
 
Join Date: Jun 2006
Location: usa
Posts: 38
yoshi900 is on a distinguished road

I had ran into a similar problem on my mill. I solved it by changing the cam system to post circle at max of 90deg sweep instead of 180deg.
can you post your code? hard to explain in word, but let me see if your situation is same as mine.
Reply With Quote

  #5   Ban this user!
Old 03-08-2011, 10:09 PM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

Never use radius method for 180 deg arcs. It is not accurate when angle is close to 180 degree. Use center method instead.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 03-09-2011, 02:22 AM
 
Join Date: Sep 2010
Location: Australia
Posts: 733
angelw is on a distinguished road

Originally Posted by sinha_nsit View Post
Never use radius method for 180 deg arcs. It is not accurate when angle is close to 180 degree. Use center method instead.
Hi Sinha,
As you know, this aspect of using R has been discussed at length in another thread, with no conclusion as to why there may be an error when using R other than the physical result on the machine of the OP.

As you would have gleaned from my previous posts, I'm not a fan of using R in circular interpolation programming, but nonetheless I find it difficult to swallow that using R would result in inaccuracy provided the start and end coordinates of the arc were accurately calculated.

Its true that using R will simple give you the best fit arc if the end point is not on the desired circular trajectory of an arc of a fixed center. The control does this by shifting the center to make it pass through the start and end point if the end point is not where it should be, provided that its geometrically possible to do so. Whereas when using I,J and K to identify the arc center relative to the start point, an alarm will result (depending on parameter setting) if the end point is not on the proposed trajectory.

Most control systems generate arcs by using a Start Angle, a Traversing Through Angle, and a Radius; this information being calculated by an interpreter using the G code passed to it. So in the case of when R is used, the interpreter would have to calculate the arc center, as opposed to the center being virtually fixed when I,J and K are used in the G code program.

Why I find it difficult to accept that using R would be any less accurate than I,J and K, is that the mathematics involved in calculating the arc center based on two points and a radius is by no means difficult, and I'm sure that popular control engineers would have the mental clout to design a routine that would accurately deal with arcs based on two points and a radius.

Of all the arcs to calculate a center for, a 180 degree arc having its start and end point on a line parallel to an axis is the simplest, being the average of the two X and two Y or Z coordinates. Accordingly, why should it be that 180deg arcs be inaccurately generated when programmed using R format?

Following is one method of calculating the arc center given two points and a radius.

Regards,

Bill


In the following math:
r = the arc radius
X1,Y1 = the start point
X2,Y2 = the end point

If the arc is 180 deg, only Step 2 is required.

Step 1
Get distance between 1st and 2nd points
q = Sqr((X2 - X1) ^ 2 + (Y2 - Y1) ^ 2)

Step 2
Find mid point of q (X3,Y3)
X3 = (X1 + X2) / 2
Y3 = (Y1 + Y2) / 2

Step 3
Find center point of arc
X = X3 + Sqr(r ^ 2 - (q / 2) ^ 2) * (Y1 - Y2) / q
Y = Y3 + Sqr(r ^ 2 - (q / 2) ^ 2) * (X2 - X1) / q

X = X3 - Sqr(r ^ 2 - (q / 2) ^ 2) * (Y1 - Y2) / q
Y = Y3 - Sqr(r ^ 2 - (q / 2) ^ 2) * (X2 - X1) / q
Reply With Quote

  #7   Ban this user!
Old 03-09-2011, 02:45 AM
Superman's Avatar  
Join Date: Dec 2008
Location: Krypton
Age: 51
Posts: 1,555
Superman is on a distinguished road
Buy me a Beer?

Just a comment on the side
We had a retro-fitted machine that generated elipses across a diagonal line instead of circles.

Turned out the retro ppl used a grub screw into a keyslot to secure the leadscrew to the servo motor.
so check the mechanics as well
Reply With Quote

  #8   Ban this user!
Old 03-09-2011, 07:55 AM
tc429's Avatar  
Join Date: Feb 2011
Location: USA
Posts: 325
tc429 is on a distinguished road

I'd doublecheck that linear acc/dec for feed parameter is ZERO, have seen it screw up interpolation before if anything is in there.

if its a analog servo control, program a 45 and watch following error at dgn 800/801- they must match (or be exactly half or double if servo sizes are different) or arcs will become polygons. the pots on the old drives are gain/offset/tach in that order from top to bottom or left to right depending on the card, turn auto drift comp in parameter 0 or 1 off, set drift comps to zero(around param 540 if I recall), adjust offset to zero following error at rest, run the 45 program and adjust tach pots to match- if counterbalanced axis involved, may have to fudge the offset a little to get it equal up/down, then rematch the tachs- do this at your actual cutting feedrate to get best possible roundness...had this issue long ago on horizontal mills, still see it once in a while, but the old analog stuff is getting scarce anymore around here.

EDIT-
sorry, just noticed the thread said 0M-C, so forget all the analog stuff
rereading, gotta wonder if lead error comps have ever been set- is this based on a metal cutting machine, or more like a flamecutter? just wondered as Ive seen some with simple belt/rack-pinion or even allthread screw drives instead of ballscrews

Last edited by tc429; 03-09-2011 at 08:45 AM.
Reply With Quote

  #9   Ban this user!
Old 03-09-2011, 12:23 PM
 
Join Date: Jun 2006
Location: usa
Posts: 38
yoshi900 is on a distinguished road

I don't know the math behind it. But it's very easy to see why R method and 180deg arc is bad with this example.

draw an arc in your cad program with the
start of the arc at x1.0 y0
end of the arc at x-.9999 y0
and radius of 1.0

in Autocad, the arc generated had the center off by 0.010, and the midpoint of the arc ended up at x0.0 y.9900

do it twice and you have a circle that's 0.0001 off in the x direction and .01 off in the y direction.

so i guess you can say it's a error cause by rounding off at the 4th digit after the decimal point. and it seems like it cause an error by a factor of 100.
Reply With Quote

  #10   Ban this user!
Old 03-09-2011, 03:27 PM
 
Join Date: Sep 2010
Location: Australia
Posts: 733
angelw is on a distinguished road

Originally Posted by yoshi900 View Post
I don't know the math behind it. But it's very easy to see why R method and 180deg arc is bad with this example.

draw an arc in your cad program with the
start of the arc at x1.0 y0
end of the arc at x-.9999 y0
and radius of 1.0

in Autocad, the arc generated had the center off by 0.010, and the midpoint of the arc ended up at x0.0 y.9900

do it twice and you have a circle that's 0.0001 off in the x direction and .01 off in the y direction.

so i guess you can say it's a error cause by rounding off at the 4th digit after the decimal point. and it seems like it cause an error by a factor of 100.

In my last post, I qualified the use of R by stating that if the Start and End points are calculated correctly, why would the result be inaccurate. In the example you've given your end point has been calculated inaccurately for a radius of 1.0; your end point should have been X-1.0 y0.0.

Regards,

Bill
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 03-09-2011, 07:56 PM
 
Join Date: Jun 2006
Location: usa
Posts: 38
yoshi900 is on a distinguished road
Smile

Originally Posted by angelw View Post
In my last post, I qualified the use of R by stating that if the Start and End points are calculated correctly, why would the result be inaccurate. In the example you've given your end point has been calculated inaccurately for a radius of 1.0; your end point should have been X-1.0 y0.0.

Regards,

Bill
Guess I didn't explain it clearly enough. My point was that if you had to round off even the the 4th digit after the decimal point, you can end up with a circle that's almost .010".

So lets say you draw a circle R1.0, split it in half at some random angle (i.e. 10.53 deg). you will have some start point like (i.e.. x0.984736,y.1234959) so your start and end point will have to be rounded off to the 4th digit. and that's where the problem comes.

Hope I made this more clear with this more confusing example.
Reply With Quote

  #12   Ban this user!
Old 03-09-2011, 09:09 PM
 
Join Date: Sep 2010
Location: Australia
Posts: 733
angelw is on a distinguished road

Originally Posted by yoshi900 View Post
Guess I didn't explain it clearly enough. My point was that if you had to round off even the the 4th digit after the decimal point, you can end up with a circle that's almost .010".

So lets say you draw a circle R1.0, split it in half at some random angle (i.e. 10.53 deg). you will have some start point like (i.e.. x0.984736,y.1234959) so your start and end point will have to be rounded off to the 4th digit. and that's where the problem comes.

Hope I made this more clear with this more confusing example.
I know exactly where you're coming from, but I think you'll find that its software relative. The attached picture is of exactly what you stated in your last example. Circle of 1.0 radius, split in half at a random angle, and the start and end points used to draw another circle using the circle through 2 point with a radius method. The result, as you can see is a circle with a center at X0 Y0; exactly the same as the original. The only difference being is that it was done using the CAD/CAM system that I and a colleague developed.

My point is, that there is no need for there to be the inaccuracy you're talking about. Back just before MS Windows was first introduced, I developed a CAD system that was streets ahead of Autocam at the time. However, writing it into a Windows app, was far too time consuming for a one man band and so I dropped further development of it. I still use this same CAD system on a DOS machine, and for most CNC program applications it still beats Autocam hands down.

Regards,

Bill
Click image for larger version

Name:	Circle_1.JPG
Views:	28
Size:	12.7 KB
ID:	128566
Reply With Quote

Reply

Tags
circles, ellipses, fanuc, glass, squareness




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!- How to get an Irregular Surface cut? RMS BobCad-Cam 9 12-22-2010 04:38 PM
machining of a irregular polygon kumar_manikonda CNC Machining Centers 0 05-21-2010 09:25 PM
how to reproduce a irregular shape ? pit202 Haas Mills 17 06-05-2009 02:03 PM
Pulses irregular ? tmead Machines running Mach Software 4 10-08-2008 11:01 AM
Engraving irregular surfaces Stepper Monkey Engraving Machines 7 03-29-2007 02:19 PM




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