Skip to content

Instantly share code, notes, and snippets.

@tillsc
Last active November 21, 2022 20:59
Show Gist options
  • Save tillsc/27a8d677ed62265ddfb4aaa1df010050 to your computer and use it in GitHub Desktop.
Save tillsc/27a8d677ed62265ddfb4aaa1df010050 to your computer and use it in GitHub Desktop.
GCodes for Sidewinder X1
M42 P4 S255 ; led green
M42 P5 S50 ; led red
M42 P6 S50 ; led blue
M104 S0 ; nozzle heater off
M140 S0 ; bed heater off
G92 E1 ; relative positioning mode
G1 E-1 F300 ; Retract the filament
G28 X ; Home the X axis
G0 Y280 F600 ; Bring the bed to the front for easy print removal
M84 ; Motors off
G28 ; home all axes
M42 P4 S0 ; turn off the light
M42 P5 S0 ; turn off the light
M42 P6 S0 ; turn off the light
M117 Purge extruder
G92 E0 ; reset extruder
G1 Z1.0 F3000 ; move z up little to prevent scratching of surface
G1 X2 Y20 Z0.3 F5000.0 ; move to start-line position
G1 X2 Y200.0 Z0.3 F1500.0 E15 ; draw 1st line
G1 X2 Y200.0 Z0.4 F5000.0 ; move to side a little
G1 X2 Y20 Z0.4 F1500.0 E30 ; draw 2nd line
G92 E0 ; reset extruder
G1 Z1.0 F3000 ; move z up little to prevent scratching of surface
@hacheraw
Copy link

hacheraw commented Jan 29, 2021

This line is not "moving to side a little". It's moving UP

@chili-bean
Copy link

This line is not "moving to side a little". It's moving UP

Thank you! New guy here trying to figure out why this was 'moving to the side'.

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