Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: budman68 on March 22, 2009, 08:54:44 AM

Title: Macro ref to Machine Coords?
Post by: budman68 on March 22, 2009, 08:54:44 AM
Hi Guys,

I have a simple macro that I have a "load" button all set up for. It's to position my table for loading material and I've tried using a simple code but it's using the part coords as a reference, not the machine coords. Needless to say that is going to change my "load" position depending on where the current part is being cut on my table.

I'd like to be able to hit the "load" button, and have it go to the same position every time, how do I do this in the code?

My simple code is as follows:

code" z-.500 x-5.5 y-3.500"

Thanks,
Dave
Title: Re: Macro ref to Machine Coords?
Post by: poppabear on March 22, 2009, 09:39:35 AM
Hey Dave,

   Set up your "G28" home position, then send a G28 code, it will go there in machine coordinates.
look under homing and limits under config and set your G28 position there.

then in your button code:

Code "G28"

it will go to your machine position you put there every time.

scott
Title: Re: Macro ref to Machine Coords?
Post by: budman68 on March 22, 2009, 09:53:29 AM
Forgive me scott as I'm an idiot whan it comes to code.

Homing limits dialog box: I have:

X: 5.5

Y: 3.5

Z: -.500

And I have the G28 button code setup for:

code" G28"

Where do I apply the G28.1 code?

Thanks!
Dave


Title: Re: Macro ref to Machine Coords?
Post by: poppabear on March 22, 2009, 09:56:48 AM
there is no G28.1 code in my post............

:)

scott
Title: Re: Macro ref to Machine Coords?
Post by: budman68 on March 22, 2009, 10:01:58 AM
there WAS you editing bastard, lol!  :D

Thank you sir -  ;)

Dave
Title: Re: Macro ref to Machine Coords?
Post by: poppabear on March 22, 2009, 10:19:31 AM
Yea realized I had made a typo, and was modifiing it when you where reading it..........the "Opps" one.

:)