I ran into this strange situation and after some debugging understand what is happening but wonder if this is considered a bug or expected behavior…?
I have the series of commands below running in Axis. Notice the M01 just before (PROFILE2). I am using the pause/resume option to stop the program at this point and go off and do a completely separate operation. When I stop the program after that pause and issue a G0 X0 with the current tool loaded (Tool 5 in this case) the tool moves to -0.256” (below the center point of the spindle) rather than to zero. If I issue the mdi command (debug, #5401) I get -1.40246 which is indeed the X offset value in the tool table for tool #5. #5401-5409 are tool offsets for X,Y, etc. HOWEVER, what is happening (I believe) is that due to look ahead (?) the G43 H0001 on the line with the next tool change has already been executed. Even though there is no indication of that other than the fact that my tool goes to the wrong location!! This seems like a bug in that NO command should actually be executed ahead of the M01. Especially - but not exclusively - when it is active! I could remap M6 to include the G43 Hxxxx command in order that it would be obvious (because my turret would select the next tool) that the new G43 value is in effect - and maybe I should regardless - but... ….preamble above deleted….. (PROFILE1) N14 G53 G0 X0 N15 G53 G0 Z0 N16 M6 T0005 G43 H0005 N17 G54 …..bunch of code deleted…. N80 X0.7481 Z-1.9341 F20. N81 X0.795 N82 G0 X1.55 N83 M05 N84 M09 N85 M01 (PROFILE2) N86 M01 N87 G53 G0 X0 N88 G53 G0 Z0 N89 M6 T0001 G43 H0001 N90 G96 D3000 S100 M04 N91 G94 N92 G0 X1.55 Z-1.0159 ……bunch of stuff after deleted…. ------------------------------------------------------------------------------ _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
