357
« on: January 29, 2016, 11:24:07 AM »
M6start macro
CurrentTool = SelectedTool
IF CurrentTool = 1 then
SetVar(1000,GetToolParam(1,1))
Message("" & GetToolDesc(1)) &" Offset> " & GetToolParam(1,1) ' Send the Description to the message bar
*************************************************************
In your TOM routine in the Gcode You use a #var (#1000) to apply teh switch offset
G28.1 Z.5
G92 Z0.000
G0 Z #1000 ( Move the switch offset distance)
G92 Z0.000 ( reset Z zero)
So now any time you change teh Switch offset and you call teh Tool# it automatically applies teh correct value based on teh tool table value.
AND just a note the message bar is NOT teh average Mach3 unreadabel size it is a FULL 3/4" high and VERY readable by teh OP(;-) It is NOT a whimpy message bar (;-)
Also IF you have a generic setup that is normally used you can use Tool#0 . Mainly because when Mach3 starts up it always sets teh Tool# to 0.
That way if you go to cut and then is no tool call then it uses teh generic setup value.
If CurrentTool = 0 then
SetVar(1000, .095)
AND YES you can call tool changes from SheetCam.