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

How do I know which line of Gcode my printer is currently executing? (2 replies)

$
0
0
Hi All,

I'm writing a custom print host in Python using PySerial, very similar to Printcore but with some added features.

Currently, I'm sending line-by-line as I receive the 'ok' back from the board which is pretty much instant.

I therefore understand that the lines are getting buffered in the board waiting to be executed.

However, from my python code I need to know which line is currently being executed, how can I do so?

A workaround could be to send a 'M114' but this just gives me coordinates and not line number.

Can someone clarify?

Thanks,
Charles

Viewing all articles
Browse latest Browse all 2831

Trending Articles



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