-
Notifications
You must be signed in to change notification settings - Fork 3
/
start_example_vzbot.cfg
207 lines (152 loc) · 5.37 KB
/
start_example_vzbot.cfg
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
# BACKUP https://github.com/Travis90x/Klipper-config/blob/VzBot/START.cfg
[delayed_gcode _START_PRINTER]
# description: The macros when start the printer
initial_duration: 2.0
gcode:
# WEBCAM_ON
{% if printer.bed_mesh.profiles.default %}
BED_MESH_PROFILE LOAD=default
{% else %}
M118 Bed Mesh "default" not present
{% endif %}
SET_VELOCITY_LIMIT ACCEL_TO_DECEL=7500
SET_VELOCITY_LIMIT ACCEL=15000
SET_VELOCITY_LIMIT VELOCITY=500
EXHAUST_FAN_OFF
BED_MESH_PROFILE REMOVE="print"
# BL_RESET
# BL_DOWN
G4 P1500
# BL_UP
# BL_RESET
# SET_PIN PIN=LED_Strip VALUE=5 # Set Led Strip 5%
UPDATE_DELAYED_GCODE ID=POWER_OFF_PRINTER_CHECK DURATION=600 # FOR TIMEOUT - Set Timeout 600s
# SET_BED_TEMP_TO_SENSOR # set the bed temperature as the temp measured at boot
[gcode_macro START_PRINT] # Recall as "FIRST" START PRINT MACRO in the Slicer
description: The macros when start a print
gcode:
{% set macro = printer['gcode_macro _MACRO_VARIABLE']|default({}) %}
EXHAUST_FAN_OFF
# HOMING_IF_NOT
SAVE_VARIABLE VARIABLE=power_resume_z VALUE=0
# DEBUG_OFF # FOR TIMEOUT
CLEAR_PAUSE
# RUN_SHELL_COMMAND CMD=LOG_CPU_START
SAVE_LAST_FILE # Recall as last MACRO in slicer: needed to generate PLR gcode without purge column in the Start Gcode of slicer
# SET_FILAMENT_SENSOR SENSOR=encoder_sensor ENABLE=0 # Disable Filament Sensor for purge line
# ORCA SLICER
{% set BED_TEMP = params.BED_TEMP|default(70)|int %}
{% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(225)|int %}
# Heat nozzle for probing
M104 S{EXTRUDER_TEMP}
# Heat bed for probing
M140 S{BED_TEMP}
HOMING_IF_NOT
# PRECISE_HOMING
# PARK FOR HEATING
_TOOLHEAD_PARK_PAUSE_CANCEL
# G1 X0 Y0 Z5 F{macro.speed_move*60}
# Heat nozzle for probing
M109 S{EXTRUDER_TEMP}
# Heat bed for probing
M190 S{BED_TEMP}
# Mesh for print
# Set Accel for Bed Mesh
SET_VELOCITY_LIMIT ACCEL=3000
SET_VELOCITY_LIMIT ACCEL_TO_DECEL=3000
M118 MESH Temporanea
{% if not printer.bed_mesh.profiles.print %}
BED_MESH_CALIBRATE PROFILE="print"
{% else %}
M118 Bed Mesh "print" present
{% endif %}
BED_MESH_PROFILE LOAD="print"
# PURGE LINE
M118 Purging...
M117 Purging...
PURGE_LINE
LAST_START_PRINT ; Enable PLR, Encoder etc
[gcode_macro PURGE_LINE]
gcode:
{% set macro = printer['gcode_macro _MACRO_VARIABLE']|default({}) %}
# LOAD FILAMENT
G90
G92 E0
G1 X{macro.purge_park_x} Y{macro.purge_park_x}
G1 E{macro.start_purge_long_lenght} F{macro.start_purge_long_speed*60}
G92 E0
G4 P4000
G1 E{macro.start_purge_short_lenght} F{macro.start_purge_short_speed*60}
G92 E0
# G11 # retract a bit
# PURGE LINE
G92 E0
G1 Z0.3 F3000 ; Move bed down
G1 X250 Y0 Z0.2 F15000.0 ; Move to start position
G1 X0 Y0 Z0.2 F1500.0 E10 ; Draw the first line
G92 E0
G1 Z3 F3000 E-1
G92 E0
[gcode_macro LAST_START_PRINT] # Recall as the "LAST" START PRINT MACRO in the Slicer
description: The last macros when start a print
gcode:
{% set macro = printer['gcode_macro _MACRO_VARIABLE']|default({}) %}
# SET_FILAMENT_SENSOR SENSOR=encoder_sensor ENABLE=1 # Enable Filament Sensor after purge line
[gcode_macro END_PRINT] # Recall as END PRINT MACRO in the Slicer
description: The macros when end a print
gcode:
{% set macro = printer['gcode_macro _MACRO_VARIABLE']|default({}) %}
M118 Z SAFE
Z_SAFE ; Raise Z more
_TOOLHEAD_PARK_PAUSE_CANCEL
; Go to center
M118 Go to center
{% set x_med = printer.toolhead.axis_maximum.x / 2 %}
{% set y_med = printer.toolhead.axis_maximum.x / 2 %}
G90
G1 X{macro.cooling_park_x} Y{macro.cooling_park_x} F{macro.speed_move}
M118 Short retract
G91 ; Relative positioning
# Retract short
G1 E-{macro.start_purge_short_lenght} F{macro.start_purge_short_speed*60}
# G10 ; Firmware Retraction
; Cooldown 20%
M118 Cooling at center
M106 S26 ; Fan 10%
G4 P1000 ; pause between retractions
M118 Long retract
; Retract long
G1 E-{macro.start_purge_long_lenght} F{macro.start_purge_long_speed*60}
; Cooldown
M118 Turn Off Heaters
TURN_OFF_HEATERS
M106 S51 ; Fan 20%
Z_SAFE Z=100
M118 Motor OFF
DISABLE_EXTRUDER
SET_STEPPER_ENABLE STEPPER=extruder ENABLE=0
M18 ; Klipper disables All Motors
M84 ; Klipper disables All Motors
# TIMELAPSE_RENDER ; Webcam
G4 P10000 ; pause cooldown
M118 Fan OFF
M107 ; Turn-off fan
SET_FAN_SPEED FAN=RSCS SPEED=0
# end_tune ; Beeper
clear_last_file # PLR
# Remove Mesh "print"
BED_MESH_PROFILE REMOVE="print"
# RUN_SHELL_COMMAND CMD=LOG_CPU_STOP
# WEBCAM_OFF
# {% if printer.configfile.save_config_pending|lower == 'true' or printer["gcode_macro global"].restart_inpending|lower == 'true' %}
{% if printer.configfile.save_config_pending %}
M117 save in pending
M118 save in pending
SAVE_VARIABLE VARIABLE=dariavviare VALUE=1
# SAVE_CONFIG #Enable if you want save edited Z-Offset or Mesh...
{% endif %}
M118 Clean Air
EXHAUST_FAN_ON
# EXHAUST_FAN_ON EXHAUST_TIME=120
M118 Printing finished
# UPDATE_DELAYED_GCODE ID=POWER_OFF_PRINTER_CHECK DURATION=60