Here are the steps I follow to reproduce the issue:
1. I tried to get value of currentline is executing by stat.currentline
This is what I expected to happen:
Because stat.motionline is only return current motion line(g0, g1,..), It’s not update when program running command g4,m62-m65(and maybe more) So i ‘d like to use stat.currentline and hope it will return current line is executing
This is what happened instead:
It only return last line of gcode
Information about my hardware and software:
* I am using master version
#1 – andypugh 于 2019-02-25
I suspect that this is unavoidable. In effect the non-motion commands take zero time. They are used to modify the canonical commands that are added to the motion queue. What the current-line shows is the G-code line that created the currently-executing motion command.
In effect the motion planner never even sees the non-motion G-codes. (though I am surprised about G4)