There seems to be a problem with single-step and M66 in 2.8 and master
but not in 27.

To see it, open sim/axis-mm and load this G-code:

#1 = 0
O100 repeat [40]
(DEBUG, 1 - #1)
G1 F50 X[2 + #1]
(DEBUG, 2 - #1)
G1 F50 X[4 + #1]
(DEBUG, 3 - #1)
M66 P1 L3 Q3
(DEBUG, 4 - #1)
G1 F50 Y[8 + #1]
(DEBUG, 5 - #1)
G1 F50 X[8 + #1]
#1 = [#1 + 8]
O100 endrepeat
M2

The preview will show a stair-step from the origin.

If the code is run normally, that is what happens.
If the code is started with the single-step button, and stepped
through, then the Y move after the M66 is skipped and then a
non-programmed move to (8,8) occurs.
Also, in single step mode the debug statements go 1 2 3 / 1 2 3 4 5 / 1 2 3 4 5

To compare the two debug traces I set them up as a commit in a spare
github repository.

https://github.com/andypugh/PulseClock/commit/afce753a1988a14ad3e33f5456bc787c93caea4f#diff-c1c9abf2437284e7ae9e37810eefd3de

It can be seen that two of the OPERATOR_DISPLAYS and one of the
LINEAR_MOVES are not issued.

Looking around line 150 in the right-hand column there are 4 lines not
present in the (successful)  left hand column, 2 x ::get():
...EMC_OPERATOR_DISPLAY and 1 x ::get():...EMC_TRAJ_LINEAR_MOVE
followed by a NML_INTERP_LIST(0x55a970c638e0)::clear()

Is this likely to be the place where the commands are being lost?

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912


_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to