Figured I'd start a thread on this, there's some things that make running out the code a bit easier and cleaner.
This is for mpost:
I wanted the R value to be model in drill cycles, but not in G02/G03 lines.
Code:
ModalLetters X Y Z F R
CwCode Force? Y
G02 X[h] Y[v] R[arcrad]
end
CCwCode Force? Y
G03 X[h] Y[v] R[arcrad]
end
Edited the toolchange code to go ahead and check to make sure the spindle speed wasn't set higher than what my machine can handle.
Code:
1stToolChange # First tool change
Comments
T[Tool] M06
N[BLOCK] G00 G[Work] G90 X[H] Y[V]
if [Speed] > 7500
S7500 M[Direct]
else
M[Direct] S[Speed]
endif
G43 H[Lcomp] Z[D] M[Cool]
End
I know its nothing special, but if it helps out one person, it was worth the post