Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: grimepoch on May 29, 2015, 07:26:13 PM
-
I have spent like an hour searching and maybe I am just not using the proper terminology. I would love to hit a button and have my CNC trace out either the square box of the entire job OR the outside perimeter of the job. Sometimes I am using a piece of scrap and would much rather just check it quickly then using the jog controls to move all over the place.
Does this exist? Is this something a macro script would do? I use this function on my laser cutter ALL the time and it has saved me from making mistakes as it's quick to check.
Thanks!
Rick
-
Look Here.
http://www.machsupport.com/forum/index.php/topic,15154.0.html
This is one of those things that may or may not work with YOUR version of Mach3. If it does NOT let me know and I will work on it with you.
(;-) TP
-
This code will work as a button script you will have to setup your Work 0,0 and safe Z height the Feedrate is set in the script.
SetVar(120,30) 'SetFeedrate
SetVar(100,Getoemdro(4))
Sleep(100)
SetVar(101,Getoemdro(10))
Sleep(100)
Setvar(110,Getoemdro(5))
Sleep(100)
Setvar(111,Getoemdro(11))
Sleep(100)
Code"G1 X#100 Y#110 F#120"
While Ismoving()
Wend
Code"G1 X#100 Y#111 F#120"
While Ismoving()
Wend
Code"G1 X#101 Y#111 F#120"
While Ismoving()
Wend
Code"G1 X#101 Y#110 F#120"
While Ismoving()
Wend
Code"G1 X#100 Y#110 F#120"
While Ismoving()
Wend
-
Thanks for the code examples! I will try this out soon, and see how it works. I have Mach3 and Mach4 and I have used Lua before so if I get Mach4 working for me, I'll probably try and figure out if I can convert it.