FormerLurker / Octolapse

Stabilized timelapses for Octoprint
GNU Affero General Public License v3.0
634 stars 99 forks source link

Octolapse with GRBL #717

Open Fabillous opened 3 years ago

Fabillous commented 3 years ago

If this is a feature request describe it here

_REPLACE_THISFEATURE_REQUEST_DESCRIPTION_GOES_HERE

Version of Octolapse

Octolapse Version: 0.4.1

Version of OctoPrint

OctoPrint Version: 1.5.3

When you ran into the problem, did you have diagnostic logging enabled?

Diagnostic Logging was Enabled: YES

What were you doing when the problem occurred

  1. I am attempting to use Octolapse in a fairly unusual way. Essentially I have a Pi camera mounted on 2 axis cnc, controlled by GRBL, for use in an image scanning setup. Better GRBL is installed for translating the commands.

What should have happened?

A gcode file of a raster scan is uploaded, interspersed with G4 delays which trigger the camera.

What happened instead?

When Octolapse is enabled, the 'print' does not start, and eventually times out from lack of communication. It's related to the M114 command. Better GRBL translates M114 to a ?, which is the command GRBL uses for position reporting. GRBL returns the following: <Idle|MPos:0.000,0.000,0.000|Bf:15,127|FS:0,0>. Basically, is there anyway Octolapse can be configured to be compatible with GRBL?

Operating System running OctoPrint and Octolapse

OS Name: Octopi Os Version: 0.18.0

Printer model & used firmware incl. version

Printer Model: _REPLACE_THISPRINTER_MODEL_GOES_HERE Printer Firmware Version: _REPLACE_THISPRINTER_FIRMWARE_VERSION_GOES_HERE

Browser and version of browser, operating system running browser

Browser: _REPLACE_THISBROWSER_VERSION_GOES_HERE Browser OS: _REPLACE_THISBROWSER_OS_GOES_HERE

Link to the gcode file you were printing when the problem occurred

Link to Gcode File: _REPLACE_THISGCODE_FILE_LINK_GOES_HERE

Link to settings.json

Link to settings.json with all passwords removed: https://gist.github.com/Fabillous/7e4ba6cfb8b8f15132a405903ace1180

Link to plugin_octolapse.log

Link to plugin_octolapse.log: https://gist.github.com/Fabillous/1a4e90753ec3b925b4ae114e5d885301

Link to octoprint.log

Link to octoprint.log: _REPLACE_THISLINK_GOES_HERE

Link to contents of Javascript console in the browser

Link to javascript console output: _REPLACE_THISLINK_GOES_HERE

Screenshots and/or videos of the problem:

Screenshot/Video Links: _REPLACE_THISLINKs_GO_HERE

Please consider becoming a patron

If you like this project, please support my work by becoming a patron, and consider adding a 'star' to the repository. It takes a lot of time and effort to maintain the project and respond to issues. The cost of test prints, software, cameras, printer parts, etc. can quickly add up, so every bit helps.

You can find various videos and tutorials by subscribing to my Youtube channel. You can also follow me on Twitter.

FormerLurker commented 3 years ago

I think I just need to accept that type of position response. Can you send some M114 and G0 commands so I can see some various responses and learn to interpret them? The OctoPrint terminal will do nicely for that. I'd like to verify which axis is which (I would assume it's X, Y, then Z, but better safe than sorry).

Fabillous commented 3 years ago

Here's a log of connecting and then sending a few commands. Better GRBL automatically translates any M114 command sent through the terminal to the ?. It also translates any M105 command to the ?$G.

By the way, thanks so much for taking the time to have a look at this.

FormerLurker commented 3 years ago

@Fabillous, thank you! Hopefully I can dig into all this within the next couple weeks. As you can tell, I have a backlog :)