Hello Guest it is March 28, 2024, 05:17:39 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - jimbogrif

Pages: 1
1
I have a home made 3 axis CNC router with a spring loaded pin that sets off a proximity switch to set the tool to the top of the table.  I've written a program to move the tool to a fixed position when I push the button "Auto Tool Zero".  This worked fine until I upgraded from R3.042.040 to R3.043.066.  Now what happens is after I home the machine (X & Y axis) and go to set the tool (Z axis) the tool moves correctly to the X & Y machined coordinates like it's suppose to, moves down, sets off the proximity switch and stops.  It's suppose to set off the proximity switch and go up to 2" in Z.  If I reset Mach3 and move the tool off of the proximity switch pin and then hit "Auto Tool Zero", it works correctly.  Shown below are the two Programs that I use for homing the machine and using the "Auto Tool Zero" button.

To Home the Machine:
DoButton(23)
Refcombination(9)

To set the tool:
Call SetDRO(2,2.)
Code "G0 G53 X33.619 Y.181"
Code "G28.1 Z1.9"
While IsMoving()
Wend
Code "G53 G0 Z2.0"
While IsMoving()
Wend
Call SetDRO(2,2.)

If anyone has any suggestions how to fix this problem, I would sure appreciate it.

2
General Mach Discussion / Re: Auto Tool Zero
« 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

3
General Mach Discussion / Re: Auto Tool Zero
« 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

4
General Mach Discussion / 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

Pages: 1