Welcome, Guest. Please login or register.
Did you miss your activation email?
May 24, 2012, 10:52:04 AM

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
| | |-+  New i Mach3 macro. Startup help.
Pages: 1   Go Down
Print
Author Topic: New i Mach3 macro. Startup help.  (Read 958 times)
0 Members and 2 Guests are viewing this topic.
Jens H
Active Member

Offline Offline

Posts: 15


View Profile
« on: April 22, 2009, 02:05:54 AM »

I just startet to make macro, and to quickly get on, I have some questions.  Smiley

I have make this macro:

code ("G00 X0 Y0")

very simple. But want a function more. Something like:

'move to Z135 in machinecoordinate'
whilemoving ()
wend
code ("G00 X0 Y0")

I don't know hove to adress the move to the machine coordinate system.
Logged
fer_mayrl
Global Moderator
*
Offline Offline

Posts: 452


View Profile
« Reply #1 on: April 22, 2009, 09:49:50 AM »

G53 will move the machine in absolute machine coordinates

Then you can go back to work coordinates with G90

so you would write a macro with something like this:

CODE ("G53")
CODE ("G00 z135")
CODE ("G90")
CODE ("G00 x0 y0")

That should take care of it.
Fernando
Logged
Jens H
Active Member

Offline Offline

Posts: 15


View Profile
« Reply #2 on: April 23, 2009, 01:55:06 AM »

Thanks.

It was this I was looking for.

Now my code is:

code ("G53 Z135")
while IsMoving ()
wend
code("G90 G00 X0 Y0)

an i have assigned it to "Goto Zero" button, so when I press it, the mill go op to the higest pos, and then to Zero.
Logged
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!