Linear Rail for Euclid Probe
-
I am hoping to use a linear rail to mount the Euclid probe dock so it doesn't impact the build area.
-
Here is the part of config.g which creates the U axis:
; motor direction - drive (P), direction (S1 = normal, S0 = reverse) M569 P0 S1 ; drive 0 - normal - X M569 P1 S0 ; drive 1 - reverse - YL M569 P2 S1 ; drive 2 - normal - YR M569 P3 S0 ; drive 3 - reverse - E M569 P4 S1 ; drive 4 - normal - U M569 P5 S0 ; drive 5 - reverse - Z M569 P6 S1 ; drive 6 - normal - spare M569 P7 S1 ; drive 7 - normal - spare M569 P8 S1 ; drive 8 - normal - spare M569 P9 S1 ; drive 9 - normal - spare ; motor assignment M584 X0 Y1:2 Z5 U4 E3 ; motor performance settings ; U (mini linear guide) M92 U3200 ; steps per mm (3200 for 1mm lead) M203 U1200 ; max speed (mm/min) (max 40 mm/s or 2400 mm/min) M566 U900 ; max instant speed change (jerk) (mm/min) (defaults 900) M201 U500 ; acceleration (mm/s^2) (defaults 500) M906 U480 ; motor current (mA) (rating 600 mA)
Here is the code to mount and unmount the probe:
; --- setup to mount probe --- G90 ; absolute moves ; --- check if bed is clear of dock - move if needed ; the global variable holds the required Z position and was determined by testing if move.axes[2].machinePosition < global.g_probe_clearance G1 Z{global.g_probe_clearance} F9999 ; --- pre-pickup positioning G1 U0 F1200 ; retract dock (it should already be retracted) G1 Y100 F6000 ; move Y to pre-pickup position G1 X150 F6000 ; move X to line up with dock G1 U50 F1200 ; extend dock ; --- mount --- G1 Y133 F6000 ; move Y over dock thus picking up probe G1 X100 F6000 ; move X away from dock carrying probe ; --- post-pickup positioning G1 U0 F1200 ; retract dock
; --- setup to unmount probe --- G90 ; absolute moves ; --- be sure bed is clear of dock --- if move.axes[2].machinePosition < global.g_probe_clearance G1 Z{global.g_probe_clearance} F9999 ; --- pre-dropoff positioning --- G1 U0 F1200 ; retract dock (it should already be retracted) G1 X100 F6000 ; move X to pre-dropoff positon G1 Y133 F6000 ; move Y to line up with dock G1 U50 F1200 ; extend dock ; --- unmount --- G1 X150 F6000 ; move X over dock putting probe in dock G1 Y100 F6000 ; move Y away from dock leaving probe in dock ; --- post-dropoff positioning --- G1 U0 F1200 ; retract dock
Of course the code I've shown for mounting/unmounting depends entirely on where the mini-linear rail is mounted on the printer frame, how the probe dock is mounted to the linear rail, the dimensions of the probe dock, etc.
Also the code does not have any testing to determine if the probe is already mounted or not. The probe I have does not provide a fool-proof way to determine it's state. You could use a global variable to track which bit of code was last executed but it would not be a sure thing.
Frederick
-
@fcwilt THANK YOU!
@JohnDStrand have you seen fcwilt's most excellent video of his system?