Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: Davek0974 on June 02, 2019, 02:28:55 AM
-
For one reason or another ;) I want to clear the current tool with a macro code.
I have tried SetCurrentTool(0) but although it clears the tool DRO it does not clear the tool offset or the tool description label.
Can it be done properly?
This is on Mach Turn BTW
-
try
SetDro(24,0)
-
Very nice, thanks TPS :)
-
I think the above will only clear the DRO but the description and offsets will still be in the tool table.
To set the tool table offsets zero you could use the same code as you do in the height setter macro but include the X. Remeber X is rad in the tool table but if setting to zero it won't matter anyway.
G90 G10 L1 P1 X0 ZO will set offset 1 to zero, or it should. The label I am unsure of.
-
Thanks Hood, TPS had it - i just wanted to remove the current tool from the system not from the actual tool table, setting the DRO to 0 seems ok,
;)
Dave
-
Ah ok, thought you were wanting to clear the table.
Calling T0000 should do the same I would think.
-
Thanks