Hello,
I want to put a "if" statement in my tool changer on a okuma hoz. fanuc 16I controll. What I want it to do is look at data # D0004 tool in spindle and if same tool as program is calling up just have it goto end of tool changer program.
Reason for this, right now it alarms tool in spindle so the operators skip over tool changer and we all hope right tool in spindle. We had one junk part last night, trying to put 3/4 em where a 1/4 drill should be.
Thanks
If operators can skip the t command they will do the if statment as well
On a mill its how you create the main that is the issue
()
O1000(mill)
G200-Macro for home pos
N101 M98 P9101(DRILL)
N102 M98 P9102(TAP)
ETC
G200
M30
SUB
O9101(DRILL)
G200
T1
M6
G00G54P1G43H1X100.0Z100.0Y100.0M03S1000
DRILLING CYCLE
G200
M99
With this program you can only see the main desplayed if you want to lock out the subs and you can rework from the main and the sub is self contained to look after tool change