Created
February 5, 2023 19:37
-
-
Save LauOtero/9a5d392c374791fe4faace74c3a9979e to your computer and use it in GitHub Desktop.
Bambu Studio macro support
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[gcode_arcs] | |
resolution: 0.1 | |
[gcode_macro m201] | |
gcode: | |
{% if 'X' in params or 'Y' in params %} | |
{% set accel = (params.X|default(params.Y)|float, | |
params.Y|default(params.X)|float)|min %} | |
SET_VELOCITY_LIMIT ACCEL={accel} ACCEL_TO_DECEL={accel * 0.5} | |
{% else %} | |
SET_VELOCITY_LIMIT | |
{% endif %} | |
[gcode_macro m203] | |
gcode: | |
{% if 'X' in params or 'Y' in params %} | |
{% set speed = (params.X|default(params.Y)|float, | |
params.Y|default(params.X)|float)|min %} | |
SET_VELOCITY_LIMIT VELOCITY={speed} | |
{% else %} | |
SET_VELOCITY_LIMIT | |
{% endif %} | |
[gcode_macro M205] | |
gcode: | |
{% if 'X' in params or 'Y' in params %} | |
{% set corner_speed = (params.X|default(params.Y)|float, | |
params.Y|default(params.X)|float)|min %} | |
SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY={corner_speed} | |
{% else %} | |
SET_VELOCITY_LIMIT | |
{% endif %} | |
[gcode_macro M900] | |
gcode: | |
SET_PRESSURE_ADVANCE ADVANCE={params.K} | |
# También se recomienda agregar las siguientes macros ficticias para hacer feliz a Klipper | |
# Actualización: la última versión de Klipper es compatible con el comando G17. | |
# No agregue la siguiente macro si está ejecutando la última versión de Klipper. | |
# | |
# Make BambuStudio happy | |
#[gcode_macro G17] | |
#gcode: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment