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 03-26-2006, 01:05 AM
 
Join Date: Sep 2004
Location: Australia
Posts: 196
Darc is on a distinguished road
Is it possible to have a fanuc controller ask for inputs e.g ENTER PART LENGTH

I was just wondering, I do a lot of variable programming at the moment.
e.g
#01=100 (Part length)
IF[#01EQ0]GOTO20
G00 Z20.0
N20

I just thought it might be cool if the program can ask the operator to enter the part length (example only) at the start of each cycle.
We do small quantities of jobs 5 or 10 offs, and when we mill them I have the operator change variable #01 to suit each part length.
As you can tell I'm trying to make it a bit more user friendly for people who don't feel comfortable changing the program.
Reply With Quote

  #2  
Old 03-26-2006, 07:57 AM
*Registered*
 
Join Date: Mar 2006
Location: Boston
Posts: 1,628
lakeside is on a distinguished road

I think you may want to keep IF[#01EQ1]GOTO1 IF[#01EQ10]GOTO10
if Q=1" the move would be to Z1.0 IF[#01EQ20]GOTO20
by keeping the Q value to a 1 to 1 ratio it might be easy for people to understand as for with or not the controller will do this I can answer that
Reply With Quote

  #3   Ban this user!
Old 03-27-2006, 04:32 AM
 
Join Date: Mar 2006
Location: Australia
Posts: 163
Ozemale6t9 is on a distinguished road

I know on some you can do message output, but I am not sure if you can have it expect an input.

regards, Oz
Reply With Quote

  #4   Ban this user!
Old 04-26-2006, 12:03 AM
 
Join Date: Apr 2006
Location: USA
Posts: 3
brewertr is on a distinguished road

In a word "YES".

If you have Fanuc 10 or higher (newer) as an option you could/can create your own menu's and ask the operator for inputs.

Tom
Reply With Quote

  #5   Ban this user!
Old 04-26-2006, 02:04 AM
rhino's Avatar  
Join Date: Oct 2005
Location: Australia
Age: 29
Posts: 159
rhino is on a distinguished road

In my experience.
it is better to have 30 different programs for 30 different parts. AVIOD VARIABLES! one value has to be wrong and you have made a scrapper. this is vital in my job as i also make 1 to 10 offs. as long as you have a proven program with a documented Datum (or workshift) 99 times out of 100 you cant go wrong.

I hope this helps.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 04-26-2006, 11:24 AM
 
Join Date: Apr 2006
Location: USA
Posts: 3
brewertr is on a distinguished road

Originally Posted by rhino
In my experience.
it is better to have 30 different programs for 30 different parts. AVIOD VARIABLES! one value has to be wrong and you have made a scrapper. this is vital in my job as i also make 1 to 10 offs. as long as you have a proven program with a documented Datum (or workshift) 99 times out of 100 you cant go wrong.

I hope this helps.
Darc,

In my opinion there is no logical reason not to use variables if you have like parts or an operation such as cutoff tool, bar puller, etc. A variable program is like any other program and should be treated as such. Variables do not necessarily need operator input, they can be loaded the same as the cnc program.

In my experience variable and/or macro programs are more reliable because they are for the most part proved out by the person who programs them. And I assume your best programmer/machinist is the one who writes and proves out the variable or macro program.

Whenever a person is involved a mistake can be made. An operator doing an offset may make a calculator key stroke or input error. A programmer editing the code can make a mistake as well. These things happen and should not be an excuse not to automate but a reason to automate certain tasks.

Should you have parts with dim. A,B,C & D and they have 100 possible variances why would you want to make 100 programs of 256k rather than load the 4 variables by RS232 or Key Stroke input at the machine. There is much more opportunity to make a mistake in the 100 programs than in the 4 variables.

Tom
Reply With Quote

  #7   Ban this user!
Old 04-26-2006, 11:54 AM
 
Join Date: Feb 2006
Location: USA
Posts: 72
NIL8r is on a distinguished road

I use to work with an older Fanuc control on a grinder that had the "Macro A" and "Macro B" options. Not ALL older Fanuc controls have this. I can't recall which version of their control was on this machine. These were manual OD and ID grinder machines retro'd with Fanuc controls. The part diameter, length, wheel length and the % of the wheel to remain on the part at each end of the stroke were all entered as variables. Worked very well for simple setups without having to teach an operator G-code.
Oh, there was even a variable input for setting the feed for roughing and finishing. The amount to leave for the finishing feed was also a variable. The cool thing about this was all roughing could be "skipped" in the program by activating the "/" block skip key on the control. This would help is you only wanted to take a few 0.0001" off of the diameter without having to run the entire program from start.
ONE WORD OF CAUTION: When using the block skip, we had employees that would sometimes forget to shut that off when starting the next part usually resulting in a scrap part and sometimes wheel.

Also, If you want to be sure that the value is entered EVERY time the program is run, Reset the value to zero before the end of the program and create a logic statement that will fault if no value is entered.
Reply With Quote

  #8   Ban this user!
Old 04-28-2006, 09:30 PM
 
Join Date: Jan 2005
Location: Canada
Posts: 36
Heavy D is on a distinguished road

If these are parts that you may run several times per year, you could write a program where the operator enters a part number into a variable and the program will pick up the proper positions for that part automatically.

We have a line that runs over 200 parts numbers. The family of parts are very similar. Once the fixture is set up, a change over only requires a few quick change components to be changed and then you enter the part # into a variable. Based on that part number, the program will run the tools that are required for that part with the dimensions of the part. 99% of the time, the first part is good. This program is extremely long and took about 2 months to write test and prove but it has save us a lot of setup time and a lot less scrap.
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





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