Skip to content
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

Fix Total Height Calculation from PrusaSlicer #114

Merged
merged 1 commit into from
Feb 1, 2020
Merged

Fix Total Height Calculation from PrusaSlicer #114

merged 1 commit into from
Feb 1, 2020

Conversation

littlejon
Copy link
Contributor

PrusaSlicer adds several commands to the GCODE file that are mistakenly picked up by the Z_HEIGHT_EXPRESSION:

M201 X9000 Y9000 Z500 E10000 ; sets maximum accelerations, mm/sec^2
M203 X500 Y500 Z12 E120 ; sets maximum feedrates, mm/sec
M205 X10.00 Y10.00 Z0.20 E2.50 ; sets the jerk limits, mm/sec

With this, my Total Height calculation is always evaluated to be 500mm.

Please see attached pre & post gcode files.

Gcode files from OctoPrint.zip

PrusaSlicer adds several commands to the GCODE file that are mistakenly picked up by the Z_HEIGHT_EXPRESSION:

M201 X9000 Y9000 Z500 E10000 ; sets maximum accelerations, mm/sec^2
M203 X500 Y500 Z12 E120 ; sets maximum feedrates, mm/sec
M205 X10.00 Y10.00 Z0.20 E2.50 ; sets the jerk limits, mm/sec
@OllisGit
Copy link
Owner

OllisGit commented Feb 1, 2020

Hi @littlejon ,

thanks for your pull-request!
You can switch the height methode to "Max Z-Value with Extrusion on Z-Layer" then you will receive 20mm, instead of 500.

But you are right currently every Z line will be identified as a Z movement.

Your PR will be in the next release, currently not planed yet (maybe in two weeks).

@OllisGit OllisGit merged commit 57c2e65 into OllisGit:master Feb 1, 2020
OllisGit added a commit that referenced this pull request Feb 5, 2020
- PR #114 Total Height Calculation for PrusaSlicer
- #115 detection of M600 filament change
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants