Hello Guest it is April 20, 2024, 11:05:57 AM

Author Topic: Tracing job extents  (Read 2576 times)

0 Members and 1 Guest are viewing this topic.

Tracing job extents
« 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

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Tracing job extents
« Reply #1 on: May 29, 2015, 10:35:55 PM »
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

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Tracing job extents
« Reply #2 on: May 29, 2015, 10:48:19 PM »
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 
Re: Tracing job extents
« Reply #3 on: May 30, 2015, 09:04:31 PM »
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.