updates configs

This commit is contained in:
Sander Soots
2022-10-05 15:40:31 +03:00
parent b0fa54671c
commit a4e6a8a6ff
6 changed files with 247 additions and 240 deletions

View File

@@ -257,7 +257,7 @@ rotation_distance: 22.7923459 # CALIBRATED for Stealthburner
## Use 50:17 for Afterburner/Clockwork (BMG Gear Ratio)
## Use 80:20 for M4, M3.1
## Use 7.5:1 for Galileo
gear_ratio: 50:1 #for Galileo
gear_ratio: 5:1 #for Galileo
microsteps: 32
full_steps_per_rotation: 200 #200 for 1.8 degree, 400 for 0.9 degree
nozzle_diameter: 0.400
@@ -532,127 +532,11 @@ gcode:
#--------------------------------------------------------------------
#####################################################################
# Macros
#####################################################################
[gcode_macro CENTER]
gcode:
G0 X175 Y175 Z30 F3600
[gcode_macro G32]
gcode:
SAVE_GCODE_STATE NAME=STATE_G32
G90
G28
QUAD_GANTRY_LEVEL
G28
## Uncomment for for your size printer:
#--------------------------------------------------------------------
## Uncomment for 250mm build
#G0 X125 Y125 Z30 F3600
## Uncomment for 300 build
#G0 X150 Y150 Z30 F3600
## Uncomment for 350mm build
G0 X175 Y175 Z30 F3600
#--------------------------------------------------------------------
RESTORE_GCODE_STATE NAME=STATE_G32
[gcode_macro PRINT_START]
# Use PRINT_START for the slicer starting script - please customise for your slicer of choice
gcode:
start_tones
BED_MESH_CLEAR
G32 ; home all axes
BED_MESH_PROFILE LOAD=default
G90
G0 X175 Y175 Z30 F3600 ; move nozzle away from bed
[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
G92 E0 ; zero the extruder
G1 E-5 F1800 ; retract filament
G91 ; relative positioning
G0 Z1.00 X20.0 Y20.0 F20000 ; move nozzle to remove stringing
TURN_OFF_HEATERS
M107 ; turn off fan
G1 Z2 F3000 ; move nozzle up 2mm
G90 ; absolute positioning
G0 X125 Y250 F3600 ; park nozzle at rear
BED_MESH_CLEAR
end_tones
######################################################################
# Beeper
######################################################################
# M300 : Play tone. Beeper support, as commonly found on usual LCD
# displays (i.e. RepRapDiscount 2004 Smart Controller, RepRapDiscount
# 12864 Full Graphic). This defines a custom I/O pin and a custom
# GCODE macro. Usage:
# M300 [P<ms>] [S<Hz>]
# P is the tone duration, S the tone frequency.
# The frequency won't be pitch perfect.
[output_pin BEEPER_pin]
pin: PC9
# Beeper pin. This parameter must be provided.
# ar37 is the default RAMPS/MKS pin.
pwm: True
# A piezo beeper needs a PWM signal, a DC buzzer doesn't.
value: 0
# Silent at power on, set to 1 if active low.
shutdown_value: 0
# Disable at emergency shutdown (no PWM would be available anyway).
cycle_time: 0.001
# Default PWM frequency : 0.001 = 1ms will give a tone of 1kHz
# Although not pitch perfect.
[gcode_macro M300]
gcode:
# Use a default 1kHz tone if S is omitted.
{% set S = params.S|default(1000)|int %}
# Use a 10ms duration is P is omitted.
{% set P = params.P|default(100)|int %}
SET_PIN PIN=BEEPER_pin VALUE=0.5 CYCLE_TIME={ 1.0/S if S > 0 else 1 }
G4 P{P}
SET_PIN PIN=BEEPER_pin VALUE=0
[gcode_macro start_tones]
gcode:
M300 S1000 P500 ; chirp to indicate starting to print
[gcode_macro end_tones]
gcode:
M300 S440 P200 ; Make Print Completed Tones
M300 S660 P250
M300 S880 P300
[gcode_macro error_tones]
gcode:
M300 S700 P1500 ; Make Print Completed Tones
M300 S700 P500 ; Make Print Completed Tones
M300 S700 P500 ; Make Print Completed Tones
M300 S700 P500 ; Make Print Completed Tones
M300 S700 P500 ; Make Print Completed Tones
M300 S700 P500 ; Make Print Completed Tones
M300 S700 P500 ; Make Print Completed Tones
M300 S700 P500 ; Make Print Completed Tones
[include mainsail.cfg]
[include menu_bed.cfg]
[include leds.cfg]
[include stealthburner_leds.cfg]
[include macros.cfg]
## Common Temperature Sensors
## "EPCOS 100K B57560G104F"