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 02-02-2011, 02:17 PM
 
Join Date: Aug 2009
Location: USA
Posts: 44
blackbolt9 is on a distinguished road
Trying to update to metric

Previously everything has always been run in english (G20) mode and therefore everything in the control is setup that way as well (offsets, tool data, etc.). I'm trying to convert over to using metric (G21) mode and programming in metric from this point forward since previously drawings have needed to be manipulated to program them. It obviously makes more sense to not make those changes and program in metric, however, I will still need to be able to run the old english programs without making any changes to do it, the operator will be unaware of whether they are running an old english program or a new metric one.

I have already written one program in G21 mode and ran it at the machine to verify that everything could work. It appears that after running a metric program the tool data shows up in mm and after running an english program the tool data shows up in inches. So it appears that the contorl does make a conversion. However, when I run my metric program the tool is nowhere near the table. It appears that X and Y locations are correct but I have not been able to verify this since the tool is so high that I can't cut anything to actually verify tool offsets in metric mode. Am I missing something that needs to be compensated for in Z when running in metric mode? Is that another "G" command or do I need to make a compensation in my programming? I'm guessing there is an easy fix for this but I don't know enough about the controllers to come to the right conclusion.

BTW, I have 4 similar machines. Two of them have the Fanuc 15-M controller and the other two have the Fanuc 180i-M controller.

Thank you for your help and suggestions in advance,

Tom

Searched "180i-m" and "15-m" but didn't come up with anything.
Reply With Quote

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

Set bit 0 of parameter 5006 to 1 for tool compensation values to be automatically converted. However, when this parameter is changed, the tool offset data has to be reset.

Regards,

Bill

Last edited by angelw; 02-02-2011 at 04:03 PM.
Reply With Quote

  #3   Ban this user!
Old 02-02-2011, 03:10 PM
christinandavid's Avatar  
Join Date: Aug 2009
Location: New Zealand
Posts: 573
christinandavid is on a distinguished road

Check those tool table figures - from what I've heard recently, the control may be simply moving the decimal place around ie not converting the values, just changing the input resolution...

A quick fix to keep your old programs working may be to use a scaling g-code (if you have the option, you may be able to specify the scaling factor for each axis individually) in the program. (Never tried it myself...)

My advice is to edit your old programs so that everything is in metric - I know it may sound long-winded, but every other approach is inviting a balls-up every single time the job is run.
At least if you convert the programs you only have opportunity to balls-up on the first run....as long as someone else double-checks the figures, you should be ok.

This reminds me of the JSF drawings...they took metric components and converted all the dimensions to totally obscure imperial equivalents...then us poor operators had to convert back to nice round figures (we used metric mode as a rule)...and then the CMM reports were pumped out in imperial. There were balls-ups a-plenty that day.

DP
Reply With Quote

  #4   Ban this user!
Old 02-02-2011, 08:27 PM
 
Join Date: Aug 2009
Location: USA
Posts: 44
blackbolt9 is on a distinguished road

I don't remember the numbers now. I think they were totally different numbers though, not just a moved decimal place. I will try to double check that tomorrow.

I would love to just rewrite the old files, but we literally have thousands. Thinks several gigs of programs when each program is usually less than 100kb! No way that is going to fly. I guess I will keep working. It seemed like the X & Y values scaled correctly using the G21 command but the Z did not. I am starting to wonder if it is because we set X & Y offset values with a G54 command but are not offsetting the Z value with it. That tells me the Z value is a global variable and we may just have to add that to our G54 line to make Z scale correctly as well. If I come up with something I'll update the board.

Thanks!

Originally Posted by christinandavid View Post
Check those tool table figures - from what I've heard recently, the control may be simply moving the decimal place around ie not converting the values, just changing the input resolution...

A quick fix to keep your old programs working may be to use a scaling g-code (if you have the option, you may be able to specify the scaling factor for each axis individually) in the program. (Never tried it myself...)

My advice is to edit your old programs so that everything is in metric - I know it may sound long-winded, but every other approach is inviting a balls-up every single time the job is run.
At least if you convert the programs you only have opportunity to balls-up on the first run....as long as someone else double-checks the figures, you should be ok.

This reminds me of the JSF drawings...they took metric components and converted all the dimensions to totally obscure imperial equivalents...then us poor operators had to convert back to nice round figures (we used metric mode as a rule)...and then the CMM reports were pumped out in imperial. There were balls-ups a-plenty that day.

DP
Reply With Quote

  #5   Ban this user!
Old 02-02-2011, 08:30 PM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

Originally Posted by angelw View Post
Set bit 0 of parameter 5006 to 1 for tool compensation values to be automatically converted. However, when this parameter is changed, the tool offset data has to be reset.
Bill,
What do you mean by "reset"? Does the tool offset table get cleared when changing this parameter? Just curious for my own info as I had no idea that there was a parameter for this.

Is there a reason for this setting? One would ass u me that if you wanted to switch the machine from inch to metric with using G21 why would you NOT want your offsets to change to metric. Sounds like an easy way to get FUBAR.

Stevo
Reply With Quote

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

Originally Posted by stevo1 View Post
Bill,
What do you mean by "reset"? Does the tool offset table get cleared when changing this parameter? Just curious for my own info as I had no idea that there was a parameter for this.

Is there a reason for this setting? One would ass u me that if you wanted to switch the machine from inch to metric with using G21 why would you NOT want your offsets to change to metric. Sounds like an easy way to get FUBAR.

Stevo
Stevo,
I agree, it seem like a superfluous parameter; logic would indicate that the conversion of the offset should occur no matter what.

Its my understanding that if the bit is changed, then the offsets have to be set again. I'm not sure what happens if this step is omitted, whether the conversion is not initiated until this is done, I'm not sure of.

I set this on a machine recently that came from a shop that carried out their work in Imperial mode and the new home for the machine swaps between the two systems regularly. As the machine came with no tools, I set the tool offsets as the tools were being loaded, so the decision was made for me with regards to resetting the offsets. The next time I'm in front of a machine I'll see what happens if the bit is changed and the offsets not reset.

Regards,

Bill
Name:  5006.bmp
Views: 156
Size:  366.6 KB
Reply With Quote

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

Originally Posted by blackbolt9 View Post
I would love to just rewrite the old files, but we literally have thousands. Thinks several gigs of programs when each program is usually less than 100kb! No way that is going to fly.

Thanks!
Having converted programs with G21 and G20 at the start of each respective program is the safest way in my opinion. My own Editor/Comms package has a function that will convert programs either ways between Metric and Imperial mode with just a couple of key strokes, and even incredibly large programs are converted very quickly. I'm sure there would be other systems around that would do the same.

Regards,

Bill
Reply With Quote

  #8   Ban this user!
Old 02-03-2011, 06:55 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

Originally Posted by christinandavid View Post
... from what I've heard recently, the control may be simply moving the decimal place around ie not converting the values, just changing the input resolution...
I also heard this.
It appears that offset setting done in one mode (say mm mode) becomes useless if the program is in the other mode.
But, considering the flexibility provided by the control, there must be a way out, so that there is no need to repeat offset setting when mode is changed.
Reply With Quote

  #9   Ban this user!
Old 02-03-2011, 08:44 AM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

My interpretation of the offsets based on what Bill has said and the PDF posted is that changing this parameter will probably initiate having to powercycle the machine and when doing so it will clear the offsets and they need to be reset. I ass u me that this is a onetime deal.

I had Fanuc series 10,15,18 that had to switch back inch to metric and vice versa all the time. I never had a problem with the offsets or anything for that matter. I was just unaware of this parameter. It must have always been set. I always did as Bill stated. For the programs that ran in metric I put G21 at the beginning of the main program. The ones that ran in inch I put G20 at the beginning. Never was a problem.

Stevo
Reply With Quote

  #10   Ban this user!
Old 02-03-2011, 10:25 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

This means that offset values automatically get converted in the other unit. It is not just decimal shift. Might be parameter dependent.
What happens to the values set in parameters for reference position etc.?
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 02-03-2011, 10:59 AM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

Originally Posted by sinha_nsit View Post
What happens to the values set in parameters for reference position etc.?
All of the reference position parameters that I have ever set have been in metric I believe this has to do with metric or inch ballscrews. I don't think it matters. These are not converted.

Stevo
Reply With Quote

  #12   Ban this user!
Old 02-03-2011, 01:59 PM
 
Join Date: Aug 2009
Location: USA
Posts: 44
blackbolt9 is on a distinguished road

Originally Posted by stevo1 View Post
For the programs that ran in metric I put G21 at the beginning of the main program. The ones that ran in inch I put G20 at the beginning. Never was a problem.

Stevo
This is what I'm currently doing. Just need to figure out why my Z-position is screwy when running a G21 metric program.

Thanks,
Tom
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
IH update Runner4404spd Industrial Hobbies (Support forum) 14 07-23-2010 01:04 AM
UPDATE TURNER NCPlot G-Code editor / backplotter 5 07-20-2010 08:04 AM
Build Thread- update MSPP BobCad-Cam 9 05-17-2008 12:00 PM
10.7 Update Dolphin USA Dolphin CADCAM 0 03-17-2008 03:12 PM




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