Skip to content

Instantly share code, notes, and snippets.

@gschora
Last active February 3, 2017 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gschora/5c1835d76b2234b1d4ff12673ad78b4d to your computer and use it in GitHub Desktop.
Save gschora/5c1835d76b2234b1d4ff12673ad78b4d to your computer and use it in GitHub Desktop.
useful gcodes duet wifi
Useful gcodes
M302 P[0|1] ; Allow cold extrusion
M303 H1 P0.4 S240 ; PID tune heater 1 using 40% PWM, quit if temperature exceeds 240C
M106 P1 S127 ; Fan On Sxxx speed 0-255
G1 E100 F1500 ; move extruder
G92 Z0 ; set Z=0 - move head down to bed and set the new z=0
how to set z-height bevore print
-------------
1. heat everything to print temp
2. run this script (best to include in slicer start script):
G28 ; home
G1 X0 Y0 Z10 F5000 ; center everything 10mm above bed
G30 ; probe bed, set height
g1 Z5 ; hover 5mm over bed
DONT'T HOME!!!! Because then the height will be DELETED!
to adjust the height change
G31 X0 Y0 Z-0.6 ;
then run M500 to save it in config-override!!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment