Welcome! Log In Create A New Profile

Advanced

Keeping track of currently executed Gcode command

Posted by eike 
Keeping track of currently executed Gcode command
October 02, 2019 10:48AM
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.

Edited 2 time(s). Last edit at 10/02/2019 11:15AM by eike.
Sorry, only registered users may post in this forum.

Click here to login