Hi, I am recording motor load data for a university project and I want to correlate the measured load with the Gcode commands.
Is there any straight forward way to get the currently executed Gcode command (or the number of finished commands/lines) via serial?
It would be enough to send a message (e.g. 'done') via serial, whenever a command is finished.
I am currently using the bugfix 2.0 branch and I am sending a serial message whenever a planner block is discarded. This works for most G commands, but some (G28) generate multiple planner blocks.
I still want to use the planner buffer (for jerk and to avoid short stops, etc.), otherwise i would just interleave M400 commands with my Gcode.
Is there any straight forward way to get the currently executed Gcode command (or the number of finished commands/lines) via serial?
It would be enough to send a message (e.g. 'done') via serial, whenever a command is finished.
I am currently using the bugfix 2.0 branch and I am sending a serial message whenever a planner block is discarded. This works for most G commands, but some (G28) generate multiple planner blocks.
I still want to use the planner buffer (for jerk and to avoid short stops, etc.), otherwise i would just interleave M400 commands with my Gcode.