It automates the dropping of the extruder to the centre of the heated bed, and then out to each upright - placing the corresponding delta arms almost vertical.
You can then eyeball (at first) the adjustments needed for each endstop, once you get close - you can then adjust the Z value closer to zero and use paper.
For the early iterations, use a Z value of about 5mm (Default in the code below), otherwise you might drive the extruder into the bed with this script as it move out from the bed.
[*] If the extruder lowers as it travels out, you'll need to put the head of the limit screw downwards (Clock-wise)
[*] If the extruder lifts as it travels out, you'll need to put the head of the limit screw upwards (Anti-clockwise)
The code is saved in Repetitiers' "G-Coce Editor" as one of the numbered scripts.
Just copy it from here and paste in the window and save.
You can run it from the "Printer" menu option by selecting "Send Script x" while connected to your Rostock.
Code: Select all
; README: This is written for a Rostock Max with an Onyx bed.
; If you have the smaller square beds the extruder
; head will be off the side of your bed when it moves to the pillars!
; WARNING:Make sure you have your Z0 set and stepper directions set correctly otherwise
; you might crash the extruder into the bed or the sliders into the ceiling
; SCROLL DOWN to EDIT the lowest height you go to - be conservative in the beginning!
G28 ; Home all axes
; ----------------------------------------------------------------------------
; Fun with steppers...
M1 S3
G91 ; Use relative positioning
G1 Z-3.27 F392
G1 Z-3.67 F440
G1 Z-2.91 F349.22
G1 Z-1.46 F174.62
G1 Z-4.36 F261.62
M1 S1
G1 Z-0.69 F82.41
M1 P15
G1 Z-0.39 F82.41
M1 P5
G1 Z-0.39 F82.41
M114
M1 S3
G90 ; Use absolute positioning
; ----------------------------------------------------------------------------
; Now onto calibration help.
G01 X0 Y0 Z20 F9000 ; Fast drop to centre of bed (~20mm off)
G01 F500 ; Slow moves from now on
; DANGER make sure this won't crash the extruder DANGER
; I suggest starting with Z5 and eyeballing it the first time, then reducing the value.
; ------> EDIT CALIBRATION HEIGHT BY ADJUSTING THE Z PARAMETER <----------
G01 Z5 ; Drop closer to bed (~5mm)
M1 S10 ; Pause ten seconds
G01 X-103.92 Y-60 ; Go towards X pillar (X delta arms will be near vertical)
M1 S10 ; Pause ten seconds
G01 X0 Y0 ; Centre carriage
M1 S3 ; Pause three seconds
G01 X103.92 Y-60 ; Go towards Y pillar
M1 S10 ; Pause ten seconds
G01 X0 Y0 ; Centre carriage
M1 S3 ; Pause three seconds
G01 X0 Y120 ; Go towards Z pillar
M1 S10 ; Pause ten seconds
G01 X0 Y0 ; Centre carriage
M1 S3 ; Pause three seconds
G01 X0 Y0 Z20 F9000 ; Raise carriage for adjustment of end stops
M1 S20 ; Pause twenty seconds
M84 ; Stop idle hold (Releases steppers)