Me Ajude!!! Aqui falo da dificuldade de usar o comando RESUME do klipper

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ธ.ค. 2024

ความคิดเห็น •

  • @eutenhoproblemaedai
    @eutenhoproblemaedai  10 วันที่ผ่านมา +2

    Esta é meu código M600, quem puder me ajudar agradeço.
    [gcode_macro M600]
    description: Filament Change
    variable_m600_state: 0
    variable_fan0_speed: 0
    gcode:
    {% set E = printer["gcode_macro PAUSE"].extrude|float %}
    {% set y_park = printer.toolhead.axis_minimum.y|float + 60.0 %}
    {% set x_park = printer.toolhead.axis_maximum.x|float - 230.0 %}
    {% set initial_z = printer.toolhead.position.z|float %}
    SET_GCODE_VARIABLE MACRO=PRINTER_PARAM VARIABLE=initial_z VALUE={initial_z}
    RESPOND TYPE=command MSG="Initial Z position saved: (initial_z)"
    {% set max_z = printer["gcode_macro PRINTER_PARAM"].max_z_position|float %}
    {% set z_safe = 0.0 %}
    {% if initial_z < 48.0 %}
    {% set z_safe = 50.0 - initial_z %}
    {% elif initial_z < (max_z - 2.0) %}
    {% set z_safe = 2.0 %}
    {% elif initial_z < max_z %}
    {% set z_safe = max_z - initial_z %}
    {% endif %}


    SET_GCODE_VARIABLE MACRO=PRINTER_PARAM VARIABLE=z_safe_pause VALUE={z_safe|float}
    RESPOND TYPE=command MSG="z_safe = {z_safe}"
    SET_GCODE_VARIABLE MACRO=M600 VARIABLE=m600_state VALUE=1
    SET_GCODE_VARIABLE MACRO=PRINTER_PARAM VARIABLE=hotend_temp VALUE={printer.extruder.target}

    M25
    #Pause
    #FIRST_FLOOR_PAUSE


    {% if "xyz" in printer.toolhead.homed_axes %}
    {% if printer.extruder.can_extrude|lower == 'true' %}
    #G1 E-1.0 F180
    #G1 E-{E} F4000
    {% else %}
    RESPOND TYPE=command MSG="Extruder not hot enough!"
    {% endif %}
    G1 Z{z_safe} F600
    M400
    G90
    G1 X{x_park} Y{y_park} F30000
    {% endif %}
    _UNLOAD_FILAMENT
    _LOAD_FILAMENT
    G1 Z{printer["gcode_macro PRINTER_PARAM"].initial_z} F600
    M400

    M24
    #RESUME_BASE
    #FIRST_FLOOR_RESUME