I'm not sure what Fanuc you are using but I am running a mill with a 21-M controller. The machine is set up with rigid tap. If this is what you are trying to get to work, then this is part of the code that I use on my postform.m file:
Tap # Tapping canned/manual cycle
if [Rigid] > 0
M29 S[SPEED]
G84 G[RetPlane] X[H] Y[V] Z[D] R[VClear] F[FRate]
else
G84 G[RetPlane] X[H] Y[V] Z[D] R[Vclear] F[FRate]
Endif
end cancel
and then under the "StartCode" section, I modified it to this:
1stToolChange # First tool change
G0 G30 Z0
M1
T[Tool]
M6
if [Rigid] > 0
S[Speed]
G00 G90 G[WORK] X[H] Y[V] T[NextTool]
G43 Z[D] H[Lcomp] M[Cool]
else
S[Speed] M[Direct]
G00 G90 G[Work] X[H] Y[V] T[NEXTTOOL]
G43 Z[D] H[Lcomp] M[Cool]
Endif
End
This machine is set up with the tool staging so you may have to remove the T[NextTool] to make it work on yours. I hope this helps.


LinkBack URL
About LinkBacks




