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 10-21-2010, 08:04 PM
 
Join Date: Oct 2010
Location: USA
Age: 35
Posts: 4
Adam_777 is on a distinguished road
...with a vexing variable issue

Hi Everyone,

First off, I want to say; "Wow!" This data base and forum are HUGE! I hardly know where to begin. Even the welcome page is intimidating!

Therefore, I decided to plug my nose and jump right in by asking you guys to help me with a problem I'm having.

At work, we're running Kitamura MyCenter Horizontals with 16 controls. I've been working on a tool lasering program that allows operators to laser tools on the fly without ever leaving auto mode or stopping the program. I have all the bugs worked out but I want to add a step which requires my ability to access the tool count value from the Tool Life Management. So far, everybody I've asked has been stumped.

Does anybody know the series of variables associated to the counter for each tool group?

Thanks in advance for any and all help!

Adam
Reply With Quote

  #2   Ban this user!
Old 10-22-2010, 02:44 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

At least on 0i series controls, there is no such variable.
#4120 contains the last T-code commanded.
Reply With Quote

  #3   Ban this user!
Old 10-22-2010, 02:55 AM
 
Join Date: Oct 2010
Location: USA
Age: 35
Posts: 4
Adam_777 is on a distinguished road

Originally Posted by sinha_nsit View Post
At least on 0i series controls, there is no such variable.
#4120 contains the last T-code commanded.
Thanks, sinha_nsit, even though that's the news I don't wish to hear. Your not the first person to tell me that, or at least, the possibility of it.

How can that work?

There is a value stored somewhere and the capability of a 'Check Tool Life' alarm means that the control has access to the tool count value in order to throw the alarm. How can it do all this without an accessible variable?

Thanks
Reply With Quote

  #4   Ban this user!
Old 10-22-2010, 04:02 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

In the "Sample Program" section of "Custom Macro" chapter in Fanuc Operator's Manual, there is a program given which counts the usage time of different tools and stores them in permanent common variables (#500 series), using system variables #3002. I think this is close to what you want.

Sinha
Reply With Quote

  #5   Ban this user!
Old 10-22-2010, 08:27 PM
 
Join Date: Oct 2010
Location: USA
Age: 35
Posts: 4
Adam_777 is on a distinguished road

Originally Posted by sinha_nsit View Post
In the "Sample Program" section of "Custom Macro" chapter in Fanuc Operator's Manual, there is a program given which counts the usage time of different tools and stores them in permanent common variables (#500 series), using system variables #3002. I think this is close to what you want.

Sinha

I plugged it in MDI mode as #199=#3002 and it came up with a value of zero. I even tried it while a tool from the tool group was in the spindle and another tool group (with a count above zero, of course) was in the staging pot and it still came up with a value of zero.

I'm probably going to open a case with Fanuc. This bugger seems to be really buried.

I hate to keep burdening people with this problem and I am greatly appreciative of all and any help.

Thank you, Sinha!
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 10-22-2010, 08:47 PM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

I never did use tool life counts so I may be a bit off base but are they not used on the PMC side of the control? If that's the case it may all be handled on that side and there won't be much from a variable standpoint to track these thru a macro.

Please correct me if I am wrong.

Stevo
Reply With Quote

  #7   Ban this user!
Old 10-23-2010, 02:13 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

Originally Posted by Adam_777 View Post
I plugged it in MDI mode as #199=#3002 and it came up with a value of zero.
Use #500 series. #199 gets reset with M30.
Reply With Quote

  #8   Ban this user!
Old 10-23-2010, 01:13 PM
 
Join Date: Oct 2010
Location: USA
Age: 35
Posts: 4
Adam_777 is on a distinguished road

Originally Posted by sinha_nsit View Post
Use #500 series. #199 gets reset with M30.
I will. I was just doing that as a test.
Reply With Quote

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

Originally Posted by sinha_nsit View Post
Use #500 series. #199 gets reset with M30.
Not always. I have all of mine set up to only clear at power down. I cut some parts of the manual below.

With a reset operation, local variables and common variables #100 to
#149 are cleared to null values. They can be prevented from being cleared
by setting, CLV and CCV (bits 7 and 6 of parameter 6001). System
variables #1000 to #1133 are not cleared.
A reset operation clears any called states of custom macro programs and
subprograms, and any DO states, and returns control to the main program.

Common variables can be shared among different
macro programs. When the power is
turned off, variables #100 to #149 are initialized
to null. Variables #500 to #531 hold data
even when the power is turned off. As an option,
common variables #150 to #199 and
#532 to #999 are also available. However,
when these values are using, the length of the
tape that can be used for storage decreases
by 8.5 m.

Stevo
Reply With Quote

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

Right.

I only talked about usual settings.
It is even possible to retain local variables after M30 (6001#7), but very few people might be using this.
Reply With Quote

Sponsored Links
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
Variable zero Dave Elliot Machine Problems, Solutions , Wireless DNC, serial port 0 05-28-2010 04:38 AM
Fanuc 16i variable offset issue PCCDon Fanuc 3 11-26-2009 01:04 AM
EMC2 variable pitch / variable diameter threading. samco General Metalwork Discussion 0 03-09-2008 01:40 PM
IF variable = bla THEN do this ELSE do that ? iMisspell G-Code Programing 21 07-30-2006 10:57 PM
Help with selector switch wiring issue (***actually a motor issue***) BEDFORD Industrial Hobbies (Support forum) 7 04-07-2006 03:19 PM




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