Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 02:36:12 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  General Mach Discussion
| | |-+  Zero an axis from G-Code...
Pages: 1   Go Down
Print
Author Topic: Zero an axis from G-Code...  (Read 395 times)
0 Members and 2 Guests are viewing this topic.
Chris.Botha
Active Member

Offline Offline

Posts: 468


wine me.. dine me.. tram my mill for me...



View Profile WWW
« on: July 23, 2010, 10:32:06 PM »

Guys I am a little stuck here..

I am cutting a job with massive paths.. from two sides of a ring in my rotary unit, the ring being symmetrical.

SO this means when i go to 180 to cut the other side i have to

1: regenerate all paths to reflect he change in A from 0 to 180 (plus indexed offsets etc) (4 hours more pathing)
2: physically be there , manually roll A to 180, zero it out in mach then rerun the same paths

Now... it strikes me that i can automate this by rolling to 180 once my paths are done, then somehow from gcode or macro zero out the A axis so it is at 0 degrees in mach whilst its actually still at 180 on the mill, then just copy and paste my paths.

Clues???

Thanks :



Logged

Hood
Active Member

Online Online

Posts: 17,352


Carnoustie, Scotland


View Profile
« Reply #1 on: July 24, 2010, 04:17:24 AM »

Write a macro and call it from code. For example if you put a macro in your profiles macro folder called m2345.m1s and have the following in the macro
DoOemButton(1011)
Sleep(500)

When you call m2345 from code it will zero the work coords of the A axis.

If you are not wanting this to be a permanent change you could also look at G52 and see if that will do what you want.

Hood
« Last Edit: July 24, 2010, 04:19:19 AM by Hood » Logged
Chris.Botha
Active Member

Offline Offline

Posts: 468


wine me.. dine me.. tram my mill for me...



View Profile WWW
« Reply #2 on: July 24, 2010, 07:27:13 AM »

Thanks Smiley
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!