Hello Guest it is September 23, 2020, 07:01:03 AM

Author Topic: Auto Tool Zero  (Read 2423 times)

0 Members and 1 Guest are viewing this topic.

Auto Tool Zero
« on: June 15, 2010, 11: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

Offline Greolt

*
  •  956 956
    • View Profile
Re: Auto Tool Zero
« Reply #1 on: June 15, 2010, 04:27:44 PM »
Try entering this before the last line,

While IsMoving ()
Wend

Greg
Re: Auto Tool Zero
« Reply #2 on: June 15, 2010, 06: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
Re: Auto Tool Zero
« Reply #3 on: June 15, 2010, 10: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