Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 07:13:03 AM

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

Offline Offline

Posts: 3


View Profile
« on: June 15, 2010, 10:54:05 AM »

I've written a program to zero out a tool after a tool change and when I step therough the program, it works fine.  When I run the program by pressing "Auto Tool Zero", it doesn't set the "Z" DRO to 2.0" as instructed by the last step in the program.  The absolute Z value is correct but not the Z DRO.  It appears to be stepping over the last command but again, when I step through the program, it works great.  Here's the program.

Call SetDRO(2,2.0)
Code "G0 G53 X33.619 Y.181"
Code "G28.1 Z1.9"
Code "G53 G0 Z2.0"
Call SetDRO(2,2.0)

Please Help
Logged
Greolt
Global Moderator
*
Offline Offline

Posts: 872


View Profile
« Reply #1 on: June 15, 2010, 03:27:44 PM »

Try entering this before the last line,

While IsMoving ()
Wend

Greg
Logged
jimbogrif
Active Member

Offline Offline

Posts: 3


View Profile
« Reply #2 on: June 15, 2010, 05:07:56 PM »

It worked - I don't know why but it worked - Thanks.  I've been working on this for a long time without any luck.

Thanks again
Logged
jimbogrif
Active Member

Offline Offline

Posts: 3


View Profile
« Reply #3 on: June 15, 2010, 09:02:15 PM »

Now that the Auto Tool Zero button work, is it possible to run this "auto tool zero" as part of a program, either a subroutine or possibly an "M" code?   In other words, can the program shown above be executed as part of a program?
Thanks in advance
Logged
Pages: 1   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!