Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 10:46:08 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  General Mach Discussion
| | |-+  zeroing Z axis via a MAchine Op header file (ie via g-code itself)
Pages: « 1 2   Go Down
Print
Author Topic: zeroing Z axis via a MAchine Op header file (ie via g-code itself)  (Read 239 times)
0 Members and 2 Guests are viewing this topic.
peskywinnets
Active Member

Offline Offline

Posts: 27


View Profile
« Reply #10 on: January 14, 2012, 04:24:10 PM »

I see you edited, if you already have that code then all you do is put it into a notepad file and save as something like M123.m1s and place in your profiles macro folder. Then every time you call m123 from your code it will do that routine.
Hood

Thanks for that....so you are saying I can just insert the line into the gcode, for example...

G0 x10 y-20
m123           (i.e. call auto tool zero macro from within gcode file)
G0 x20 y-40

.....etc?



Logged
Hood
Active Member

Offline Offline

Posts: 17,368


Carnoustie, Scotland


View Profile
« Reply #11 on: January 14, 2012, 04:28:08 PM »

Yes, or have it in your m6 macro like I said and Ger does and then no need to even do anything except have the tool call.
You would also need to set auto tool change in General config and have the M6 stop spindle etc and allow you to change the tool then when you press start it does its thing.
Hood
Logged
BR549
Active Member

Offline Offline

Posts: 2,558


View Profile
« Reply #12 on: January 14, 2012, 05:21:42 PM »

The only way to do it from the GCODE only approach is to use the G31 probe cycle or the G28.1 refhome cycle then apply offset corrections via G92 or G52 or G10.

We do it all the time in plasma to find the top of material (Z0.000)

No macro code involved.

Just a thought, (;-) TP
Logged
Pages: « 1 2   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!