On Tuesday 24 November 2020 03:55:46 andy pugh wrote: > On Tue, 24 Nov 2020 at 04:23, David Berndt <[email protected]> wrote: > > But does G64 Px operate in machine native units? or should it be > > reset when changing between g20 and g21? > > The code here: > https://github.com/LinuxCNC/linuxcnc/blob/5cb4a18e0068fe430a2f2acbf219 >530f68c30c32/src/emc/task/emccanon.cc#L1199 Uses "FROM_PROG_LEN" > https://github.com/LinuxCNC/linuxcnc/blob/5cb4a18e0068fe430a2f2acbf219 >530f68c30c32/src/emc/task/emccanon.cc#L118 > > Which claims to convert from program units to internal machine units. > This does rather suggest that trouble will ensue if G64 and G21 are > used in the wrong order.
I think Andy, that does call for defining the "right" order, which you didn't. I have a routine I ran earlier this morning that has both commands in it, but it sure acted as if it was coming to a complete stop before changing direction when going around a clamp. My intuition says the G21 should be first, so the G64 P0.5 would, or should be stated in the resultant modes units. Big diff between 0.5 inches and 0.5 mm's. Since it was a miss a clamp move, I intended a half inch blur but got a square corner. That's 2 things I need to optimize before I do the 2nd motor mount. Should save around 5 minutes in execution time in a 25 minute program. Thanks Andy. 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) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/gene> _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
