-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprinter.cfg
More file actions
680 lines (608 loc) · 22.6 KB
/
Copy pathprinter.cfg
File metadata and controls
680 lines (608 loc) · 22.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
[respond]
[include chopper_tune.cfg]
[include BTTEBB36.cfg]
#[include mainsail.cfg]
[include client.cfg]
#[include timelapse.cfg]
#[include sensorless.cfg]
#[include leds.cfg]
[include KAMP_Settings.cfg]
[include K-ShakeTune/*.cfg]
[include config_backup.cfg]
[auto_speed]
[exclude_object]
[skew_correction]
[mcu]
serial: /dev/serial/by-id/usb-Klipper_stm32h723xx_270016001951313236343430-if00
restart_method: command
[printer]
kinematics: corexy
max_velocity: 350 #710
max_accel: 6000 #47825
#max_accel_to_decel: 3000
max_z_velocity: 25
max_z_accel: 500
square_corner_velocity: 6
[input_shaper]
shaper_type_x: mzv
shaper_freq_x: 74.8
damping_ratio_x: 0.030
shaper_type_y: mzv
shaper_freq_y: 47.2
damping_ratio_y: 0.038
#[autotune_tmc stepper_x]
#motor: fysetc-17HS19-2004S-C
#sg4_thrs: 65
#[autotune_tmc stepper_y]
#motor: fysetc-17HS19-2004S-C
#sg4_thrs: 65
#[autotune_tmc stepper_z]
#motor: fysetc-42HC40-204A-300N84
#[autotune_tmc stepper_z1]
#motor: fysetc-42HC40-204A-300N84
#[autotune_tmc stepper_z2]
#motor: fysetc-42HC40-204A-300N84
#[autotune_tmc extruder]
#motor: ldo-36sth20-1004ahg
#####################################################################
# X/Y Stepper Settings
#####################################################################
[stepper_x]
## Connected to X-MOT (B Motor)
step_pin: PF9
dir_pin: !PF10
enable_pin: !PG2
rotation_distance: 40
microsteps: 64
full_steps_per_rotation:200 #set to 400 for 0.9 degree stepper
endstop_pin: can0:PB8 #tmc2209_stepper_x:virtual_endstop
position_min: 0
position_endstop: 350
position_max: 350
##--------------------------------------------------------------------
homing_speed: 40 #Max 100
homing_retract_dist: 0
homing_positive_dir: True
## Make sure to update below for your relevant driver (2208 or 2209)
[tmc2209 stepper_x]
uart_pin: PF2
interpolate: False
run_current: 1.0
#hold_current: 0.4
sense_resistor: 0.110
#stealthchop_threshold: 0
#diag_pin: ^PB14 # use the same pin that was previously the endstop_pin!
#driver_SGTHRS: 65
driver_TBL: 3
driver_TOFF: 8
driver_HSTRT: 0
driver_HEND: 0
[stepper_y]
## Connected to Y-MOT (A Motor)
step_pin: PG4
dir_pin: !PC1
enable_pin: !PA0
rotation_distance: 40
microsteps: 64
full_steps_per_rotation:200 #set to 400 for 0.9 degree stepper
endstop_pin: PG13 #tmc2209_stepper_y:virtual_endstop
position_min: 0
position_endstop: 355
position_max: 355
##--------------------------------------------------------------------
homing_speed: 40 #Max 100
homing_retract_dist: 0
homing_positive_dir: True
## Make sure to update below for your relevant driver (2208 or 2209)
[tmc2209 stepper_y]
uart_pin: PC7
interpolate: False
run_current: 1.0
#hold_current: 0.4
sense_resistor: 0.110
#stealthchop_threshold: 0
#diag_pin: ^PB13 # use the same pin that was previously the endstop_pin!
#driver_SGTHRS: 65
driver_TBL: 3
driver_TOFF: 8
driver_HSTRT: 0
driver_HEND: 0
#####################################################################
# Z Stepper Settings
#####################################################################
## In E-MOT3 Position
## Z0 Stepper - Front Left
[stepper_z]
step_pin: PF13
dir_pin: PF12
enable_pin: !PF14
rotation_distance: 4
full_steps_per_rotation: 200
microsteps: 64
endstop_pin: probe:z_virtual_endstop # use beacon as virtual endstop
homing_retract_dist: 0 # beacon needs this to be set to 0
## In Z- Position
#endstop_pin: ^PA0
## Z-position of nozzle (in mm) to z-endstop trigger point relative to print surface (Z0)
## (+) value = endstop above Z0, (-) value = endstop below
## Increasing position_endstop brings nozzle closer to the bed
## After you run Z_ENDSTOP_CALIBRATE, position_endstop will be stored at the very end of your config
#position_endstop: -0.5
position_max: 250
##--------------------------------------------------------------------
position_min: -5
homing_speed: 8
second_homing_speed: 3
homing_retract_dist: 0
[tmc2209 stepper_z]
uart_pin: PC4
interpolate: False
run_current: 0.7
#hold_current: 0.4
sense_resistor: 0.110
stealthchop_threshold: 0
## In E2-MOT Position
## Z1 Stepper - Rear
[stepper_z1]
step_pin: PG0
dir_pin: PG1
enable_pin: !PF15
rotation_distance: 4
full_steps_per_rotation: 200
microsteps: 64
[tmc2209 stepper_z1]
uart_pin: PD11
interpolate: False
run_current: 0.7
#hold_current: 0.4
sense_resistor: 0.110
stealthchop_threshold: 0
## In E1-MOT Position
## Z2 Stepper - Front Right
[stepper_z2]
step_pin: PF11
dir_pin: PG3
enable_pin: !PG5
rotation_distance: 4
full_steps_per_rotation: 200
microsteps: 64
[tmc2209 stepper_z2]
uart_pin: PC6
interpolate: False
run_current: 0.7
#hold_current: 0.4
sense_resistor: 0.110
stealthchop_threshold: 0
#####################################################################
# Bed Heater
#####################################################################
[heater_bed]
## SSR Pin - In BED OUT position
heater_pin: PA1
sensor_type: Generic 3950 # NTC 100K MGB18-104F39050L32
sensor_pin: PF3 # TB Position
## Adjust Max Power so your heater doesn't warp your bed
max_power: 1.0
min_temp: -15
max_temp: 120
#####################################################################
# Probe
#####################################################################
[bed_mesh]
speed: 350
horizontal_move_z: 3
mesh_min: 30,30 #20, 22
mesh_max: 320,320 #330, 328
probe_count: 25,25 #16, 16
mesh_pps: 0, 0
algorithm: bicubic
bicubic_tension: 0.5
#relative_reference_index: 612
move_check_distance: 3
split_delta_z: 0.01
adaptive_margin: 5
[beacon]
serial: /dev/serial/by-id/usb-Beacon_Beacon_RevH_370329FA5154354D38202020FF0A2A0F-if00
x_offset: 0 # update with offset from nozzle on your machine
y_offset: 21.953 # update with offset from nozzle on your machine
mesh_main_direction: x
mesh_runs: 2
contact_max_hotend_temperature: 150 # increase to probe at print temps
home_xy_position: 175, 175 # update with your safe position
home_z_hop: 5
home_z_hop_speed: 20
home_xy_move_speed: 300
home_method: contact # use proximity for induction homing
home_method_when_homed: proximity # after initial calibration use induction
home_autocalibrate: unhomed # contact will calibrate beacon on first home
[resonance_tester]
accel_chip: beacon
probe_points: 175, 175, 20
#####################################################################
# Fan Control
#####################################################################
[heater_fan controller_fan]
## Controller fan - FAN2 Connector
pin: PA8
kick_start_time: 0.5
heater: heater_bed
heater_temp: 60.0
fan_speed: 0.4
[multi_pin AUX]
pins: PE5,PD12
[fan_generic AUX]
pin: multi_pin:AUX
max_power: 1.0
shutdown_speed: 0
# The desired fan speed (expressed as a value from 0.0 to 1.0) if
# the micro-controller software enters an error state. The default
# is 0.
cycle_time: 0.010
# The amount of time (in seconds) for each PWM power cycle to the
# fan. It is recommended this be 10 milliseconds or greater when
# using software based PWM. The default is 0.010 seconds.
kick_start_time: 0.100
off_below: 0.0
# This setting should be recalibrated whenever max_power is adjusted.
# To calibrate this setting, start with off_below set to 0.0 and the
# fan spinning. Gradually lower the fan speed to determine the lowest
# input speed which reliably drives the fan without stalls. Set
# off_below to the duty cycle corresponding to this value (for
# example, 12% -> 0.12) or slightly higher.
[gcode_macro M106]
description: "Set fan speed (Orca compatible)"
rename_existing: M106.1
gcode:
{% set p = params.P|default(0)|int %}
{% set s = params.S|default(255)|int %}
{% if p == 0 %}
# P0 är huvudfläkten [fan] -> Använd original M106-kommandot
M106.1 S{s}
{% elif p == 2 %}
# P2 är AUX [fan_generic] -> Använd SET_FAN_SPEED (kräver 0.0-1.0)
# S255 / 255.0 blir 1.0
SET_FAN_SPEED FAN=AUX SPEED={s / 255.0}
{% elif p == 3 %}
# P3 Exempel för Exhaust/Chamber om du har det
# SET_FAN_SPEED FAN=EXHAUST SPEED={s / 255.0}
{% else %}
# Okänt P-värde, ignorera eller varna
RESPOND PREFIX="warn" MSG="Unknown fan index P"~p
{% endif %}
[gcode_macro M107]
description: "Turn off fans. No P = all, P# = specific"
rename_existing: M107.1
gcode:
{% set p = params.P|default(-1)|int %}
{% if p == -1 %}
# Inget P angivet -> Stäng av ALLT
M106.1 S0 ; Stäng av [fan]
SET_FAN_SPEED FAN=AUX SPEED=0
# SET_FAN_SPEED FAN=EXHAUST SPEED=0
{% elif p == 0 %}
# Stäng av bara [fan]
M106.1 S0
{% elif p == 2 %}
# Stäng av bara AUX
SET_FAN_SPEED FAN=AUX SPEED=0
{% else %}
RESPOND PREFIX="warn" MSG="Unknown fan index P"~p
{% endif %}
#####################################################################
# LED Control
#####################################################################
#[output_pin caselight ]
## Chamber Lighting - In 5V-RGB Position
#pin: PD3
#pwm: true
#shutdown_value: 0
#value:100
#cycle_time: 0.01
#####################################################################
# Homing and Gantry Adjustment Routines
#####################################################################
[idle_timeout]
timeout: 7800
#[safe_z_home]
## XY Location of the Z Endstop Switch
## Update -10,-10 to the XY coordinates of your endstop pin
## (such as 157,305) after going through Z Endstop Pin
## Location Definition step.
#home_xy_position:175,175
#speed:300
#z_hop:3
[z_tilt]
## Use Z_TILT_ADJUST to level the bed .
## z_positions: Location of toolhead
z_positions:
-50, 18
175, 398
400, 18
points:
30, 5
175, 295
320, 5
speed: 300
horizontal_move_z: 10
retries: 5
retry_tolerance: 0.0075
[shaketune]
result_folder: ~/printer_data/config/ShakeTune_results
# Path where the processed results will be stored. If the folder doesn't exist,
# it will be automatically created. You can change this if you'd like to store
# results in a different location.
number_of_results_to_keep: 10
# This setting defines how many results you want to keep in the result folder.
# Once the specified number is exceeded, older results will be automatically deleted
# to free up space on the SD card and avoid cluttering the results folder.
keep_raw_data: False
# If set to True, Shake&Tune will store both the processed graphs and the raw accelerometer
# .stdata files in the results folder. This can be useful for debugging or archiving purposes.
# Please always attach them when reporting any issues on GitHub or Discord.
show_macros_in_webui: True
# Mainsail and Fluidd doesn't create buttons for system commands (macros that are not part
# of the printer.cfg file). This option allow Shake&Tune to inject them into the webui at runtime.
# If set to False, the macros will be hidden but still accessible from the console by typing
# their names manually, which can be useful if you prefer to encapsulate them into your own macros.
timeout: 600
# This defines the maximum processing time (in seconds) to allows to Shake&Tune for generating
# graphs from a .stdata file. 10 minutes should be more than enough in most cases, but if you have
# slower hardware (e.g., older SD cards or low-performance devices), increase it to prevent timeouts.
measurements_chunk_size: 5
# Each Shake&Tune command uses the accelerometer to take multiple measurements. By default,
# Shake&Tune will write a chunk of data to disk every two measurements, and at the end of the
# command will merge these chunks into the final .stdata file for processing. "2" is a very
# conservative setting to avoid Klipper Timer Too Close errors on lower end devices with little
# RAM, and should work for everyone. However, if you are using a powerful computer, you may
# wish to increase this value to keep more measurements in memory (e.g., 15-20) before writing
# the chunk and avoid stressing the filesystem too much.
max_freq: 200
# This setting defines the maximum frequency at which the calculation of the power spectral density
# is cutoff. The default value should be fine for most machines and accelerometer combinations and
# avoid touching it unless you know what you're doing.
dpi: 300
# Controls the resolution of the generated graphs. The default value of 300 dpi was optimized
# and strikes a balance between performance and readability, ensuring that graphs are clear
# without using too much RAM to generate them. Usually, you shouldn't need to change this value.
#####################################################################
# Mainsail Variables
#####################################################################
[gcode_macro _CLIENT_VARIABLE]
variable_use_custom_pos : False ; use custom park coordinates for x,y [True/False]
#variable_custom_park_x : 0.0 ; custom x position; value must be within your defined min and max of X
#variable_custom_park_y : 0.0 ; custom y position; value must be within your defined min and max of Y
#variable_custom_park_dz : 2.0 ; custom dz value; the value in mm to lift the nozzle when move to park position
variable_retract : 1.0 ; the value to retract while PAUSE
variable_cancel_retract : 5.0 ; the value to retract while CANCEL_PRINT
variable_speed_retract : 60.0 ; retract speed in mm/s
variable_unretract : 1.0 ; the value to unretract while RESUME
variable_speed_unretract : 60.0 ; unretract speed in mm/s
variable_speed_hop : 15.0 ; z move speed in mm/s
variable_speed_move : 100.0 ; move speed in mm/s
variable_park_at_cancel : True ; allow to move the toolhead to park while execute CANCEL_PRINT [True/False]
variable_park_at_cancel_x : None ; different park position during CANCEL_PRINT [None/Position as Float]; park_at_cancel must be True
variable_park_at_cancel_y : None ; different park position during CANCEL_PRINT [None/Position as Float]; park_at_cancel must be True
## !!! Caution [firmware_retraction] must be defined in the printer.cfg if you set use_fw_retract: True !!!
variable_use_fw_retract : True ; use fw_retraction instead of the manual version [True/False]
variable_idle_timeout : 3600 ; time in sec until idle_timeout kicks in. Value 0 means that no value will be set or restored
#variable_runout_sensor : "" ; If a sensor is defined, it will be used to cancel the execution of RESUME in case no filament is detected.
## Specify the config name of the runout sensor e.g "filament_switch_sensor runout". Hint use the same as in your printer.cfg
## !!! Custom macros, please use with care and review the section of the corresponding macro.
## These macros are for simple operations like setting a status LED. Please make sure your macro does not interfere with the basic macro functions.
## Only single line commands are supported, please create a macro if you need more than one command.
#variable_user_pause_macro : "" ; Everything inside the "" will be executed after the klipper base pause (PAUSE_BASE) function
#variable_user_resume_macro: "" ; Everything inside the "" will be executed before the klipper base resume (RESUME_BASE) function
#variable_user_cancel_macro: "" ; Everything inside the "" will be executed before the klipper base cancel (CANCEL_PRINT_BASE) function
gcode:
#####################################################################
# Displays
#####################################################################
#--------------------------------------------------------------------
[board_pins]
aliases:
# EXP1 header
EXP1_1=PE8, EXP1_2=PE7,
EXP1_3=PE9, EXP1_4=PE10,
EXP1_5=PE12, EXP1_6=PE13, # Slot in the socket on this side
EXP1_7=PE14, EXP1_8=PE15,
EXP1_9=<GND>, EXP1_10=<5V>,
# EXP2 header
EXP2_1=PA6, EXP2_2=PA5,
EXP2_3=PB1, EXP2_4=PA4,
EXP2_5=PB2, EXP2_6=PA7, # Slot in the socket on this side
EXP2_7=PC15, EXP2_8=<RST>,
EXP2_9=<GND>, EXP2_10=PC5
#[display]
#lcd_type: uc1701
#cs_pin: PE9
#a0_pin: PE10
#rst_pin: PE12
#encoder_pins: ^PB2, ^PB1
#click_pin: ^!PE7
## Some micro-controller boards may require an spi bus to be specified:
#spi_bus: spi
## Alternatively, some micro-controller boards may work with software spi:
#contrast: 63
#spi_software_mosi_pin: PA7
#spi_software_miso_pin: PA6
#spi_software_sclk_pin: PA5
#[output_pin beeper]
#pin: PE8
#[neopixel btt_mini12864]
#pin: PE13
#chain_count: 3
#color_order: RGB
#initial_RED: 0.4
#initial_GREEN: 0.4
#initial_BLUE: 0.4
# Set RGB values on boot up for each Neopixel.
# Index 1 = display, Index 2 and 3 = Knob
#[delayed_gcode setdisplayneopixel]
#initial_duration: 1
#gcode:
# SET_LED LED=btt_mini12864 RED=1 GREEN=1 BLUE=1 INDEX=1 TRANSMIT=0
# SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=2 TRANSMIT=0
# SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=3
#--------------------------------------------------------------------
[temperature_sensor Orange_Pi_5]
sensor_type: temperature_host
min_temp: -20
max_temp: 100
[temperature_sensor Octopus_Pro]
sensor_type: temperature_mcu
max_temp: 100
[gcode_arcs]
resolution: 0.1
[firmware_retraction]
retract_length: 0.6
# The length of filament (in mm) to retract when G10 is activated,
# and to unretract when G11 is activated (but see
# unretract_extra_length below). The default is 0 mm.
retract_speed: 60
# The speed of retraction, in mm/s. The default is 20 mm/s.
unretract_extra_length: 0
# The length (in mm) of *additional* filament to add when
# unretracting.
unretract_speed: 60
# The speed of unretraction, in mm/s. The default is 10 mm/s.
[axis_twist_compensation]
#speed: 50
# The speed (in mm/s) of non-probing moves during the calibration.
# The default is 50.
#horizontal_move_z: 5
# The height (in mm) that the head should be commanded to move to
# just prior to starting a probe operation. The default is 5.
calibrate_start_x: 20
# Defines the minimum X coordinate of the calibration
# This should be the X coordinate that positions the nozzle at the starting
# calibration position. This parameter must be provided.
calibrate_end_x: 330
# Defines the maximum X coordinate of the calibration
# This should be the X coordinate that positions the nozzle at the ending
# calibration position. This parameter must be provided.
calibrate_y: 175
# Defines the Y coordinate of the calibration
# This should be the Y coordinate that positions the nozzle during the
# calibration process. This parameter must be provided and is recommended to
# be near the center of the bed
#####################################################################
# Macros
#####################################################################
[gcode_macro M600]
description: Filament change
gcode: PAUSE X=10 Y=10 Z_MIN=50
[gcode_macro G32]
gcode:
BED_MESH_CLEAR
G28
Z_TILT_ADJUST
G28
G0 X175 Y175 Z30 F3600
#--------------------------------------------------------------------
[gcode_macro PRINT_START]
gcode:
# Parameters
{% set bedtemp = params.BED|default(110)|int %}
{% set hotendtemp = params.EXTRUDER|default(240)|int %}
#{% set FL_SIZE = params.SIZE|default("0_0_0_0")|string %}
{% set filament_type = params.FILAMENT|default("ABS")|upper %}
{action_respond_info('==== PRINT_START ====')}
{action_respond_info("targets [bed: %s, extruder: %s, chamber: %s, filament_type: %s, FL_SIZE: %s]" % (target_bed,target_extruder,target_chamber,filament_type,FL_SIZE))}
G21 ; set units to millimeters
G90 ; use absolute coordinates
M83 ; use relative distances for extrusion
CLEAR_PAUSE
BED_MESH_CLEAR
SET_GCODE_OFFSET Z=0
{% if filament_type == "PLA" or filament_type == "FLEX" %}
#STATUS_LEVELING
G32 ; leveling gantry
#STATUS_HEATING
M190 S{bedtemp} ; wait for bed temp
#STATUS_MESHING
BED_MESH_CALIBRATE ADAPTIVE=1
G28 Z METHOD=CONTACT CALIBRATE=0
SET_GCODE_OFFSET Z=0.06 ; add a little offset for hotend thermal expansion ; needs fine tuning, long meltzones require more
#SET_GCODE_OFFSET Z_ADJUST={OFFSET} ; apply optional material squish via slicer
SMART_PARK
M109 S{hotendtemp} ; wait for hotend temp
#STATUS_READY
#STATUS_PRINTING
VORON_PURGE
#SET_FAN_SPEED FAN=AUX SPEED=0.25
SKEW_PROFILE LOAD=calilantern_skew_profile
{% else %}
#STATUS_HEATING
M190 S{bedtemp} ; wait for bed temp
#STATUS_LEVELING
G32 ; leveling gantry
#STATUS_MESHING
BED_MESH_CALIBRATE ADAPTIVE=1
G28 Z METHOD=CONTACT CALIBRATE=0
SET_GCODE_OFFSET Z=0.06 ; add a little offset for hotend thermal expansion ; needs fine tuning, long meltzones require more
#SET_GCODE_OFFSET Z_ADJUST={OFFSET} ; apply optional material squish via slicer
SMART_PARK
M109 S{hotendtemp} ; wait for hotend temp
#STATUS_PRINTING
VORON_PURGE
#SET_FAN_SPEED FAN=AUX SPEED=0.15
SKEW_PROFILE LOAD=calilantern_skew_profile
{% endif %}
[gcode_macro PRINT_END]
# Use PRINT_END for the slicer ending script - please customise for your slicer of choice
gcode:
M400 ; wait for buffer to clear
SET_SKEW CLEAR=1
SET_FAN_SPEED FAN=AUX SPEED=0
G92 E0 ; zero the extruder
G1 E-6.0 F3600 ; retract filament
G91 ; relative positioning
#G0 Z1.00 X20.0 Y20.0 F10000 ; move nozzle to remove stringing
TURN_OFF_HEATERS
M107 ; turn off fan
G1 Z25 F3000 ; move nozzle up 2mm
G90 ; absolute positioning
G0 X330 Y330 F3600 ; park nozzle at rear
BED_MESH_CLEAR
## Thermistor Types
## "EPCOS 100K B57560G104F"
## "ATC Semitec 104GT-2"
## "NTC 100K beta 3950"
## "Honeywell 100K 135-104LAG-J01"
## "NTC 100K MGB18-104F39050L32" (Keenovo Heater Pad)
## "AD595"
## "PT100 INA826"
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 38.488
#*# pid_ki = 1.655
#*# pid_kd = 223.714
#*#
#*# [axis_twist_compensation]
#*# z_compensations = -0.006963, -0.003808, 0.015585, -0.004814
#*# compensation_start_x = 20.0
#*# compensation_end_x = 330.0
#*#
#*# [skew_correction calilantern_skew_profile]
#*# xy_skew = 0.0005303312954688593
#*# xz_skew = 0.0009970230136026508
#*# yz_skew = 0.0012374407297853515
#*#
#*# [beacon model default]
#*# model_coef = 1.5942208635976023,
#*# 1.9750243158087142,
#*# 0.7895821472119503,
#*# 0.20942372878403817,
#*# 0.09206880106917116,
#*# 0.25206776552101234,
#*# 0.048941869900725944,
#*# -0.12012944974399534,
#*# 0.07509471229107961,
#*# 0.0866265091490536
#*# model_domain = 1.868199473293448e-07,1.940330406088496e-07
#*# model_range = 0.200000,5.000000
#*# model_temp = 20.954648
#*# model_offset = 0.00000