Hello
Guest
it is
May 13, 2024, 01:40:16 AM
Guest
Login
Register
Menu
Home
Help
Search
Calendar
Members
Members
View the memberlist
Search For Members
Login
Register
YouTube
Machsupport Forum
/
Mach Discussion
/
VB and the development of wizards
/
New i Mach3 macro. Startup help.
« previous
next »
Print
Pages:
1
Go Down
Author
Topic: New i Mach3 macro. Startup help. (Read 3952 times)
0 Members and 1 Guest are viewing this topic.
Jens H
15
New i Mach3 macro. Startup help.
«
on:
April 22, 2009, 03:05:54 AM »
I just startet to make macro, and to quickly get on, I have some questions.
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
453
Re: New i Mach3 macro. Startup help.
«
Reply #1 on:
April 22, 2009, 10: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
15
Re: New i Mach3 macro. Startup help.
«
Reply #2 on:
April 23, 2009, 02: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
Print
Pages:
1
Go Up
« previous
next »