I ran your code on the 2.4 sim and after did a G53 G0 X0 Z0 and got what I expected DRO read X0 Z0.
Next I did G0 Z1 and got Z0.0394 and sure enough I was still in G21 so I did G20 then G0 Z1 and got what I expected the DRO read X0 Z1 John andy pugh wrote: > I have found a rather odd behaviour in Lathe mode in both 2.5-pre > (pull and recompile last night) and 2.4.6. The behaviour in my > real-world 2.5 machine is rather stranger than in the 2.4.6 sim I ran > in a virtual machine. > > If you load a tool in MDI with (for example) M6 T4 G43 then everything > works as expected. > > However, if the toolchange is a line in a G-code program (for example, > http://pastebin.com/manJCbkv then stop at the M0) then I get behaviour > as seen in > http://imagebin.org/158096 . Note how commands to go to X=17 and Z=40 > have not resulted in the DRO showing those values, despite being in > relative, actual coordinates mode. > There is a (constant, repeatable through reboot) offset of 10.235mm > between the requested position and the axis position. There is also > exactly the same offset discrepancy in touch-off, ie touch-off Z to 0, > DRO reads -10.235. The X and Z discrepancies do not match the tool > offsets (also visible at the bottom of that screenshot) > > Very similar behaviour can be seen in the lathe sim config in 2.4.6, > except that in that case the offsets do exactly match the tool > offsets. > > In both cases a standalone G43 command in MDI clears the problem, and > putting the G43 on a separate line in the G-code prevents the problem > occurring. > > I don't think this is right? Surely whatever you do, at the end of a > move the DRO should show the same number as was in the G0? > > ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
