Any time I probe a tool or probe for a work offset, I save the fixture and work offsets tables. You could save these in a file perhaps, then you can go back and look at them.
Here is a macro that stores the tool lengths for tools 1-5 into a file.
You can take this code and put it in the PLC script and let it automatically update this log every so often.
You can put it in a button and press the button every time you make a change to your tool table.
Make a module and do something with it.
Do whatever you want with it really...
--Store Tool Length Data
function m107()
local inst = mc.mcGetInstance()
local Date = os.date()
local Tool1 = mc.mcCntlGetPoundVar(inst, 11001)
local Tool2 = mc.mcCntlGetPoundVar(inst, 11002)
local Tool3 = mc.mcCntlGetPoundVar(inst, 11003)
local Tool4 = mc.mcCntlGetPoundVar(inst, 11004)
local Tool5 = mc.mcCntlGetPoundVar(inst, 11005)
local Backup = string.format("Date & Time: ".. Date .."\n")
Backup = Backup .. "Tool 1 Length = " .. Tool1 .."\n"
Backup = Backup .. "Tool 2 Length = " .. Tool2 .."\n"
Backup = Backup .. "Tool 3 Length = " .. Tool3 .."\n"
Backup = Backup .. "Tool 4 Length = " .. Tool4 .."\n"
Backup = Backup .. "Tool 5 Length = " .. Tool5 .."\n"
Backup = Backup .. "\n" --Adds a blank line to space out backups.
--Write to the File Log
--Make a folder in the Mach4 Directory and Name it "Tool Length Log"
local MyFile = wx.wxGetCwd() .. "\\Tool Length Log\\Tool Length Backup.txt" --Location: Mach4Hobby - Tool Length Log - Tool Length Backup.txt
file = io.open(MyFile, "a+") --Append the file. Adds at the end of the file.
--file = io.open(MyFile, "w+") --Open the file in update mode, all previous data is erased
file:write (Backup) --Write the Gcode file
file:flush (MyFile) --Save written data
file:close (MyFile) --Close file
end--m107()
if (mc.mcInEditor() == 1) then
m107()
end