You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not a simple upgrade, it has some configuration updates.
A namechange to KTCC (Klipper Tool Changer Code) is also in the works).
News:
-Virtual Tools
-Logfile
-Statistics
Changes to Configuration:
LogLevel under ToolLock is deprecated.
Must include new section ```[ktcclog]```.
New ```virtual_toolload_gcode:`` parameter to tools.
New ```virtual_toolunload_gcode:`` parameter to tools.
Changes to commands:
T_1 => KTCC_TOOL_DROPOFF_ALL
T# => KTCC_T# (ex. T0 => KTCC_T0)
New commands:
KTCC_SET_GCODE_OFFSET_FOR_CURRENT_TOOL
KTCC_LOG_TRACE
KTCC_LOG_DEBUG
KTCC_LOG_INFO
KTCC_LOG_ALWAYS
KTCC_SET_LOG_LEVEL
KTCC_DUMP_STATS
KTCC_RESET_STATS
Copy file name to clipboardExpand all lines: README.md
+72-6Lines changed: 72 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Tools for klipper
1
+
# Tools for klipper (KTCC - Klipper Tool Changer Code)
2
2
3
3
This are python extras, macros and example config for the
4
4
[Klipper 3D printer firmware](https://github.com/Klipper3d/klipper). I
@@ -16,7 +16,7 @@ having configurable coordinates for parking, zoning, tool offset,
16
16
meltzonelength, extruder, fan, etc.
17
17
***Multiple tools can be grouped in ToolGroup.** -Most configuration can
18
18
be inherited from the group if not specified in the tool config section.
19
-
***Virtual tools** - A tool can be virtual andhave a physical parent,
19
+
***Virtual tools** - A tool can be virtual and have a physical parent,
20
20
inheriting all nonspecified configuration from parent, parent group and
21
21
then toolgroup. Use case example of an ERCF on a PLA tool,a ERCF on a
22
22
PETG tool, one tool without virtual tools for abrasive and yet another
@@ -46,6 +46,35 @@ parameter to specify another tool.
46
46
* Current Tool is saved and restored at powerdown. Default but optional.
47
47
* Input shaper parameters for each tool.
48
48
* Position prior to toolchange can optionaly be saved and restored.
49
+
* Logging including to file functionality. You can keep the console log to a minimum and send debugging information to `ktcc.log` located in the same directory as Klipper logs.
50
+
* Logging including to file functionality. You can keep the console log to a minimum and send debugging information to `ktcc.log` located in the same directory as Klipper logs.
* Add selectable automatic calculation of active times based on previous times. Ex:
88
116
* Mean Layer time Standby mode. - Save time at every layerchange and at toolchange set to mean time of last 3 layers *2 or at last layer *1.5 with a Maximum and a minimum time. Needs to be analyzed further.
89
117
* Save the time it was in Standby last time and apply a fuzzfactor. Put tool in standby and heatup with presumption that next time will be aproximatley after the same time as last. +/- Fuzzfactor.
90
-
* Save pressure avance per tool to be restored on toolchange. Also between virtual tools. Check Slicer output first if this is needed or can be put in Filament custom gcode.
91
118
92
119
## Configuration requirements
93
120
*`[input_shaper]` needs to be used for input shaper to wordk.
94
121
95
122
## G-Code commands:
96
123
*`TOOL_LOCK` - Lock command
97
124
*`TOOL_UNLOCK` - Unlock command
98
-
*`Tn` - T0, T1, T2, etc... A select command is created for each tool.
125
+
*`KTCC_Tn` - T0, T1, T2, etc... A select command is created for each tool.
99
126
*`R` - Calls SAVE_CURRENT_POSITION with the variable as a RESTORE_POSITION_TYPE. For example "T0 R1" will call "SAVE_CURRENT_POSITION RESTORE_POSITION_TYPE=1" before moving. Positioned is restored with "RESTORE_POSITION" from below.
100
-
*`T_1` - Dropoff the current tool without picking up another tool
127
+
*`KTCC_TOOL_DROPOFF_ALL` - Dropoff the current tool without picking up another tool
101
128
*`SET_AND_SAVE_FAN_SPEED` - Set the fan speed of specified tool or current tool if no `P` is supplied. Then save to be recovered at ToolChange.
102
129
*`S` - Fan speed 0-255 or 0-1, default is 1, full speed.
103
130
*`P` - Fan of this tool. Default current tool.
@@ -140,6 +167,15 @@ This command can be used without any additional parameters. Without parameters i
140
167
* 0: No restore
141
168
* 1: Restore XY
142
169
* 2: Restore XYZ
170
+
*`KTCC_SET_GCODE_OFFSET_FOR_CURRENT_TOOL` -
171
+
*`KTCC_LOG_TRACE` -
172
+
*`KTCC_LOG_DEBUG` -
173
+
*`KTCC_LOG_INFO` -
174
+
*`KTCC_LOG_ALWAYS` -
175
+
*`KTCC_SET_LOG_LEVEL` -
176
+
*`KTCC_DUMP_STATS` -
177
+
*`KTCC_RESET_STATS` -
178
+
143
179
## Values accesible from Macro for each object
144
180
-**Toollock**
145
181
-`global_offset` - Global offset.
@@ -171,3 +207,33 @@ This command can be used without any additional parameters. Without parameters i
171
207
-`is_virtual` - As above
172
208
-`physical_parent_id` - As above
173
209
-`lazy_home_when_parking` - As above
210
+
211
+
212
+
Updates 22/02/2023
213
+
This is not a simple upgrade, it has some configuration updates.
214
+
A namechange to KTCC (Klipper Tool Changer Code) is also in the works).
215
+
216
+
News:
217
+
-Virtual Tools
218
+
-Logfile
219
+
-Statistics
220
+
221
+
Changes to Configuration:
222
+
LogLevel under ToolLock is deprecated.
223
+
Must include new section ```[ktcclog]```.
224
+
New ```virtual_toolload_gcode:`` parameter to tools.
225
+
New ```virtual_toolunload_gcode:`` parameter to tools.
0 commit comments