-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quering printer for moving heads #1210
Comments
See |
Thanks for the response. In the following code,
The printer receives the first command as I see the head move, but I see no output from the second command. I also tried
and the output was Just to make sure the board was responding, I connected to it via Pronterface, and sent the Thanks again! |
Reading and writing is done in separate threads different from the main thread. |
thanks for the pointers. I was able to use one of the examples to get the printer responses back. Is this PR #1008 already implemented, where I can wait for an okay before executing the next command? And a second question. In the M114 documentation, it talks about And thank you so much for your time. I really do appreciate it. Speeds up the trial and error tremendously. |
#M114_REALTIME is a C++ directive that you uncomment before compiling marlin firmware and flash it to the SKR board. |
If you get projected position that is not yet reached, try sending first https://marlinfw.org/docs/gcode/M400.html and then M114. |
Thanks for the help btw. Didn't get a chance to comment after your tips. I did as you suggested, and it works. For reference, I first collected my sent commands and printer responses to synchronize the command and responses, with code adopted from PR #1201. Once synced up, I sent the command Thanks for your help again, wouldn't have figured things out without it. |
Great, thanks :) |
I apologize if this is not the appropriate venue for a help question. I was unable to connect to the IRC server, so I decided to post here.
When I use the printcore library to connect to a printer using
p = printcore()
command, I can move the printer heads using two approaches. For the first approach, I can load a.gcode
file using theloaded_gcode = gcoder.LightGCode(gcode_path)
, where gcode_path is the path to my .gcode file, and then print that gcode usingp.startprint(loaded_gcode)
The second approach is to use the
p.send(command)
syntax directly to the printer. If I need to move along a complicated path, I can make some loop and keep issuing thep.send()
command, which queues up commands like a stack.When I do the first approach, I can look at the printing status by the
p.printing
command, which tells me that the print is still going. However, when I issue ap.send()
command and then run output the value ofp.printing
I always getFalse
as a value (even when the printer heads are moving). Is there any other command that can tell me the status of the printer heads when I'm using thep.send()
command? Or any other approach to tell me that the printer head has arrived at the position I asked it to?Thanks.
The text was updated successfully, but these errors were encountered: