Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilouz committed Mar 11, 2023
1 parent 1020ab4 commit ebf8f5d
Show file tree
Hide file tree
Showing 19 changed files with 312 additions and 54 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,33 @@ gcode:
# Gestion des contrôles du Slicer
##################################################

[gcode_macro M201]
description: Gère le contrôle d'accélération maximale
Usage: M201 [X<accel>] [Y<accel>]
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]
description: Gère le contrôle de vitesse maximale
Usage: M203 [X<speed>] [Y<speed>]
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 M204]
description: Gère le contrôle d'accélération si utilisé dans le Slicer
description: Gère le contrôle d'accélération maximale
Usage: M204 [S<accel>] [P<accel> T<accel>]
rename_existing: M204.1
gcode:
{% set f = params.F|default(0.5)|float %}
Expand Down Expand Up @@ -426,12 +451,14 @@ gcode:


[gcode_macro M205]
description: Gère le contrôle de saccade si utilisé dans le Slicer
description: Gère le contrôle de la vitesse des angles droits
Usage: M205 [X<corner_speed>] [Y<corner_speed>]
gcode:
{% if 'X' in params %}
SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY={params.X|int}
{% elif 'Y' in params %}
SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY={params.Y|int}
{% 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 %}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ timeout: 1800
filename: ~/printer_data/config/variables.cfg

[gcode_arcs]
resolution: 0.1

[pause_resume]

Expand Down
39 changes: 33 additions & 6 deletions Configurations/BigTreeTech SKR 1.3 - LGX Lite/macros.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,33 @@ gcode:
# Gestion des contrôles du Slicer
##################################################

[gcode_macro M201]
description: Gère le contrôle d'accélération maximale
Usage: M201 [X<accel>] [Y<accel>]
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]
description: Gère le contrôle de vitesse maximale
Usage: M203 [X<speed>] [Y<speed>]
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 M204]
description: Gère le contrôle d'accélération si utilisé dans le Slicer
description: Gère le contrôle d'accélération maximale
Usage: M204 [S<accel>] [P<accel> T<accel>]
rename_existing: M204.1
gcode:
{% set f = params.F|default(0.5)|float %}
Expand Down Expand Up @@ -426,12 +451,14 @@ gcode:


[gcode_macro M205]
description: Gère le contrôle de saccade si utilisé dans le Slicer
description: Gère le contrôle de la vitesse des angles droits
Usage: M205 [X<corner_speed>] [Y<corner_speed>]
gcode:
{% if 'X' in params %}
SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY={params.X|int}
{% elif 'Y' in params %}
SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY={params.Y|int}
{% 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 %}


Expand Down
1 change: 1 addition & 0 deletions Configurations/BigTreeTech SKR 1.3 - LGX Lite/printer.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ timeout: 1800
filename: ~/printer_data/config/variables.cfg

[gcode_arcs]
resolution: 0.1

[pause_resume]

Expand Down
39 changes: 33 additions & 6 deletions Configurations/BigTreeTech SKR 1.3 - Stock/macros.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,33 @@ gcode:
# Gestion des contrôles du Slicer
##################################################

[gcode_macro M201]
description: Gère le contrôle d'accélération maximale
Usage: M201 [X<accel>] [Y<accel>]
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]
description: Gère le contrôle de vitesse maximale
Usage: M203 [X<speed>] [Y<speed>]
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 M204]
description: Gère le contrôle d'accélération si utilisé dans le Slicer
description: Gère le contrôle d'accélération maximale
Usage: M204 [S<accel>] [P<accel> T<accel>]
rename_existing: M204.1
gcode:
{% set f = params.F|default(0.5)|float %}
Expand Down Expand Up @@ -426,12 +451,14 @@ gcode:


[gcode_macro M205]
description: Gère le contrôle de saccade si utilisé dans le Slicer
description: Gère le contrôle de la vitesse des angles droits
Usage: M205 [X<corner_speed>] [Y<corner_speed>]
gcode:
{% if 'X' in params %}
SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY={params.X|int}
{% elif 'Y' in params %}
SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY={params.Y|int}
{% 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 %}


Expand Down
1 change: 1 addition & 0 deletions Configurations/BigTreeTech SKR 1.3 - Stock/printer.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ timeout: 1800
filename: ~/printer_data/config/variables.cfg

[gcode_arcs]
resolution: 0.1

[pause_resume]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,33 @@ gcode:
# Gestion des contrôles du Slicer
##################################################

[gcode_macro M201]
description: Gère le contrôle d'accélération maximale
Usage: M201 [X<accel>] [Y<accel>]
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]
description: Gère le contrôle de vitesse maximale
Usage: M203 [X<speed>] [Y<speed>]
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 M204]
description: Gère le contrôle d'accélération si utilisé dans le Slicer
description: Gère le contrôle d'accélération maximale
Usage: M204 [S<accel>] [P<accel> T<accel>]
rename_existing: M204.1
gcode:
{% set f = params.F|default(0.5)|float %}
Expand Down Expand Up @@ -426,12 +451,14 @@ gcode:


[gcode_macro M205]
description: Gère le contrôle de saccade si utilisé dans le Slicer
description: Gère le contrôle de la vitesse des angles droits
Usage: M205 [X<corner_speed>] [Y<corner_speed>]
gcode:
{% if 'X' in params %}
SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY={params.X|int}
{% elif 'Y' in params %}
SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY={params.Y|int}
{% 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 %}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ timeout: 1800
filename: ~/printer_data/config/variables.cfg

[gcode_arcs]
resolution: 0.1

[pause_resume]

Expand Down
39 changes: 33 additions & 6 deletions Configurations/BigTreeTech SKR 2.0 - LGX Lite/macros.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,33 @@ gcode:
# Gestion des contrôles du Slicer
##################################################

[gcode_macro M201]
description: Gère le contrôle d'accélération maximale
Usage: M201 [X<accel>] [Y<accel>]
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]
description: Gère le contrôle de vitesse maximale
Usage: M203 [X<speed>] [Y<speed>]
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 M204]
description: Gère le contrôle d'accélération si utilisé dans le Slicer
description: Gère le contrôle d'accélération maximale
Usage: M204 [S<accel>] [P<accel> T<accel>]
rename_existing: M204.1
gcode:
{% set f = params.F|default(0.5)|float %}
Expand Down Expand Up @@ -426,12 +451,14 @@ gcode:


[gcode_macro M205]
description: Gère le contrôle de saccade si utilisé dans le Slicer
description: Gère le contrôle de la vitesse des angles droits
Usage: M205 [X<corner_speed>] [Y<corner_speed>]
gcode:
{% if 'X' in params %}
SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY={params.X|int}
{% elif 'Y' in params %}
SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY={params.Y|int}
{% 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 %}


Expand Down
1 change: 1 addition & 0 deletions Configurations/BigTreeTech SKR 2.0 - LGX Lite/printer.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ timeout: 1800
filename: ~/printer_data/config/variables.cfg

[gcode_arcs]
resolution: 0.1

[pause_resume]

Expand Down
39 changes: 33 additions & 6 deletions Configurations/BigTreeTech SKR 2.0 - Stock/macros.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,33 @@ gcode:
# Gestion des contrôles du Slicer
##################################################

[gcode_macro M201]
description: Gère le contrôle d'accélération maximale
Usage: M201 [X<accel>] [Y<accel>]
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]
description: Gère le contrôle de vitesse maximale
Usage: M203 [X<speed>] [Y<speed>]
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 M204]
description: Gère le contrôle d'accélération si utilisé dans le Slicer
description: Gère le contrôle d'accélération maximale
Usage: M204 [S<accel>] [P<accel> T<accel>]
rename_existing: M204.1
gcode:
{% set f = params.F|default(0.5)|float %}
Expand Down Expand Up @@ -426,12 +451,14 @@ gcode:


[gcode_macro M205]
description: Gère le contrôle de saccade si utilisé dans le Slicer
description: Gère le contrôle de la vitesse des angles droits
Usage: M205 [X<corner_speed>] [Y<corner_speed>]
gcode:
{% if 'X' in params %}
SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY={params.X|int}
{% elif 'Y' in params %}
SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY={params.Y|int}
{% 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 %}


Expand Down
1 change: 1 addition & 0 deletions Configurations/BigTreeTech SKR 2.0 - Stock/printer.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ timeout: 1800
filename: ~/printer_data/config/variables.cfg

[gcode_arcs]
resolution: 0.1

[pause_resume]

Expand Down

0 comments on commit ebf8f5d

Please sign in to comment.