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 01-05-2011, 07:37 AM
 
Join Date: Aug 2010
Location: USA
Posts: 34
pmd5700 is on a distinguished road
DNC Questions

I have 2 DNC questions for a Fanuc 0i-MC controller.

1) When using DNC with a memory card or RS232 cable, can you access subprograms?

2) Is there any way to start a DNC program from a specific line. For example, you run through 6 hours of machining and then your cutter breaks. Is there a way to start from near the point your cutter broke, or do you just need to start from the beginning?

Thanks for your help!
Reply With Quote

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

Originally Posted by pmd5700 View Post
I have 2 DNC questions for a Fanuc 0i-MC controller.

1) When using DNC with a memory card or RS232 cable, can you access subprograms?

2) Is there any way to start a DNC program from a specific line. For example, you run through 6 hours of machining and then your cutter breaks. Is there a way to start from near the point your cutter broke, or do you just need to start from the beginning?

Thanks for your help!
Peter,
Most definitely, but of course the Sub Programs have to be registered in the controls memory. All other functions of the machine such as Single Block, Feed Hold, Optional Stop, Compulsory Stop, Block Skip etc, all work as per normal.

With regards to restarting part way through a program in DNC mode, it depend somewhat on the software being used with the DNC. My own Comms/Editor package, when used in DNC mode, prompts the user with the message "Do you want to Start from the Current Block"; the Current Block being where the cursor is currently located in the program in the PC. OK, that satisfies the PC end of things, but you just can't place the cursor anywhere in the program and expect the machine to know whats previous to the current cursor position, such as Tool Length offset calls etc. Accordingly, program structure is important with regards to how easy or difficult it is to restart in DNC mode.

Particularly with programs destined for DNC use, I structure my programs so that each tool is a Stand Alone program within the program. All of the information relevant to that tool is included so that if all of the program except for that tool's code was deleted, it could be successfully run. I only use a sequence number at the start of each tool and I increment these numbers by 1. The reason being, is that in a large program, having many tools, in my opinion, its easier to know the sequence of the operation, than the tool number used in the operation. For example, I know that its the 7th operation I want to repeat, rather than it being tool number 24. Accordingly, I can just search for N7 in the program.

Because the program is being run in DNC from a PC, the size of the program is somewhat irrelevant, and limited by the space left on the Hard Drive; if it fits on the Hard Drive, then you can run it as a DNC program. Accordingly, I Post the program so that G0, G1, G2, G3 etc are output in each block where required, notwithstanding that they're modal. So, to do a restart in DNC, I do the following:

1. At the machine side I ensure that the machine is ready to be restarted.

2. At the PC end, I search for the sequence number of the operation within which the restart will be initiated.

3. I find the block where I actually want the cutting to recommence and I put a sequence number that's not used elsewhere in the program; any number greater than the total number of machining operations being carried out by the program; N111 for example. Once that is done, I again search for the sequence number as in point 2 above.

4. The software being used will dictate whether the PC or machine initiates the transfer, but in the case of my software, I get the PC side ready, then with the machine control in single block, I step through the program until the tool change has been completed and the Work and Tool length offset has been applied from the program.

5. Back at the PC, I move the cursor down to the where I want the machining to start in the program, sequence number N111 to use the example from point 3 above.

6. There will be a couple of lines buffered in the machine from when the program was restarted before repositioning the cursor as in point 5. Still in single block, let these play out and watch for the N111 block to appear as the next block at the control. Because I include all G0's etc, the machine will be in the correct mode when it starts machining.

7. In manual mode, move the tool close to where you want the machining to restart. Back into single block mode and press cycle start to progress the program until you're sure that machine and program are in sync again.

8. Select Auto Mode and and let the machine run.

The above may sound complicated, but in practice its quite simple. You're merely allowing the machine control to read and apply the required offsets and anything else in the start up of the tool that's important, and then you change the position of the cursor in the DNC program to where you want the machining to restart.

There is a restart sequence for the Oi when running from memory, but this does not apply in DNC with RS232.

Regards,

Bill
Reply With Quote

  #3   Ban this user!
Old 01-06-2011, 05:16 AM
 
Join Date: Aug 2010
Location: USA
Posts: 34
pmd5700 is on a distinguished road

Bill, I appreciate your response!

I was reading the manual for the 0i-MC last night and from what I can tell, you can read subprograms from the memory card, but the main program has to be in the controller memory. Does that sound right to you?

As for DNC restart; at the moment, because of machine changes and computer changes, we don't have a program that can do dripfeed, so we're mainly concered with drip feeding from the memory card. We have 4GB memory cards that seem to work fine with our machines so I guess subprograms aren't a necessity, but more of an interest just incase we need them some day.

Thanks,
Peter
Reply With Quote

  #4   Ban this user!
Old 01-06-2011, 05:47 AM
 
Join Date: Sep 2010
Location: Australia
Posts: 733
angelw is on a distinguished road

Originally Posted by pmd5700 View Post
Bill, I appreciate your response!

I was reading the manual for the 0i-MC last night and from what I can tell, you can read subprograms from the memory card, but the main program has to be in the controller memory. Does that sound right to you?

As for DNC restart; at the moment, because of machine changes and computer changes, we don't have a program that can do dripfeed, so we're mainly concered with drip feeding from the memory card. We have 4GB memory cards that seem to work fine with our machines so I guess subprograms aren't a necessity, but more of an interest just incase we need them some day.

Thanks,
Peter
Peter,
There are a couple of ways of doing it with a memory card. Obviously, you only use DNC when the program is too large for the memory, there is no advantage otherwise. If the Subs are large in size, and particularly if the operation is repeating, then the Subs are recorded on the card using a small Main program in memory to manage the calling.

To do DNC from a Memory Card you need the I/O device to be set to 4

Regards,

Bill
Reply With Quote

  #5   Ban this user!
Old 01-06-2011, 05:58 AM
 
Join Date: Aug 2010
Location: USA
Posts: 34
pmd5700 is on a distinguished road

That's what I figured. Just to be clear, you can't have the main program and the sub program(s) on the memory card. The main program has to be on the control memory if the sub programs are on the memory card.

If you have the main program on the controller memory and the sub program(s) on the memory card, do you have to drip feed to access the sub programs, or can you just run a regular program and use M198 to call the sub programs?

Thanks!
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-06-2011, 06:08 AM
 
Join Date: Sep 2010
Location: Australia
Posts: 733
angelw is on a distinguished road

Originally Posted by pmd5700 View Post
That's what I figured. Just to be clear, you can't have the main program and the sub program(s) on the memory card. The main program has to be on the control memory if the sub programs are on the memory card.

If you have the main program on the controller memory and the sub program(s) on the memory card, do you have to drip feed to access the sub programs, or can you just run a regular program and use M198 to call the sub programs?

Thanks!
That's correct. With regards to the second question, you run the main program from memory and call the Sub with M198.

Regards,

Bill
Reply With Quote

  #7   Ban this user!
Old 01-06-2011, 06:17 AM
 
Join Date: Aug 2010
Location: USA
Posts: 34
pmd5700 is on a distinguished road

Excellent! Thanks for all your help!

Peter
Reply With Quote

  #8   Ban this user!
Old 01-06-2011, 06:44 AM
 
Join Date: Sep 2010
Location: Australia
Posts: 733
angelw is on a distinguished road

Originally Posted by pmd5700 View Post
Excellent! Thanks for all your help!

Peter
PM sent to you.

Regards,

Bill
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
CNC mill questions - thrust bearings, leadscrew mounting, general questions tonofsteel DIY-CNC Router Table Machines 8 02-03-2012 03:42 PM
Brass vs Aluminium Vs Steel, questions, questions and questions... alexccmeister General Metal Working Machines 25 08-15-2011 12:40 PM
New Machine Build- First CNC - Questions Jonc80 DIY-CNC Router Table Machines 20 04-21-2010 05:58 PM
Questions halfstep Industrial Hobbies (Support forum) 1 01-12-2010 12:43 PM
Newbie- Questions nofx Metal Working Tooling 0 01-07-2010 10:07 PM




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