3DCoded / 3dchameleon-klipper

A klipper extras module and configuration for the 3DChameleon
GNU General Public License v3.0
12 stars 1 forks source link

PrusaSlicer 2.8 GCode Compatibility #10

Closed adsaxton closed 1 month ago

adsaxton commented 1 month ago

Is your feature request related to a problem? Please describe. Cannot use the suggested code in PrusaSlicer

Describe the solution you'd like Updated code for PrusaSlicer 2.8.0

Describe alternatives you've considered I've been trying to adjust the code to no avail.

Additional context

adsaxton commented 1 month ago

I've made changes I think will solve the issue. I'm not quite at the point of testing these changes. These changes are for the AutoUnderClippy which cuts the filament between the extruder and hotend.

Changes to 3dchameleon.cfg: Added Macros:

#    AutoUnderClippy - UNLOAD_CLIPPY before Tool selection then CLIPPY_UNLOAD
[gcode_macro Unload_Clippy]
gcode:
  M83
  G92 E0
  G1 E10 F1500
  G92 E0
  G1 E-60 ; Adjust to 3-5
  before Clippy

[gcode_macro Clippy_Unload]
gcode:
  G92 E0
  G1 E10 F1500
  G92 E0
  G1 E-40 ; Adjust to unload Extruder

Changes to Macro:

[gcode_macro Toolchange]
gcode:
  {% set saved = printer.save_variables.variables %}
  {% set t = params.T|int %}
  {% set p = saved.prev_ext %}
  {% set l = saved.layer %}
  {% if t != p %}
    SAVE_VARIABLE VARIABLE=efsensor VALUE=0

    M83 
    G92 E0

    M117 T{p} -> T{t}

    # G0 E-20 F500
  {% if p>-1 %}  
    UNLOAD_CLIPPY ; Adjust to UnderClippy ADS
  {% endif %}

    PULSE_CHAMELEON PULSES={t+1} ; Also activates AutoClippy

  {% if p>-1 %}  
    G4 P1000 ; Wait for AutoClippy ADS
    CLIPPY_UNLOAD ; Complete Extruder Unload ADS
  {% endif %}

    UNLOAD_CHAMELEON TOOL={t}
    LOAD_CHAMELEON

    {% if p>-1 %}

      G92 E0
      G0 E50 F2000 ; E-80
      G90

    {% endif %}

    G92 E0
    M83

    G0 E15 F1500; <<<--- adjust this E value to tune extruder loading
    G4 P400

    G92 E0
    G90
    M83

    M117 3D Chameleon Tool T{t}
    SAVE_VARIABLE VARIABLE=prev_ext VALUE={t}

    G4 P1000
    SAVE_VARIABLE VARIABLE=efsensor VALUE=1
  {% endif %}

Changes in Tool Change G-Code in slicer removes Tip Shaping.

adsaxton commented 1 month ago

The Macros seem to work okay but the suggested changes to PrusaSlicer's Custom G-Code do not. None of the variable retrievals work as well as PrusaSlicer variables. I was able to correct a number of them, but to no avail.

3DCoded commented 1 month ago

I've recently stopped working on the 3DChameleon, and created the 3MS. I am still open to PR's to this repo, though.

3DCoded commented 1 month ago

I've also since moved away from PrusaSlicer to OrcaSlicer, which 3dchameleon-klipper supports. You might want to try the suggested gcodes with OrcaSlicer.

3DCoded commented 1 month ago

Closing as this has remained open for two weeks with no activity.