mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 05:54:26 +08:00
update gcode macros for klipper
This commit is contained in:
parent
fee7c05c5b
commit
c18e11bb8e
30
README.md
30
README.md
@ -43,11 +43,35 @@ You can enable gcode_arcs(G2/G3) support by adding following section into you pr
|
|||||||
[gcode_arcs]
|
[gcode_arcs]
|
||||||
resolution: 0.1
|
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_macro M205]
|
||||||
gcode:
|
gcode:
|
||||||
{% set x_jerk = params.X|default(5)|float %}
|
{% if 'X' in params or 'Y' in params %}
|
||||||
{% set y_jerk = params.Y|default(5)|float %}
|
{% set corner_speed = (params.X|default(params.Y)|float,
|
||||||
SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY={x_jerk}
|
params.Y|default(params.X)|float)|min %}
|
||||||
|
SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY={corner_speed}
|
||||||
|
{% else %}
|
||||||
|
SET_VELOCITY_LIMIT
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user