Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2012, 10:31:03 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  VB and the development of wizards
| | |-+  Macro ref to Machine Coords?
Pages: 1   Go Down
Print
Author Topic: Macro ref to Machine Coords?  (Read 904 times)
0 Members and 1 Guest are viewing this topic.
budman68
Master of the Custodial Arts, or better known as:
Global Moderator
*
Offline Offline

Posts: 1,994



View Profile
« on: March 22, 2009, 07: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
Logged

----------------------------------------------------------------------
Just because I'm a Global Moderator, don't assume that I know anything !

Dave->    Wink
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Offline Offline

Posts: 1,707


Briceville, TN, USA


View Profile WWW
« Reply #1 on: March 22, 2009, 08: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
« Last Edit: March 22, 2009, 08:41:53 AM by poppabear » Logged

Commercial Mach3: Screens (regular and flash), Wizards, Plug-ins, Brains, PLCs, Macros, ATC's, machine build, retrofit and Prototyping
http://sites.google.com/site/volunteerfablab/
budman68
Master of the Custodial Arts, or better known as:
Global Moderator
*
Offline Offline

Posts: 1,994



View Profile
« Reply #2 on: March 22, 2009, 08: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


« Last Edit: March 22, 2009, 08:55:03 AM by budman68 » Logged

----------------------------------------------------------------------
Just because I'm a Global Moderator, don't assume that I know anything !

Dave->    Wink
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Offline Offline

Posts: 1,707


Briceville, TN, USA


View Profile WWW
« Reply #3 on: March 22, 2009, 08:56:48 AM »

there is no G28.1 code in my post............

Smiley

scott
Logged

Commercial Mach3: Screens (regular and flash), Wizards, Plug-ins, Brains, PLCs, Macros, ATC's, machine build, retrofit and Prototyping
http://sites.google.com/site/volunteerfablab/
budman68
Master of the Custodial Arts, or better known as:
Global Moderator
*
Offline Offline

Posts: 1,994



View Profile
« Reply #4 on: March 22, 2009, 09:01:58 AM »

there WAS you editing bastard, lol!  Cheesy

Thank you sir -  Wink

Dave
Logged

----------------------------------------------------------------------
Just because I'm a Global Moderator, don't assume that I know anything !

Dave->    Wink
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Offline Offline

Posts: 1,707


Briceville, TN, USA


View Profile WWW
« Reply #5 on: March 22, 2009, 09:19:31 AM »

Yea realized I had made a typo, and was modifiing it when you where reading it..........the "Opps" one.

Smiley
Logged

Commercial Mach3: Screens (regular and flash), Wizards, Plug-ins, Brains, PLCs, Macros, ATC's, machine build, retrofit and Prototyping
http://sites.google.com/site/volunteerfablab/
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!