> > > ------------------------------ > > Message: 9 > Date: Fri, 14 May 2010 00:39:49 -0500 > From: Jon Elson <[email protected]> > Subject: [Emc-developers] work offsets > To: "Enhanced Machine Controller (EMC)" > <[email protected]> > Message-ID: <[email protected]> > Content-Type: text/plain; charset=UTF-8; format=flowed > > Well, every time I try to do something like this, I struggle with it. > > I have a panel with 24 identical slots to cut in it. So, I created a > subroutine to cut a slot with a corner at (0,0) and use G92 offsets to > offset each slot to the right position. The subroutine looks like this : > > O100 sub > N01 G55 > N02 G92 X0 Y0 > N03 G01 F45.0 X0.0725 Y0.0725 > N04 Z0.01 > N20 F15 X2.4275 Z-0.0500 > * * * * * snip * * * * * > N210 Z0.1000 F45 > N211 G92.1 > N220 G54 > O100 endsub > followed by the main program : > N300 G54 > N310 G01 Z0.5 F45 > N320 M03 S2720 > N330 G01 X1.18 Y5.75 > O100 call > N330 G01 X3.9295 Y5.75 > O100 call > * * * and so on > This all seems to work OK, although there is a funny Z2.345 move at the > beginning that I can't account for. > > > Jon, I didn't look at this in depth to try to figure out everything that is happening. My first thought is to use g91 in the subroutine. This should eliminate unknown/unwanted motion/actions and give you complete control of the tool. thanks Stuart
-- dos centavos
------------------------------------------------------------------------------
_______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
