Hello Guest it is April 27, 2024, 06:44:50 PM

Author Topic: Tool table undo  (Read 391 times)

0 Members and 1 Guest are viewing this topic.

Tool table undo
« on: January 21, 2024, 12:39:46 PM »
I’m running mach4 industrial on a Hardinge chnc. When I need to make an offset change, I go to the offset page. Bring up the tool table. Pick the tool and axis I wish to change. Here comes the problem. If I need to change by a small amount but I forget to point to the box at the bottom of the tool table I’m now going to over wright whatever is there. And there is no way to get it back except to retouch my tool off.  And using the wear section of the tool table doesn’t seem to do anything. Any ideas?

Offline Graham Waterworth

*
  • *
  •  2,673 2,673
  • Yorkshire Dales, England
    • View Profile
Re: Tool table undo
« Reply #1 on: January 21, 2024, 04:18:23 PM »
Get into the habit of using the "Input +" button then it just updates the current value by the amount you enter in the box, so if you need to adjust by .001 or -.001 enter that in the box and click "Input +".

The worst you can be out is .001


Without engineers the world stops
Re: Tool table undo
« Reply #2 on: January 21, 2024, 06:24:35 PM »
Thanks, that is what I do most of the time. However every once in a while I mess up and forget to click on the box to enter my .001 and the second I type anything I realize I’ve screwed up.  That’s why maybe an undo would help. It would be easier if I could use the wear offset, but that doesn’t seem todo anything.  Not sure why.
Thanks
Art
Re: Tool table undo
« Reply #3 on: January 22, 2024, 09:27:46 AM »
Don’t get me wrong, the Mach4 software is awesome! I’ve been running this Hardinge for at least a year. Made a lot of production parts without a hiccup. It has an 8 station turret, I run a bar feed, parts chute, open and close collet.  Single point thread. Everything the machine could do with a Fanuc control. Actually the problem I’m having is only with the operator (me). Maybe it’s an age thing, lol. I’m just gonna have to pay more attention. Thanks Graham
Re: Tool table undo
« Reply #4 on: February 14, 2024, 09:40:40 AM »
Just an update. Rob at NFS said that he’s fixed the tool wear offset problem and will be in the next build. Apparently it was not working. Thanks Rob
Re: Tool table undo
« Reply #5 on: March 08, 2024, 07:36:32 PM »
Which build would it be fixed in?
Re: Tool table undo
« Reply #6 on: March 11, 2024, 04:49:08 PM »
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
Chad Byrd
Re: Tool table undo
« Reply #7 on: April 20, 2024, 03:38:22 AM »
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

Thank you!