Hello Guest it is April 19, 2024, 11:23:35 AM

Author Topic: Macro ref to Machine Coords?  (Read 5013 times)

0 Members and 1 Guest are viewing this topic.

Offline budman68

*
  • *
  •  2,352 2,352
    • View Profile
Macro ref to Machine Coords?
« 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
----------------------------------------------------------------------
Just because I'm a Global Moderator, don't assume that I know anything !

Dave->    ;)

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: Macro ref to Machine Coords?
« Reply #1 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
« Last Edit: March 22, 2009, 09:41:53 AM by poppabear »
fun times

Offline budman68

*
  • *
  •  2,352 2,352
    • View Profile
Re: Macro ref to Machine Coords?
« Reply #2 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


« Last Edit: March 22, 2009, 09:55:03 AM by budman68 »
----------------------------------------------------------------------
Just because I'm a Global Moderator, don't assume that I know anything !

Dave->    ;)

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: Macro ref to Machine Coords?
« Reply #3 on: March 22, 2009, 09:56:48 AM »
there is no G28.1 code in my post............

:)

scott
fun times

Offline budman68

*
  • *
  •  2,352 2,352
    • View Profile
Re: Macro ref to Machine Coords?
« Reply #4 on: March 22, 2009, 10:01:58 AM »
there WAS you editing bastard, lol!  :D

Thank you sir -  ;)

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

Dave->    ;)

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: Macro ref to Machine Coords?
« Reply #5 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.

:)
fun times