loading program

How do you load multiple programs into a Fanuc 16I control? I have a main and 8 subs. Percent sign at the beginning and end only. Subs end in M99 of
course. The machine is a Toyoda FH30 any help would be appriciated!
--



Thanks,
Rick

Millennium CNC Inc.
  Click to see the full signature.
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload
% :0001 G90 etc... M30 :0002 G90 etc... M30 :0003 G90 etc... M30 %
used to work for Fanuc 0 controls.

Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload
On Wed, 16 Mar 2005 14:31:33 GMT, "Rick Lucchetti"

Last I knew, you couldn't. Not by any conventional method, anyway.
What you *can* do is put all the programs in one file. Don't separate them with a percent sign.
% O1234 (program body) M99 O0001 (program body) M99 O0002 (program body) M99 O0003 (program body) M99 %
Keep in mind that no matter what the program numbers are for you sub's, the Fanuc controller will re-number them sequentially after the first program number you tell it to take.
Main Program = O1234 Sub 1 =O1235 Sub 2 =O1236 etc,etc,etc.....
You just have to remember to edit the program number on all the subs.
Disclaimer: This is the way it worked on the older Fanuc's, 2t,3t,6tb,10t,0t & 0tt. Don't know squat about the 16i. Ever noticed what happens when you mistakenly entered an O, instead of a Zero in the program body? You only get part of your program. Everything after the controller read that O got entered into a different program, one digit higher than the one you started with.
Matt
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload

That's a parameter setting for renumbering the programs. Even on the older controls. If this is driving anyone nuts, let me know the control model and I'll dig up the parameter for you to change. To input/output multiple programs you can always use -9999 <input> or <output>. As Matt says they all need to be in the same file. When output they will be output into one file. The newer controls have soft keys that offer a <read> <all> or <punch> <all> option, but the -9999 command still works. You can also use - 9999 <delete> to delete all of the programs when you are done with them.
Dan
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload
on our 21m we save and load programs by entering Oxxxx, Oxxxx and pressing the punch button

Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload

Polytechforum.com is a website by engineers for engineers. It is not affiliated with any of manufacturers or vendors discussed here. All logos and trade names are the property of their respective owners.