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 > G-Code Programing


G-Code Programing Discuss G-code programing and problems here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 10-11-2010, 08:17 AM
 
Join Date: May 2008
Location: canada
Posts: 19
markkirby is on a distinguished road
Variable out of range Fanuc 31i

I am trying to investigate cycle time elements from a large programme consisting of say 100 toolpaths. It's running on a Mazak Vortex with Fanuc 31i control and according to the Fanuc manual parameter 6758 is the accumulated cycle time in minutes (manual says it is a 2-word path, valid data range 0-999999999) and I can see it ok on screen, however if I insert #700=#6758 to try and write the cycle time at end of each toolpath I get variable out of range error. #700 is definitely an allowable macro variable, any ideas what I am doing wrong?
Reply With Quote

  #2   Ban this user!
Old 10-11-2010, 01:50 PM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

That’s odd. I don’t have a 31i manual so I can’t really read up on it but I would think there should be no issue reading the data out of it. Have you tired using a different variable like #1 or #100 instead of #700? #699-#999 are option D for usable variables from Fanuc. Have you checked to make sure that you physically have access and can view #700?

Stevo
Reply With Quote

  #3   Ban this user!
Old 10-11-2010, 02:27 PM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

What is the alarm number? I think stevo1 might have hit the nail on the head. I found the following, but couldn't find one that was "Variable out of range".
Attached Thumbnails
Click image for larger version

Name:	F31i 0115 alarm.jpg‎
Views:	45
Size:	20.6 KB
ID:	116692  
Reply With Quote

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

Yea, I tried that - those are system parameters you are trying to read. I ended up having to use #3001 and #3002 from the exec macros. As far as I know the only way to overwrite those values is at the settings/handy screen and there is no way to read them.

DP
Reply With Quote

  #5   Ban this user!
Old 10-11-2010, 02:51 PM
 
Join Date: May 2008
Location: canada
Posts: 19
markkirby is on a distinguished road

Variable #700 is definitely ok, I use it regularly on this machine, so I don't think that is the issue. I'm not at the machine now and don't remember alarm number, but could have been 115. Attached is screenshot showing the parameter page variable I am trying to capture, 6758, cycle time in minutes...
Attached Thumbnails
Click image for larger version

Name:	Picture 085 (1).jpg‎
Views:	88
Size:	134.2 KB
ID:	116695  
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 10-11-2010, 02:59 PM
christinandavid's Avatar  
Join Date: Aug 2009
Location: New Zealand
Posts: 573
christinandavid is on a distinguished road

It's a system parameter. It can't be read. Stupid I know. I think there is software out there that can use the data from a system dump and give you what you want. I'm not going to get that software so I ended up using the millisecond counter #3001 and the decimal hour counter #3002.

I created an M-code which I plonked in at the end of each sequence which converted these to hh.mmss format so I could make sense of them. The formulas required are not pretty. If you end up going down this road I can post them for you.

DP
Reply With Quote

  #7   Ban this user!
Old 10-11-2010, 03:03 PM
 
Join Date: May 2008
Location: canada
Posts: 19
markkirby is on a distinguished road

christandavid in New Zealand (we are all over the World aren't we - i was in UK before Canada) - you tried 6758 with no joy? So you read the cycle start time via 3001 or something clever likethat - I was thinking I could just capture the system time (somehow?) at end of each programme in my main programme, but since the control appeared to offer me elapsed time to date that would save hacking data around later on in Excel or something....
Reply With Quote

  #8   Ban this user!
Old 10-11-2010, 03:24 PM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

If that is the case then you will have to use the #3001millisecond counter or #3002hour counter.

Stevo
Reply With Quote

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

I too was astonished that these values cannot be used. I'm hoping someone out there knows otherwise - it would save us all a lot of hassle...


Could you use the simulation to time the program? Mind you, if it is a long program it often takes longer to simulate than to run


DP
Reply With Quote

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

FYI the clock time and date is stored in #3011 & #3012. I use those to covertly check when the machine was powered up/warmed up in the morning (I work afternoons).


The system I am developing will involve a G-code at start of cycle to initialise macros, M-code at end of every sequence to manipulate and store the cumulative time as necessary. I have modified the ATC/APC macros, as well as B-axis indexing, to extract this time from the 'axis motion' time. It can get complex pretty quick, depending on how far you want to take it.

For instance my macro will check to see if a sequence has been repeated, and update tool times/sequence times seperately so I can see where time has been lost reworking. If a measuring device (probe/pointer/clock) is in spindle, the continuous millisecond counter is used rather than the decimal hour timer (which only stores automatic operation time) so I can see how long we spend faffing around and not running...

I have used up #500-#700 already...
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 10-11-2010, 07:38 PM
 
Join Date: May 2008
Location: canada
Posts: 19
markkirby is on a distinguished road

faffing around - haven't heard that for a while, but yes, there is lots of that. Guys used to code any experiments to MAFA on our time cards - took me a while to decode it....
As for simulating the time, that's the entire point of the excercise here, that the simulated times and actual times are quite different, due to machine AICC parameters. I'm trying to focus on the programmes where actual time is much more expensive than predicted/CAM time.
Reply With Quote

  #12   Ban this user!
Old 10-11-2010, 08:44 PM
christinandavid's Avatar  
Join Date: Aug 2009
Location: New Zealand
Posts: 573
christinandavid is on a distinguished road

Let us know how you get on...

Note, that 'automatic operation time' #3002 may still be counting time when machine is 'waiting' at an M0/M1. That's why I needed to define the extra M-code to capture the time before the stop command. Obviously, if you use the continuous timers it don't matter...

DP
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
PLEASE HELP ,WHAT ARE VARIABLE FOR 18T FANUC CONTROL. cncweblangthang CNCzone Site News and Contests 0 12-17-2009 09:07 PM
Fanuc 16i variable offset issue PCCDon Fanuc 3 11-26-2009 01:04 AM
variable subscript out of range error hideaway G-Code Programing 4 03-15-2008 12:57 PM
Back up 9000 range on Fanuc 0M-C OC_ Fanuc 5 01-16-2008 02:32 PM
Does anyone have a list of variable for Fanuc 18i REVCAM_Bob Fanuc 2 01-21-2007 01:45 PM




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