24 lines
738 B
INI
24 lines
738 B
INI
[gcode_macro BEEP]
|
|
gcode:
|
|
{% set duration = params.P | default(100) | float %}
|
|
SET_PIN PIN=beeper VALUE=1
|
|
G4 P{duration}
|
|
SET_PIN PIN=beeper VALUE=0
|
|
|
|
[gcode_macro PRINT_END]
|
|
gcode:
|
|
G91 ; Relative positionning
|
|
G1 E-2 F2700 ; Retract a bit
|
|
G1 E-2 Z0.2 F2400 ; Retract and raise Z
|
|
G0 X5 Y5 F3000 ; Wipe out
|
|
G0 Z10 ; Raise Z more
|
|
G90 ; Absolute positionning
|
|
G0 X0 Y220 ; Present print
|
|
M106 S0 ; Turn-off fan
|
|
M104 S0 ; Turn-off hotend
|
|
M140 S0 ; Turn-off bed_temp
|
|
M84 ; Disable stepper motors
|
|
|
|
[gcode_macro Clean_Bed]
|
|
gcode:
|
|
_CLIENT_LINEAR_MOVE X=0 Y=220 F=1500 |