I' m not entirely sure I have the correct picture of what you are trying to do, but I have cut lots of panels covered in holes for D-subs and audio connectors (for sound studios) and a series of mould plates for plastic moulding which consist of rows of identical recesses. G92.1 cancels all G92 offsets, so that always goes in the initialisation block in all my programs. If I am cutting rows of holes, with simple or complex outlines, I always go the the hole position, then use a subroutine to cut the hole. The subroutine always begins with G92 and always ends with G92.1 That is, I think, a slightly different application from your own, but the documentation here http://wiki.linuxcnc.org/cgi-bin/wiki.pl?CoordinateSystems#G52_coordinate_offset_not_yet_implemented states that G52 is not yet implemented. I've used it in Mach3, and it works fine there, so its a pity it is not yet available in LinuxCNC (if the documentation is correct). However; you could reset HOME for, say, G54, by writing to systems parameters 5221-5230, to give the same effect. I would be inclined to read 5221-5230 into other parameters; then change their values to a new HOME position, then restore the original values from your own parameters.
But perhaps I am simplifying (or complicating) something which is more complex than I have understood. Marcus On 23 Dec 2018, at 11:11, Gene Heskett wrote: > Greetings all; > > It will still be a while before I'm ready to cut this panel on the new > machine. > > Can't sleep, and had the idea to use the existing holes to automaticly > establish both home, and the panels length. > > I've measured the panels width, and established a center line for Y at > half that. > > The mounting holes are plus or minus 0.65625 from this center line Y. So > if I have to adjust the panel width, the other points follow as they > are .0.60000000 from the bottom or top. Whats more of a SWAG is the > mounting hole offset from the ends of the panel, which ATM I've measured > at .3125" in from the ends > > These mounting holes are also nominally a 4mm hole at the bottom of the > counter sink. In terms of a thru hole. > > So it occurres to me to skip cutting the outline once a good fit has been > achieved. > > Then I want to use a variation of my hole_finder routine to "find" the > lower left of one of these holes. Once that has been done, goto the > matching hole on the other end of the panel and "find" that hole, and > use that offset to reset #<_panel_len> a few thou, which I can then use > to reset the center line. All the rest of the hole locations except the > dsubs will follow along, thereby maintaining the precisely laid out > appearance of all the round hole spacings. All this so the last two > copies I cut can be done on the satin brushed finished OEM panel from > the box kit. Purtier that way than on the side panel of a wrecked ups > van complete with a decades worth of road salt etc on it. > > Is this a place for the G52, to effectively rehome all maps after the > first hole is found. I see G92 can do the same thing but I'm not sure I > want it more or less permanent. I think it would be a safer assumption > if it died with the M2. However I see that G52 is current co-ordinate, > while G92 is all maps, which is what I want. Sooo, looks like its G92, > with cancelation stuff in the file preamble. > > Are there any gotchas to the idea that I should be aware of? > I've already put the disable_g92_persistence in the [rs274] section. > > Thanks guys, have a joyous Christmas. > > Cheers, Gene Heskett > -- > "There are four boxes to be used in defense of liberty: > soap, ballot, jury, and ammo. Please use in that order." > -Ed Howdershelt (Author) > Genes Web page <http://geneslinuxbox.net:6309/gene> > > > _______________________________________________ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users