
There are two files here, the first alignment discovery code is designed to run the dial indicator across the bed in a grid and then a diagonal pattern to allow you to discover dips and rises in your print bed. To use, copy the contents below to file named alignment_discovery_code.gcode and save it on to a memory card an insert into the Creality CR-10 print, select change card, then print from card selecting the alignment_discovery_code.gcode and press in the selector knob to start the run. (scroll down for the align code file)
Also, if you are looking for a Dial Indicator with the Creality CR-10 Mount here are some economical dial indicators such as this one amzn.to/2ttaAGr for less than $15 bucks or a digital version such as this amzn.to/2ttaIWr for only $25 bucks. Also you can use a metal 1/4-20 (~6mm) sized nut and bolt combo however I like using nylon nuts/bolts such as this amzn.to/2saaeRh just to lighten things.
;-------------------------------------------------- ;developed by https://www.diy3dtech.com ;June 30th 2017 ;released under creative commons licensing ;use at your own risk no warranties made or implied ;version for Creality CR-10 3D printer ;alignment discovery code ;-------------------------------------------------- ;M190 S00.000000 ;set bed temp to 60d/c ;M109 S00.000000 ;set hotend to 210d/c G21 ;metric values G90 ;absolute positioning M82 ;set extruder to absolute mode M107 ;set fan off G28 X0 Y0 ;move X/Y to min endstops G28 Z0 ;move Z to min endstops G1 Z30.0 F9000 ;move platform to clear indicator G92 E0 ;zero the extruded length G92 E0 ;zero the extruded length again G1 F9000 ;Put test message on screen M117 Testing... M107 ;set fan off G0 Z75.00 ;move hotend up to install indicator G4 P20000 ;allow 20 seconds to install before starting ;-start linear motion test G0 F3500 X30.000 Y65.00 Z10.000 M117 Set Dial to Zero G4 P20000 ;allow 20 seconds to set dial to zero G1 X30.000 Y300.000 G1 X40.000 Y300.000 G1 X40.000 Y65.000 G1 X50.000 Y65.000 G1 X50.000 Y300.000 G1 X60.000 Y300.000 G1 X60.000 Y65.000 G1 X70.000 Y65.000 G1 X70.000 Y300.000 G1 X80.000 Y300.000 G1 X80.000 Y65.000 G1 X90.000 Y65.000 G1 X90.000 Y300.000 G1 X100.000 Y300.000 G1 X100.000 Y65.000 G1 X110.000 Y65.000 G1 X110.000 Y300.000 G1 X120.000 Y300.000 G1 X120.000 Y65.000 G1 X130.000 Y65.000 G1 X130.000 Y300.000 G1 X140.000 Y300.000 G1 X140.000 Y65.000 G1 X150.000 Y65.000 G1 X150.000 Y300.000 G1 X160.000 Y300.000 G1 X160.000 Y65.000 G1 X170.000 Y65.000 G1 X170.000 Y300.000 G1 X180.000 Y300.000 G1 X180.000 Y65.000 G1 X190.000 Y65.000 G1 X190.000 Y300.000 G1 X200.000 Y300.000 G1 X200.000 Y65.000 G1 X210.000 Y65.000 G1 X210.000 Y300.000 G1 X220.000 Y300.000 G1 X220.000 Y65.000 G1 X230.000 Y65.000 G1 X230.000 Y300.000 G1 X240.000 Y300.000 G1 X240.000 Y65.000 G1 X250.000 Y65.000 G1 X250.000 Y300.000 G1 X260.000 Y300.000 G1 X260.000 Y65.000 G1 X270.000 Y65.000 G1 X270.000 Y300.000 G1 X280.000 Y300.000 G1 X280.000 Y65.000 G1 X290.000 Y65.000 G1 X290.000 Y300.000 ;-end linear motion test ;-start diagonal motion test G1 X30.000 Y65.000 G1 X30.000 Y300.000 G1 X290.000 Y65.000 X30.000 Y65.000 ;-end diagonal motion test M107 G0 F9000 X30 Y60 Z75 ;End GCode M104 S0 ;extruder heater off M140 S0 ;heated bed heater off (if you have it) M84 ;steppers off G90 ;absolute positioning
To use this file, copy the contents to a test file and name it alignment_code.gcode and save to the printers memory card, then select change memory card, followed by print from memory card selecting alignment_code.gcode and pressing the select knob to start the job. The printer will then start to run the job in a diagonal pattern allowing you 20 seconds at each stop to ajust the bed screws. Note us this at your own risk as the printer will start back in motion after 20 second so be sure your fingers are clear and again use of this is at YOUR own risk.
;-------------------------------------------------- ;developed by https://www.diy3dtech.com ;June 30th 2017 ;released under creative commons licensing ;use at your own risk no warranties made or implied ;version for Creality CR-10 3D printer ;alignment code ;-------------------------------------------------- ;M190 S00.000000 ;set bed temp to 60d/c ;M109 S00.000000 ;set hotend to 210d/c G21 ;metric values G90 ;absolute positioning M82 ;set extruder to absolute mode M107 ;set fan off G28 X0 Y0 ;move X/Y to min endstops G28 Z0 ;move Z to min endstops G1 Z30.0 F9000 ;move platform to clear indicator G92 E0 ;zero the extruded length G92 E0 ;zero the extruded length again G1 F9000 ;Put test message on screen M117 Use at your own risk M107 ;set fan off G0 Z75.00 ;move hotend up to install indicator G4 P20000 ;allow 20 seconds to install before starting ;-start alignment run G0 F3500 X30.000 Y65.00 Z10.000 M117 Set Dial to Zero G4 P20000 ;allow 20 seconds to set dial to zero G1 X295.000 Y300.000 G4 P10000 G1 X290.000 Y65.000 G4 P10000 G1 X30.000 Y300.000 G4 P10000 G1 X30.000 Y65.000 ;-end alignment run M107 G0 F9000 X30 Y40 Z50 ;End GCode M104 S0 ;extruder heater off M140 S0 ;heated bed heater off (if you have it) G91 ;relative positioning M84 ;steppers off G90 ;absolute positioning