What's new
What's new

Tool Prep outside of Sub Routine

MisterRoboto

Plastic
Joined
Apr 11, 2019
Need some advice, We are using a sub routine to call up a chip fan program to come in blow off the table to clear it of chips and coolant and the issue we are running into is the down time while the tool changer cycles back to the first tool in question. Is there any way that we can write in a tool prep in the carousel so while it is running the fan program it is pulling up a tool? If the fan program was just part of the program then I know it would be a simple matter of putting the Ttt number in a block, But since its a sub routine it has me stumped.

Here is an example of the current way it is running

~~~main program~~~~
G80 G00 Z1.;
M89;
M09;
M98 P9999;

~~SUB ROUT~~
O09999(FAN);
G00 G17 G40 G49 G80;
G10 L20 P3 G90 Z-26.146;
G154 P41;
T200 M06;
S6500 M03;
G43 H200 X-6. Y-3.5 Z8.0;
G01 X70. F500;
Y1.0;
X-6.;
G00 G28 G91 Z0.;
M99;
~~~BACK TO MAIN
G53 Z0.0
G00 G90 G154 P2
etc etc etc.



Is there anyway to set up to call up a tool so the first tool in the program being ran is waiting and ready to go??
 
Need some advice, We are using a sub routine to call up a chip fan program to come in blow off the table to clear it of chips and coolant and the issue we are running into is the down time while the tool changer cycles back to the first tool in question. Is there any way that we can write in a tool prep in the carousel so while it is running the fan program it is pulling up a tool? If the fan program was just part of the program then I know it would be a simple matter of putting the Ttt number in a block, But since its a sub routine it has me stumped.

Here is an example of the current way it is running

~~~main program~~~~
G80 G00 Z1.;
M89;
M09;
M98 P9999;

~~SUB ROUT~~
O09999(FAN);
G00 G17 G40 G49 G80;
G10 L20 P3 G90 Z-26.146;
G154 P41;
T200 M06;
S6500 M03;
G43 H200 X-6. Y-3.5 Z8.0;
G01 X70. F500;
Y1.0;
X-6.;
G00 G28 G91 Z0.;
M99;
~~~BACK TO MAIN
G53 Z0.0
G00 G90 G154 P2
etc etc etc.



Is there anyway to set up to call up a tool so the first tool in the program being ran is waiting and ready to go??

Yup, use G65:

G65 P9999 T1 or whatever tool number you want.

in your sub, #20 will be whatever T-value you use. In this case, 1. (you don't have to use T, you could A and #1 for example. T just makes more sense. T maps to variable #20)

O09999(FAN);
G00 G17 G40 G49 G80;
G10 L20 P3 G90 Z-26.146;
G154 P41;
T200 M06;
T#20
S6500 M03;
G43 H200 X-6. Y-3.5 Z8.0;
G01 X70. F500;
Y1.0;
X-6.;
G00 G28 G91 Z0.;
M99;
 








 
Back
Top