Skip to content

Commit

Permalink
updated compatibility macros
Browse files Browse the repository at this point in the history
  • Loading branch information
Frix-x committed May 5, 2023
1 parent 7b9e71c commit 5d68624
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions macros/miscs/compatibility.cfg
Original file line number Diff line number Diff line change
@@ -1,19 +1,34 @@
[gcode_macro M701]
description: Map M701 to LOAD_FILAMENT
gcode:
LOAD_FILAMENT

[gcode_macro M702]
description: Map M702 to UNLOAD_FILAMENT
gcode:
UNLOAD_FILAMENT

[gcode_macro M600]
description: Map M600 to CHANGE_FILAMENT
gcode:
CHANGE_FILAMENT

[gcode_macro M125]
description: Map M125 to PARK
gcode:
PARK

[gcode_macro M900]
description: Map M900 to SET_PRESSURE_ADVANCE
gcode:
{% if 'K' in params %}
{% if 'E' in params %}
SET_PRESSURE_ADVANCE EXTRUDER={params.E} ADVANCE={params.K}
{% else %}
SET_PRESSURE_ADVANCE ADVANCE={params.K}
{% endif %}
{% endif %}

[gcode_macro M204]
description: Map M204 to SET_VELOCITY_LIMIT for ACCEL and ACCEL_TO_DECEL
rename_existing: M204.1
Expand All @@ -25,11 +40,14 @@ gcode:
SET_VELOCITY_LIMIT ACCEL={S} ACCEL_TO_DECEL={S * F}
{% endif %}

# [gcode_macro M205]
# gcode:
# {% if 'X' in params %}
# SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY={X}
# {% endif %}
[gcode_macro M205]
description: Map M205 to SET_VELOCITY_LIMIT for SQUARE_CORNER_VELOCITY
gcode:
{% if 'X' in params %}
SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY={params.X}
{% elif 'Y' in params %}
SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY={params.Y}
{% endif %}

[gcode_macro G00]
gcode:
Expand Down

0 comments on commit 5d68624

Please sign in to comment.