1. Got a question or need help troubleshooting? Post to the troubleshooting forum or Search the forums!

OctoPrint pause position tracking in 1.3.0+...?

Discussion in 'Software' started by OutsourcedGuru, Sep 11, 2017.

  1. OutsourcedGuru

    OutsourcedGuru Active Member

    Joined:
    Jun 3, 2017
    Messages:
    752
    Likes Received:
    139
    Looks like a feature was added to OctoPrint itself which might be useful.

    gist example

    This, from the CHANGELOG.md file:
    Code:
    [LIST]
    [*]OctoPrint will now track the current print head position on pause and cancel and provide it as new template variables ``pause_position``/``cancel_position`` for the relevant GCODE scripts. This will allow more intelligent pause codes that park the print head at a rest position during pause and move it back to the exact position it was before the pause on resume ([Example](https://gist.github.com/foosel/1c09e269b1c0bb7a471c20eef50c8d3e)). Note that this is NOT enabled by default and for now will necessitate adjusting the pause and resume GCODE scripts yourself since position tracking with multiple extruders or when printing from SD is currently not fool proof thanks to firmware limitations regarding reliable tracking of the various ``E`` values and the currently selected tool ``T``. In order to fully implement this feature, the following improvements were also done:
    [LIST]
    [*]New ``PositionUpdated`` event when OctoPrint receives a response to an ``M114`` position query.
    [*]Extended ``PrintPaused`` and ``PrintCancelled`` events with position data from ``M114`` position query on print interruption/end.
    [/LIST]
    [/LIST]
    
    So... that means it's awesome but not enabled by default. Guess I'll have to play with this and see what's what.
     

Share This Page