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

ramming_volume_standalone value is always ignored in __MMU_FORM_TIP #459

Open
skyguy94 opened this issue Oct 3, 2024 · 0 comments
Open

Comments

@skyguy94
Copy link

skyguy94 commented Oct 3, 2024

I've enabled forced standalone tip forming

force_form_tip_standalone: 1  # 0 = Slicer in print else standalone, 1 = Always standalone tip forming (TURN SLICER OFF!)
form_tip_macro: _MMU_FORM_TIP # Name of macro to call to perform the tip forming (or cutting) operation

and I have the following for ramming volumes configured.:

variable_ramming_volume            : 0          ; Volume in mm^3, 0 = disabled (optionally let slicer do it)
variable_ramming_volume_standalone : 23         ; Volume in mm^3, 0 = disabled

If I run MMU_TEST_FORM_TIP then the standalone ramming value is not used (I don't see the oooze that comes out with ramming). I believe this is because the standalone variable is initialized to the printing variable during initialize.

[gcode_macro _MMU_FORM_TIP]
description: Standalone macro that mimics Superslicer process

gcode:
...
    {% set ramming_volume = vars['ramming_volume']|float %}
    {% set ramming_volume_standalone = vars['ramming_volume']|float %}
...

The logic itself seems fine and setting the printer variable to the same value works around the issue.

    # Step 1 - Ramming
    # This is very generic and unlike slicer does not incorporate moves on the wipetower
    {% set ramming_volume = ramming_volume_standalone if not printing else ramming_volume %}
    {% if ramming_volume > 0 %} # Standalone Ramming
        {% set ratio = ramming_volume / 23.0 %}
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

No branches or pull requests

1 participant