Quantcast
Channel: Reprap Forum - Firmware - Marlin
Viewing all articles
Browse latest Browse all 2831

Keeping track of currently executed Gcode command (no replies)

$
0
0
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.

Viewing all articles
Browse latest Browse all 2831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>