|
| 1 | +GScript: |
| 2 | + - name: "Sweep Gantry" |
| 3 | + description: > |
| 4 | + This script example assumes a box style printer with a vertical Z axis and a 200mm x 235mm XY build area. |
| 5 | + It uses the printer's extruder to push the part off the build plate." |
| 6 | + version: 0.0.1 |
| 7 | + gcode: | |
| 8 | + M17 ;enable steppers |
| 9 | + G91 ; Set relative for lift |
| 10 | + G0 Z10 ; lift z by 10 |
| 11 | + G90 ;back to absolute positioning |
| 12 | + M190 R25 ; set bed to 25 and wait for cooldown |
| 13 | + G0 X200 Y235 ;move to back corner |
| 14 | + G0 X110 Y235 ;move to mid bed aft |
| 15 | + G0 Z1 ;come down to 1MM from bed |
| 16 | + G0 Y0 ;wipe forward |
| 17 | + G0 Y235 ;wipe aft |
| 18 | + G28 ; home |
| 19 | + - name: "Advance Belt Short" |
| 20 | + description: > |
| 21 | + This script works with a belt printer (specifically, a Creality CR-30). The belt is advanced to move |
| 22 | + the print out of the way before starting another print. |
| 23 | + version: 0.0.1 |
| 24 | + gcode: | |
| 25 | + M17 ; enable steppers |
| 26 | + G91 ; Set relative for lift |
| 27 | + G21 ; Set units to mm |
| 28 | + G0 Z10 ; advance bed (Z) by 10mm |
| 29 | + G90 ; back to absolute positioning |
| 30 | + M104 S0; Set Hot-end to 0C (off) |
| 31 | + M140 S0; Set bed to 0C (off) |
| 32 | + - name: "Pause" |
| 33 | + description: > |
| 34 | + Use this script if you want to remove the print yourself but use the queue to keep track of your |
| 35 | + prints. It uses an @ Command to tell OctoPrint to pause the print. The printer will stay paused |
| 36 | + until you press "Resume" on the OctoPrint UI. |
| 37 | + version: 0.0.1 |
| 38 | + gcode: | |
| 39 | + M18 ; disable steppers |
| 40 | + M104 T0 S0 ; extruder heater off |
| 41 | + M140 S0 ; heated bed heater off |
| 42 | + @pause ; wait for user input |
| 43 | + - name: "Generic Off" |
| 44 | + description: > |
| 45 | + This is a generic "heaters and motors off" script which should be compatible with most printers. |
| 46 | + version: 0.0.1 |
| 47 | + gcode: | |
| 48 | + M18 ; disable steppers |
| 49 | + M104 T0 S0 ; extruder heater off |
| 50 | + M140 S0 ; heated bed heater off |
| 51 | + M300 S880 P300 ; beep to show its finished |
| 52 | + - name: "Advance Belt Long" |
| 53 | + description: > |
| 54 | + The same idea as "Advance Belt Short", but with a longer advancement to roll off all completed prints. |
| 55 | + version: 0.0.1 |
| 56 | + gcode: | |
| 57 | + M17 ; enable steppers |
| 58 | + G91 ; Set relative for lift |
| 59 | + G21 ; Set units to mm |
| 60 | + G0 Z300 ; advance bed (Z) to roll off all parts |
| 61 | + M18 ; Disable steppers |
| 62 | + G90 ; back to absolute positioning |
| 63 | + M104 S0; Set Hot-end to 0C (off) |
| 64 | + M140 S0; Set bed to 0C (off) |
0 commit comments