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-21-2011, 07:38 AM
 
Join Date: Jan 2011
Location: usa
Posts: 11
nracingdev is on a distinguished road
Oi Mate TC incremental problem

Guys,

We have a cylindrical 2 axis grinding machine. The bed is the Z axis, and the Wheel is the X. X negative moves wheel toward part and vice versa. I have been having issues with this machine doing very unpredictable issues that I usually can find work arounds. This problem however I have been unsuccessful.

I basically have a bunch programs all working together: O1405 parent grinding program, O1406 plunge sub, O1407 traverse grinding sub, O1409 safety program, and O9012 is my wheel dressing program.

The issue I am running into is the parent program will call the plunge routine, and after a pass will pull the wheel back and run the dress program. When the dress cycle ends the X axis returns home via G28. From here the program drops back into the plunge routine which calls my safety program. The safety program calls up the correct Csys and tool offsets. After this it commands small incremental moves of each axis (G01 U-.01 W-.01) as I have had issues with the correct positions not being displayed without a movement command after the offset and Csys change.

My problem is that on the first return from dress and the incremental command is called, only the X axis fails by trying to move positive. The screen shows the Z axis distance to go is -.01 however the X shows +.3845. When the axis is at home this causes it to overtravel in the positive direction displaying errors 500, and 410.

Sorry for the long post if anyone wants more code please let me know because this machine is killing me with its unpredictability.
Thanks,
Chris
Reply With Quote

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

did it work properly at all? Meaning could it be purely a machine fault or if it never worked right it could be a program issue? If the latter please post your program(s)
Reply With Quote

  #3   Ban this user!
Old 12-21-2011, 08:15 AM
 
Join Date: Jun 2011
Location: USA
Posts: 58
G0G90 is on a distinguished road
Buy me a Beer?

Has this worked in the past?
It really sounds like something in your code is to blame.

can you post your code or attach it?
Reply With Quote

  #4   Ban this user!
Old 12-21-2011, 09:07 AM
 
Join Date: Jan 2011
Location: usa
Posts: 11
nracingdev is on a distinguished road

this issue does not appear in all programs. It is very hit or miss.
I have another "manual" program I wrote O9016 which this issue happens only the first time from return from dress cycle. After the first failure, the control runs the program as written.

I will attach all of the programs but i will warn you, they can be somewhat difficult to follow as they are quite parametric. Thanks for the concern guys
Reply With Quote

  #5   Ban this user!
Old 12-21-2011, 10:59 AM
 
Join Date: Jan 2011
Location: usa
Posts: 11
nracingdev is on a distinguished road

uploaded files
Attached Files
File Type: zip CNC ISSUES.zip‎ (4.4 KB, 20 views)
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 12-21-2011, 11:56 AM
 
Join Date: Jun 2011
Location: USA
Posts: 58
G0G90 is on a distinguished road
Buy me a Beer?

Understandably, this is difficult to go through without any values.
However, I did notice several instances on your conditional logic (IF, THEN) without contingencies of ELSE that would leave the program miscalculate.

Example;
N50IF[#607EQ1.0]GOTO21;
IF[#607EQ2.0]GOTO22;
;
N21#606=#673-#615;

In the above, if both statements are FALSE, it drops onto the next N21, anyways.
Is this the desired effect?
As I'm reading this code through, there is no initial value assigned to #607 ???

At the bottom of O1408, N20 - the M99 will execute prior to assigning #607 and therefore will not assign the value to it
Reply With Quote

  #7   Ban this user!
Old 12-21-2011, 06:20 PM
 
Join Date: Jan 2011
Location: usa
Posts: 11
nracingdev is on a distinguished road

GOG90,

Thanks for checking out my programs. The conditional values you specifically called out refer to a value that is entered by the operator. It is to select 1 for diameter one of a part or 2 for diameter 2. If the parent program is run from the beginning, it will automatically change the value to 2 forcing the logic to move on to the second diameter of the part.

as for the N20 at the bottom of 1408, you definitely pointed out a flaw in the program. The first M99 was supposed to be removed and the value assignment happens before the M99 is issued.
Reply With Quote

  #8   Ban this user!
Old 12-21-2011, 06:41 PM
 
Join Date: Jan 2011
Location: usa
Posts: 11
nracingdev is on a distinguished road

I think all of this parametric programming is too confusing to sort through to diagnose the problem. I originally found this issue with the manual program O9016 so lets look at this. Which now I am realizing I uploaded to the post the incorrect revision. First thing tomorrow morning I will upload the correct version.

As I said in the earlier post, this happens when returning to O9016 from the dress program O9012.

When completing the dress program my Csys is G56 using T4848 which locates the dresser. I am not at the control now so I cant tell you what the actual offset numbers are but lets be abstract here.
So we are complete with O9012, and call up O9016. O9016 starts by calling Csys G55 and T6262. I have found on this particular control that the Tool offsets do not affect the size on screen until a movement command is issued. Because of this I issue a G01 U-.01 W-.01; command which should move the wheel (X toward part .01") and move the table (Z left .01"). It is then followed by G01 U.01 W.01 which should return both axis to where they were before the first movement command.

What actually happens on the first command is the distance to go for Z is correct at -.01 and the table moves there. The X however goes crazy and shows on the screen a large incremental positive move which when the head is where it starts from (ZRN) causes the axis to over-travel.
Reply With Quote

  #9   Ban this user!
Old 12-22-2011, 07:00 AM
 
Join Date: Jan 2011
Location: usa
Posts: 11
nracingdev is on a distinguished road

here is the correct O9016. Thanks for the attention guys
Attached Files
File Type: txt O9016.txt‎ (268 Bytes, 13 views)
Reply With Quote

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

most Fanuc controls I've worked wont apply a tool offset unless there's a G00 on the same line. In that case the control will sit waiting for tool movement but because there is no G0 or G1 it hangs.
So..... G00 T6262

also, try writing the program a more standard way without macro variables. just stick in some fixed numbers and it should just work.

O9016 (MANUAL INFEED AUTO TRAV)(MERANI DEC 06, 2010)
G55
G98
G00 T6262
G97 S200 M3
G00 X25.0 Z0 M8
G01 X24.936 F50.
G01 Z-15.0 F100.
G04 U2.5
G01 Z0 F6.
G04 U2.5
G01 Z-15.0
G04 U2.5
G28 U0 W0
T6200 M5
M30
%
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 12-27-2011, 12:21 PM
 
Join Date: Jan 2011
Location: usa
Posts: 11
nracingdev is on a distinguished road

adding G00 in front of the tool call did absolutely nothing. The machine still fails to adjust the positions until a move is initiated.

As for removing the macro variables, what is the point. I am well aware that the machine can be programmed with absolute numbers and will function satisfactorily. The reason we use macro programming is that we are a job shop doing small production runs and one off parts. We are cylindrically grinding with tolerances down to .0001". Because of this the program needs to be intuitive to where the operator can change a specific macro variable without modifying the program and let the program do the logic.

Does anyone know how to contact a local fanuc rep to have them come out and see what this POS is doing?
Reply With Quote

  #12   Ban this user!
Old 12-27-2011, 02:48 PM
 
Join Date: Mar 2005
Location: United States
Age: 34
Posts: 657
gbowne1 is on a distinguished road

It's interesting to note that the MTB used a 0i Mate TC control. Instead of one of the FANUC "G" controls on a grinder.

But really, it looks like too much code. I like fordav11's approach.

Code:
O9016 (MANUAL INFEED AUTO TRAV)(MERANI DEC 06, 2010)
G55
G98
G00 T6262
G97 S200 M3
G00 X25.0 Z0 M8
G01 X24.936 F50.
G01 Z-15.0 F100.
G04 U2.5
G01 Z0 F6.
G04 U2.5
G01 Z-15.0
G04 U2.5
G28 U0 W0
T6200 M5
M30
%
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 oi Mate-MC (300 APC alarm problem) klosr Fanuc 9 04-29-2012 04:30 AM
2008 Omnitec selexx mate(fanuc mm) post problem to use v-carve pro drsales Post Processor Files 0 08-22-2009 10:53 AM
Need Help!- Fanuc Oi mate MC dnc problem rai Fanuc 3 03-08-2008 11:59 AM
Program Memory problem in FANUC 0i Mate MC ranjankrana Fanuc 6 01-10-2008 03:34 AM
Stupid problem - jogging incremental Mach 3 mill Green0 Mach Mill 2 06-23-2007 02:50 PM




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