Machsupport Forum
Mach Discussion => VB and the development of wizards => Topic started 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
-
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
-
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
-
there is no G28.1 code in my post............
:)
scott
-
there WAS you editing bastard, lol! :D
Thank you sir - ;)
Dave
-
Yea realized I had made a typo, and was modifiing it when you where reading it..........the "Opps" one.
:)