Jubilee tool changer knobprobe macro
-
Would somebody be willing to share a macro to determine tool height offset with a knobprobe (https://www.printables.com/model/120147) on a jubilee tool changer please? I just can't get it right.
-
@jens55 if no one else has one already, please post how far you have got and we can possibly help.
-
@T3P3Tony, thanks for chiming in. I have managed to figure out what is happening and have a working macro with the exception of an unnecessary tilt correction as per my other thread.
-
@jens55 ahh ok thanks for confirming!. In that case please.post it here for others!
-
@T3P3Tony, as per request:
; This macro determines z height offset for a given tool with the help of an external height probe (knobprobe)
; based on https://www.printables.com/model/120147-knobprobe-z-offset-probe-between-z-probe-and-nozzl
; It uses the center of a 300 x 300 mm bed as the probe position, the knoobprobe is connected to io8.in and ground (on io8)
; it is meant for a Jubilee tool changer, each tool has it's own macroT-1 ; Make sure no tool is active / loaded
M561 ; Disable any Mesh Bed Compensation
G0 X150 Y150 Z85 ; Move to the center of the bed and down enough to clear probeM291 P"Connect height probe to IO 8, adjust z and place probe under Z limit switch, Nozzle should be below printing temp to avoid oozing and clean" S2
M291 P"Warning !!!! Do not run this unless the probe is connected and filament is loaded (to avoid error)" S2G30 ; Probe once, set z=0 this probe run measures the height setter position with the carriage z probe
M558 P8 C"io8.in" F60 H5 ; Set up height probe as active Z probe ... Probe connected to IO8.in, Feedrate 60, Probe Hight 5mm.
G31 Z0 ; Set probe trigger height as 0 because it activates when touching the probe (config.g previously set trigger height to -2)
; note that this only sets the trigger height of the probe but doesn't do anything else. When probe gets triggered the printer knows it is at z=0;Height probe is active but no tool loaded yet
; ---------------- Fourth Tool ----------------
G0 Z5 ; Go 5mm over probe. ; give another 5 mm of clearance
T3 ; Load fourth tool.; set tool offset to -1, we were at z=5 .... z offset ????? ... original reason unknown
G10 P3 Z-1 ; Reset tool Z offsetG0 x150 y150 ; Go to the center of the bed with the tool, center it over height probe
; height probe is active, tool is loaded and nozzle is over the tool setter
; we have the z=0 position measured from the tool height gauge top via carriage z switch
; must now measure nozzle tip with height gaugeG30 S-2 ; Probe the bed at the current XY position. When the probe is triggered, adjust the Z offset of the current tool to make the current position Z=0.
; tool offset is now in the system but must still be made permanent with M500
G0 Z5 ; increase Z clearance for safety
G10 P3 ; Print out the offsets for operator to seeM500 ; Save offsets in default config-override.g
;
; ---------------- Final Check ----------------T-1 ; Unload tools in order to re-check if tool height gauge is still at same height as when we started
; unloading tool also makes sure that height probe is under z carriage switch as it resets all offsets
M558 P8 C"io1.in" H3 F360 T6000 ; Return carriage Z probe as active probe again H = dive height F probe speed T travel speed .... from config.g
g31 z-2 ; reset trigger point as it is in config.gG0 X150 Y150 F24000 ; Move to the center of the bed
; carriage z probe is active again, tool has been unloaded
;M118 S"If the last height is not -1 as stated by probe height then the probe bed has moved during nozzle probes." .... note: -2 and NOT -1
G30 S-1 ; Probe the bed at the current XY position. When the probe is triggered, do not adjust the Z coordinate, just report the machine height at which the probe was triggered.
G0 Z5 ; increase Z height for safety
M291 P"Remove the height probe from bed" S2
G29 S1 ; re-load the mesh bed
G28 Z ; re-do z zero .... must have height probe removed from bed; G28 Z does an unnecessary tilt correction as done in the regular homez.g macro
Note that the two M558 lines need to be adjusted for the particular printer in use
-
@jens55 thanks!