Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Haik on January 03, 2008, 03:16:25 PM

Title: How do I zero Machine Coords for "A-axis"?
Post by: Haik on January 03, 2008, 03:16:25 PM
Hi All,

On the "Settings" tab in Mach3 there's an "Encoder Position" box with "Load DRO", "To DRO", and "Zero" buttons for X, Y, and Z...

These buttons also allow zeroing of "Machine Coords"... How do I zero Machine Coords for "A"?

I've tried a few SetOEMDRO() parameters, but without any luck.  Any help is deeply appreciated.  Thanks!

-Haik
Title: Re: How do I zero Machine Coords for "A-axis"?
Post by: Hood on January 03, 2008, 03:45:04 PM
If you have Auto Zero enabled for the A axis but dont have a home switch for it I would think clicking the Ref A button would zero it in machine coords..
Hood
Title: Re: How do I zero Machine Coords for "A-axis"?
Post by: Haik on January 03, 2008, 06:18:52 PM
Nope. still not zero'd, that only zero's it when not on machine coords.
Title: Re: How do I zero Machine Coords for "A-axis"?
Post by: Hood on January 03, 2008, 06:58:07 PM
Sorry not sure what you mean, are  you saying that if machine coords are viewing in the DRO they dont go to zero when referenced?

Hood
Title: Re: How do I zero Machine Coords for "A-axis"?
Post by: Haik on January 04, 2008, 06:13:18 PM
Yes.  XY and Z will zero machine coords when "Encoder Position" box with "Load DRO", "To DRO", and "Zero" button are utilized.  I need to do same with A... how do I do that?

Thanks!!
Title: Re: How do I zero Machine Coords for "A-axis"?
Post by: Chip on January 04, 2008, 07:26:39 PM
Hi, Halk

Have you tried, DoButton( 25 ) on a separate Button to ref A axis.

Added it to my "Home All" Button

DoButton( 24 )
DoButton( 23 )
DoButton( 22 )
DoButton( 25 )

Got to go for now be back soon with some more.

Thanks, Chip
Title: Re: How do I zero Machine Coords for "A-axis"?
Post by: Haik on January 04, 2008, 08:11:59 PM
Thanks for that, but ref'ing A works fine for it's intended purpose.  I want to "zero" A machine coords without any motion.

My original question:

On the "Settings" tab in Mach3 there's an "Encoder Position" box with "Load DRO", "To DRO", and "Zero" buttons for X, Y, and Z...
These buttons also allow zeroing of "Machine Coords"... How do I zero Machine Coords for "A" in the same manner (without any machine motion)?

I hope the added clarity helps. Thanks!!!
Title: Re: How do I zero Machine Coords for "A-axis"?
Post by: Chaoticone on January 04, 2008, 08:53:52 PM
hbaba, I think you will have to play with your DRO properties in general config, bottom right. I'm not sure if it will give the desired results you want or not. You may have to add a vb button to your screen and call it ref a or something and have it do an input and set up that input as A home. Might be able to add script to the ref all button? Just thinking out loud.

Brett
Title: Re: How do I zero Machine Coords for "A-axis"?
Post by: Chip on January 04, 2008, 10:24:34 PM
Hi, Halk
 
That's much better, Machine Coords for "A", Couldn't see the "Bold One", Just missed it.

Guess you have a "A" home switch hooked up, When you doing what ever your doing hear, Why not switch the A Home to "Emulated" in P & Pin's Inputs or a  toggle switch to show it Homed, Then the DoButton( 25 ) on a separate Button to ref A axis would work as long as it's not a Limit SW also.

What I really don't understand is, Why zero one axis Machine Cord, If your cutting something with a 0,0,0,0 start in the g-code and want to move to another location or Zero Your A axis and cut it again you use the Zero All or Zero buttons individually as needed.

Note: It Appears  If you have the Machine Coord"s selected on Program Run Page , The Diagnostic page "Current Position" DRO's and Setting's page "Encoder Position's" DRO's, Don't seem to update as thy should.

I couldn't find any oem code's for A,B,C buttons you were looking for eather.

Just Confused Hear A Little, Chip
Title: Re: How do I zero Machine Coords for "A-axis"?
Post by: Chip on February 18, 2008, 12:40:16 AM
Hi, Halk

You may need to ask Brian to put this on his List, As I sed, Just Confused Hear A Little.

I now this isn't what you want, Sounds like you want to start another cut on your A axis at the original G-code start point or something.

Maybe some Inc G91 for your A axis related moves is needed ?

Something like this.

G90
G00 x0
g01 z -.25 f100
g91
G01 x10 A720 f100
g90
g00 z0
g00 x0
M30
%

Just think about this today.

Thanks, Chip
Title: Re: How do I zero Machine Coords for "A-axis"?
Post by: vmax549 on February 18, 2008, 01:49:17 PM
Hi, Halk

I don't think those dro are what you think they are? I believe those are for an external set of encoders/scales  to be used to monitor actually position of the axis in comparison to what Mach says it is. It is set up so you can synch machs postion to the acutal table postion for monitoring purposes only.

Just a thought.
Title: Re: How do I zero Machine Coords for "A-axis"?
Post by: Graham Waterworth on February 19, 2008, 03:54:20 AM
Have you tried G92 A0 ?

Graham.