forked from TypQxQ/Klipper_ToolChanger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
M104.cfg
20 lines (17 loc) · 758 Bytes
/
M104.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[gcode_macro M104]
rename_existing: M104.1
description: [T<index>] [S<temperature>]
Set tool temperature.
T= Tool number, optional. If this parameter is not provided, the current tool is used.
S= Active temperature(s), optional
gcode:
{% set newparameters = "" %} # Parameters to be passed to subroutines in new format.
# T= Tool number
{% if params.T is defined %}
{% set newparameters = newparameters ~ " TOOL="~params.T %} # Set heater_standby_temp to new parameters.
{% endif %}
# S= Active temperature
{% if params.S is defined %}
{% set newparameters = newparameters ~ " ACTV_TMP="~params.S %} # Set heater_active_temp to new parameters.
{% endif %}
SET_TOOL_TEMPERATURE{newparameters}