Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 06:35:41 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  General Mach Discussion
| | |-+  Help with tool changes
Pages: « 1 2   Go Down
Print
Author Topic: Help with tool changes  (Read 704 times)
0 Members and 2 Guests are viewing this topic.
SWATH
Active Member

Offline Offline

Posts: 37


View Profile
« Reply #10 on: March 23, 2011, 02: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?
Logged
ger21
Global Moderator
*
Offline Offline

Posts: 2,619



View Profile WWW
« Reply #11 on: March 23, 2011, 05: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.
Logged

SWATH
Active Member

Offline Offline

Posts: 37


View Profile
« Reply #12 on: March 25, 2011, 02: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.
Logged
ger21
Global Moderator
*
Offline Offline

Posts: 2,619



View Profile WWW
« Reply #13 on: March 25, 2011, 05: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.
Logged

SWATH
Active Member

Offline Offline

Posts: 37


View Profile
« Reply #14 on: March 25, 2011, 10:05:10 PM »

Well I confirmed that they are the right macros but they still misbehave.
Logged
Pages: « 1 2   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!