Hello Guest it is October 14, 2019, 05:21:48 PM

Author Topic: Help with tool changes  (Read 4744 times)

0 Members and 1 Guest are viewing this topic.

Offline SWATH

*
  •  48 48
    • View Profile
Re: Help with tool changes
« Reply #10 on: March 23, 2011, 03:07:25 PM »
BTW way here is the script.



Its weird it works perfect on my laptop but not on the machine computer although I have the settings the same (as far as I can tell).  The machine computer is not making the requested tool in the Gcode the current tool quick enough for the message to reflect the new current tool and it still asks for the old current tool (whatever the number in the box is).  Anyone know what I can do?

Offline ger21

*
  • *
  •  6,288 6,288
    • View Profile
    • The CNC Woodworker
Re: Help with tool changes
« Reply #11 on: March 23, 2011, 06:32:58 PM »
SetCurrentTool (NewTool)
Sleep (250)
Message..................


Sometimes you have to wait for Mach3 to update the DRO. This waits 1/4 second. Sleep(1000) = 1 second
It should only take 1/10 second, but I add a little to be safe.

See if this works for you.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html

Offline SWATH

*
  •  48 48
    • View Profile
Re: Help with tool changes
« Reply #12 on: March 25, 2011, 03:07:16 PM »
I tried what you suggested and it pauses for a moment on my laptop and works correctly (as it did before adding the pause).  However it still does not work on the machine computer no matter how long I make the pause.  Could the macro be accessing the wrong database or something?  I did notice I had two macro folders of the same name one with the edited macros and one without, so I tried to delete the one with the stock macros and it wouldn't let be because it said it was in use.  So I closed Mach and deleted it fine.  Then when I reopen mach the macro folder appears again.

Offline ger21

*
  • *
  •  6,288 6,288
    • View Profile
    • The CNC Woodworker
Re: Help with tool changes
« Reply #13 on: March 25, 2011, 06:01:06 PM »
You're probably editing the wrong macros. The macros mach3 uses are in Mach3\macros\YOURPROFILE\

There's a macro folder for each profile that exists on your computer, but the one that is used has the same name as the current profile.

Sounds like you're editing macros for a profile you're not using, as you appear to be using the mach3mill profile and macros.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html

Offline SWATH

*
  •  48 48
    • View Profile
Re: Help with tool changes
« Reply #14 on: March 25, 2011, 11:05:10 PM »
Well I confirmed that they are the right macros but they still misbehave.