Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ninp0/7b42b87a6fbb2d4d22d6c9f0b051747d to your computer and use it in GitHub Desktop.

Select an option

Save ninp0/7b42b87a6fbb2d4d22d6c9f0b051747d to your computer and use it in GitHub Desktop.

On the terminal tab, send the following commands:

M92 E830

and

M500


OctoPrint >> Settings >> GCODE Scripts:

Before print job starts:

M117 Absolute Pos On...
G4 P3000
G90

M117 Homing...
G4 P3000
G28 X Y Z
G0 Z210 F5000
G0 X130 F5000
G0 Y210 F5000
G92 X130 Z210 Y210

M117 Relative Pos On...
G4 P3000
G91

M117 Motors Off...
G4 P3000
M84

After print job completes:

M117 Fans On...
G4 P3000
M106 100

M117 Heaters Off...
G4 P3000
M104 S0
M140 S0

M117 Absolute Pos On...
G4 P3000
G90

M117 Homing...
G4 P3000
G28 X Y Z
G0 Z210 F5000
G0 X130 F5000
G0 Y210 F5000
G92 X130 Z210 Y210

M117 Relative Pos On...
G4 P3000
G91

M117 Motors Off...
G4 P3000
M84

M117 Fans for 3 mins...
G4 P180000

M117 Fans Off...
G4 P3000
M107

M117 MK3S|BT|Mosq|OlsonRb

After print job is canceled:

M117 Fans On...
G4 P3000
M106 100

M117 Heaters Off...
G4 P3000
M104 S0
M140 S0

M117 Absolute Pos On...
G4 P3000
G90

M117 Homing...
G4 P3000
G28 X Y Z
G0 Z210 F5000
G0 X130 F5000
G0 Y210 F5000
G92 X130 Z210 Y210

M117 Relative Pos On...
G4 P3000
G91

M117 Motors Off...
G4 P3000
M84

M117 Fans Off...
G4 P3000
M107

M117 MK3S|BT|Mosq|OlsonRb

After Serial Connection:

M117 Absolute Pos On...
G4 P3000
G90

M117 Homing...
G4 P3000
G28 X Y Z
G0 Z210 F5000
G0 X130 F5000
G0 Y210 F5000
G92 X130 Z210 Y210

M117 Relative Pos On...
G4 P3000
G91

M117 Motors Off...
G4 P3000
M84

; Set LCD Message
M117 MK3S|BT|Mosq|OlsonRb

Useful Terminal Commands:

  • Emergency Stop: M112
  • Cancel Print: M603
  • Get Current Position: M114
  • LCD Message: M117 0day Inc.
  • 415 Axis Steps / Unit for Extruder: M92 E415
  • Microstepping Mode 16: M350 E16
  • Set Nozzle Diameter: PRUSA nozzle set 0.6
  • 830 Axis Steps / Unit for Extruder: M92 E830
  • Microstepping Mode 32: M350 E32
  • Disable Thermal Anomaly Detection: M310 S0
  • Store settings in EEPROM: M500
  • Full Factory Reset:
M502
M500
  • Report EEPROM Settings: M503
  • Set and Wait for Previously Set Extruder Temperature: M109 R<TEMP C>
  • Unload Filament: M702
  • Load Filament: M701

Operational Settings:

Send: M503
Recv: echo:Steps per unit:
Recv: echo:  M92 X100.00 Y100.00 Z400.00 E830.00
Recv: echo:UStep resolution:
Recv: echo: M350 X16 Y16 Z16 E32
Recv: echo:Maximum feedrates - normal (mm/s):
Recv: echo:  M203 X200.00 Y200.00 Z12.00 E80.00
Recv: echo:Maximum feedrates - stealth (mm/s):
Recv: echo:  M203 X100.00 Y100.00 Z12.00 E80.00
Recv: echo:Maximum acceleration - normal (mm/s2):
Recv: echo:  M201 X1000 Y1000 Z200 E5000
Recv: echo:Maximum acceleration - stealth (mm/s2):
Recv: echo:  M201 X960 Y960 Z200 E5000
Recv: echo:Acceleration: P=print, R=retract, T=travel
Recv: echo:  M204 P1000.00 R1250.00 T1000.00
Recv: echo:Advanced variables: S=Min feedrate (mm/s), T=Min travel feedrate (mm/s), B=minimum segment time (us), X=maximum XY jerk (mm/s),  Z=maximum Z jerk (mm/s),  E=maximum E jerk (mm/s)
Recv: echo:  M205 S0.00 T0.00 B20000 X10.00 Y10.00 Z0.40 E4.50
Recv: echo:Home offset (mm):
Recv: echo:  M206 X0.00 Y0.00 Z0.00
Recv: echo:PID settings:
Recv: echo:   M301 P16.13 I1.16 D56.23
Recv: echo:PID heatbed settings:
Recv: echo:   M304 P126.13 I4.30 D924.76
Recv: echo:Retract: S=Length (mm) F:Speed (mm/m) Z: ZLift (mm)
Recv: echo:   M207 S6.00 F4800.00 Z0.00
Recv: echo:Recover: S=Extra length (mm) F:Speed (mm/m)
Recv: echo:   M208 S-0.50 F480.00
Recv: echo:Auto-Retract: S=0 to disable, 1 to interpret extrude-only moves as retracts or recoveries
Recv: echo:   M209 S0
Recv: echo:Filament settings: Disabled
Recv: echo:Arc Settings: P:Max length(mm) S:Min length (mm) N:Corrections R:Min segments F:Segments/sec.
Recv: echo:  M214 P1.00 S0.50 N25 R20 F0
Recv: echo:Thermal Model settings:
Recv: echo:  M310 I0 R12.02
Recv: echo:  M310 I1 R11.13
Recv: echo:  M310 I2 R10.24
Recv: echo:  M310 I3 R8.46
Recv: echo:  M310 I4 R8.11
Recv: echo:  M310 I5 R7.76
Recv: echo:  M310 I6 R7.40
Recv: echo:  M310 I7 R7.05
Recv: echo:  M310 I8 R6.93
Recv: echo:  M310 I9 R6.81
Recv: echo:  M310 I10 R6.69
Recv: echo:  M310 I11 R6.56
Recv: echo:  M310 I12 R6.41
Recv: echo:  M310 I13 R6.27
Recv: echo:  M310 I14 R6.12
Recv: echo:  M310 I15 R5.97
Recv: echo:  M310 P38.00 U0.0000 V1.00 C17.93 D0.0650 L2160 S0 B1 E1.74 W1.20 T-7.00
Recv: ok

More Info:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment