Skip to content

Instantly share code, notes, and snippets.

@niktekusho
Created May 19, 2018 09:28
Show Gist options
  • Save niktekusho/22716e42b37d0d8f871cfc461e815435 to your computer and use it in GitHub Desktop.
Save niktekusho/22716e42b37d0d8f871cfc461e815435 to your computer and use it in GitHub Desktop.
CR-10 bed leveling script when using Ikea LOTS mirror (30x30)
;Rev 1.0 Initial Release For Cr-10
;All the "orientations" here are based off of the printer facing you with the extruder closest to you and the Z axis on the left
M300 S2000 P1000 ;Make buzzer sound to notify of the beginning of the leveling process "S" is the frequency of the buzzer "P" is duration in milliseconds
M117 Starting. ;Show message on screen
G4S5 ;Wait for 5 seconds, mostly so it gives you some time to acknowledge it
M117 Front left corner. ;Show message on screen
G1 Y020 X020 ; Move the head 10mm from the home position to the left
G0 Z0 ; Move the head down
G4 S20 ;Wait at that position for 20 seconds
M300 S2000 P1000 ;Warns you about there only being 10 seconds left to level your bed
G4 S10 ;Waits the remaining 10 seconds
M117 Front right corner. ;Show message on screen
G1 Z10 ;Move the Z axis 20 mm up
G0 Y020 X280 ; Move to the front right corner - 10mm
G0 Z0 ;Move the Z axis to the "Home" position
G4 S20 ;Wait at that position for 20 seconds
M300 S2000 P1000 ;Warns you about there only being 10 seconds left to level your bed
G4 S10 ;Waits the remaining 10 seconds
M117 Rear right corner. ;Show message on screen
G1 Z10 ;Move the Z axis 20 mm up
G0 Y280 X280 ; Move to the rear right corner - 10mm
G0 Z0 ;Move the Z axis to the "Home" position
G4 S20 ;Wait at that position for 20 seconds
M300 S2000 P1000 ;Warns you about there only being 10 seconds left to level your bed
G4 S10 ;Waits the remaining 10 seconds
M117 Rear left corner. ;Show message on screen
G1 Z10 ;Move the Z axis 20 mm up
G0 Y280 X020 ; Move to the left rear corner - 10mm
G0 Z0 ;Move the Z axis to the "Home" position
G4 S20 ;Wait at that position for 20 seconds
M300 S2000 P1000 ;Warns you about there only being 10 seconds left to level your bed
G4 S10 ;Waits the remaining 10 seconds
M117 Center. ;Show message on screen
G1 Z10 ;Move the Z axis 20 mm up
G0 Y150 X150 ;Move to the center
G0 Z0 ;Move the Z axis to the "Home" position
G4 S5 ;Wait at that position for 5 seconds
M300 S2000 P1000 ;Warns you about there only being 5 seconds left to check the level at the center
G4 S5 ;Waits the remaining 5 seconds
M117 Front left corner. ;Show message on screen
G1 Z10 ;Move the Z axis 10 mm up
G28 ;Moves home
M117 Done. ;Show message on screen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment