Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ######################################################################
- # Start Print and End Print
- ######################################################################
- [gcode_macro START_PRINT]
- description: Print start operationsS
- gcode:
- {% set BED_TEMP = params.BED_TEMP|default(0)|float %}
- {% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(0)|float %}
- ; Set initial warmup temps
- M104 S160 ; set extruder no-ooze temp
- M140 S{BED_TEMP} ; bed temp
- M190 S{BED_TEMP} ; wait for bed
- G21 ; Set to metric
- G90 ; Force coordinates to be absolute relative to the origin
- G28 ; Home
- M104 S200 ; Get Nozzle Closer to Temp While Probing
- ; On Demand Bed Mesh Calibration
- ; via https://github.com/Turge08/print_area_bed_mesh
- BED_MESH_CALIBRATE PRINT_MIN={params.PRINT_MIN} PRINT_MAX={params.PRINT_MAX}
- ; Move for Prime -- Better for oozey
- G92 E0
- G0 X0 Y0 F4000
- M104 S{EXTRUDER_TEMP} ; set final nozzle temp
- M190 S{BED_TEMP} ; wait for bed temp to stabilize
- M109 S{EXTRUDER_TEMP} ; wait for nozzle temp to stabilize
- G92 E0 ;Set extruder to zero
- G0 X1 Y25 Z0.24 F5000.0 ;Move to start position
- G1 X1 Y200 Z0.24 F1500.0 E15 ;Draw the first line
- G1 X7 Y200 Z0.24 F5000.0 ;Move to side a little
- G1 X7 Y50 Z0.26 F1500.0 E30 ;Draw the second line
- G92 E0 ; Reset Extruder
- G1 E-0.8 F500 ; Retract a little
- G1 X125 Y30 Z0.25 F9000 ; shear strings
- [gcode_macro END_PRINT]
- description: Print finish operations
- gcode:
- ;Get Printer built volume dimensions
- {% set X_MAX = printer.toolhead.axis_maximum.x|default(300)|float %}
- {% set Y_MAX = printer.toolhead.axis_maximum.y|default(300)|float %}
- TIMELAPSE_TAKE_FRAME
- ;Fix-up extruder
- G91
- G1 E-2 F2700
- G1 E-1.5 Z0.2 F2400
- G1 X5 Y5 F6000
- G1 Z10
- G90
- ;Present print
- G1 Z{printer.toolhead.position.z + 10} F600
- G1 X{X_MAX / 2} Y{Y_MAX} F6000
- M106 S0
- M104 S0
- M140 S0
- ;Disable Steppers
- M84 X Y E
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement