Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: btboone on November 09, 2012, 11:11:41 PM

Title: offsets
Post by: btboone on November 09, 2012, 11:11:41 PM
I have a fiber laser that I can cut things like earrings from a sheet.  It is easiest to write code for a single one then move the machine to a clear spot and cut another.  On my Anilam control, I could simply move the axis, like X0.8 Y0.1 then use a G92 X0 Y0 command to make that become the new zero point.  Mach 3 seems to do that in MDI mode but not in the code.  I'm sure there must be a simple way to do that.  Can anyone help?

Thanks.
Bruce Boone
Title: Re: offsets
Post by: BR549 on November 10, 2012, 10:06:55 AM
G92 or G52 OR G10

Can you post a sample of your code that the G92 does not work?

(;-) TP

Title: Re: offsets
Post by: btboone on November 10, 2012, 10:28:12 AM
I simply have a bunch of xy coordinates, turn off the laser, raise the z, then move to x0.8 and on the next line G92 X0.  Then an M30.  This should position me at the next starting point and zero the X so that all I have to do is press start again.  If that worked, I could do a loop in the program and do that several times.  When the program ends, it seems to revert back to some other coordinate system, as the X readout might be something like X6.3456 or something.
Title: Re: offsets
Post by: BR549 on November 10, 2012, 11:10:59 AM
The M30 is cancelling  all the Offsets. There is a setting in the Config that can change that function to NOT cancell offsets with M30.

(;-) TP
Title: Re: offsets
Post by: btboone on November 10, 2012, 11:38:30 AM
Ok.  I'll check on that.  Thanks.