Skip to content

getting coordinates with M114 with printrun #1188

@comes04

Description

@comes04

Hi there,

¿Can someone let me know how to send the command M114 and get the data that returns with printrun?

I know that this is a topic that has been around many timesbut I can't figure out how to get it.

For example, i get the return from command M105 with the following and works perfectly:

p.send_now("M105")
def temp_callback(line):
	print(line)
p.tempcb = temp_callback

I tried the same with M114 but doesn't work since that command send the info to the serial...

I also have seen the “New module to synchronously, blocking send gcodes with return” which seems to be able to help on this, but i'm not able to use it.

Also tried to send M114 and read it with the “Serial” library, which works. However i would like to do it just with the printrun library since in order to use “Serial” I have to disconnect “printrun” …

Thanks again for all the help :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions