Skip to content
This repository has been archived by the owner on Jan 17, 2018. It is now read-only.

Fixes issue https://github.com/nallath/PostProcessingPlugin/issues/55. #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JPFrancoia
Copy link
Contributor

The extruder absolute position is reset to the value it had at the begining of the first layer redone.

The extruder absolute position is reset to the value it had at te
begining of the first layer redone.
@Ghostkeeper
Copy link
Collaborator

Developers, see issue CURA-4670.

# Get extruder's absolute position at the
# begining of the first layer redone
# see https://github.com/nallath/PostProcessingPlugin/issues/55
if i == redo_layers:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's probably going to need to be reset before EVERY layer that's being redone, I think, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure about what you mean, but my answer is probably "no".

Let's say your Gcode is as follow (2 layers being redone):

layer n-2
E42
layer n-1
E50
Pause
G92 E42 --> that's what the fix does
layer n-2
E42
layer n-1
E50

Basically my code browses the n layers being redone backwards, finds the first one to be redone, get the extruder position, and resets to that value after the pause.

Gcode with 2 layers being redone to prove it "works":

UO_20mm_hollow_cube.gcode.txt

Before, we had this behavior:

layer n-2
E42
layer n-1
E50
Pause
G92 E50 -> position was reset to last extruder position
layer n-2
E42 -> Retraction !!! (50-42)
layer n-1
E50

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants