How do I know which line of Gcode my printer is currently executing? October 04, 2018 06:37AM |
Registered: 10 years ago Posts: 26 |
Re: How do I know which line of Gcode my printer is currently executing? October 04, 2018 07:55AM |
Admin Registered: 13 years ago Posts: 7,005 |
void report_current_position() { SERIAL_PROTOCOLPAIR("X:", LOGICAL_X_POSITION(current_position[X_AXIS])); SERIAL_PROTOCOLPAIR(" Y:", LOGICAL_Y_POSITION(current_position[Y_AXIS])); SERIAL_PROTOCOLPAIR(" Z:", LOGICAL_Z_POSITION(current_position[Z_AXIS])); SERIAL_PROTOCOLPAIR(" E:", current_position[E_CART]);and add the line
SERIAL_PROTOCOLPAIR(" Line:", gcode_LastN-commands_in_queue+ cmd_queue_index_r);
Re: How do I know which line of Gcode my printer is currently executing? October 04, 2018 11:35AM |
Registered: 10 years ago Posts: 26 |
Re: How do I know which line of Gcode my printer is currently executing? October 05, 2018 12:58AM |
Admin Registered: 13 years ago Posts: 7,005 |