Welcome! Log In Create A New Profile

Advanced

Switching Toolhead Z Offsets

Posted by Klaus1207 
Switching Toolhead Z Offsets
December 04, 2022 06:42AM
Hi,

where can I set an Z offset for multi extruder machines in the firmware?

The following works for X and Y offset, but not for Z.
// Offset of the extruders (uncomment if using more than one and relying on firmware to position when changing).
// The offset has to be X=0, Y=0 for the extruder 0 hotend (default extruder).
// For the other hotends it is their distance from the extruder 0 hotend.
#define HOTEND_OFFSET_X { 0.00, -1.50, 0.00 } // (mm) relative X-offset for each nozzle
#define HOTEND_OFFSET_Y { 0.00, 3.40, 0.00 }  // (mm) relative Y-offset for each nozzle
#define HOTEND_OFFSET_Z { 0.00, 4.00, 0.00 }  // (mm) relative Z-offset for each nozzle
Z is just ignored.


So I thougt about using G-Code when a tool change happens:
/**
 * Universal tool change settings.
 * Applies to all types of extruders except where explicitly noted.
 */
#if HAS_MULTI_EXTRUDER
  // Z raise distance for tool-change, as needed for some extruders
  #define TOOLCHANGE_ZRAISE                 4 // (mm)
  //#define TOOLCHANGE_ZRAISE_BEFORE_RETRACT  // Apply raise before swap retraction (if enabled)
  //#define TOOLCHANGE_NO_RETURN              // Never return to previous position on tool-change
  #if ENABLED(TOOLCHANGE_NO_RETURN)
    //#define EVENT_GCODE_AFTER_TOOLCHANGE "G12X"   // Extra G-code to run after tool-change
  #endif
but how can I run a different G-Code depending on which tool the printer has changed to.

Would be nice if someone has an solution for my problem grinning smiley
Re: Switching Toolhead Z Offsets
December 13, 2022 11:02AM
I just upgraded to the newest marlin release built 2.1.1. Problem is still there...

I am asking myself, how did other marlin users solve thjavascript:editor_tools_handle_email()is problem?
There is this feature "switching toolhead" in marlin, but it is useless unless there is an offset compensation...

Edited 1 time(s). Last edit at 12/13/2022 11:02AM by Klaus1207.
VDX
Re: Switching Toolhead Z Offsets
December 13, 2022 12:51PM
... formy applications (dispensing, laser-engraving, camera-teach-in, ...) I've modified Marlin4Due with macros for tool changing and offset positioning ... but this won't work with common versions, as there were many more changes and added classes and GUI-modification too ...


Viktor
--------
Aufruf zum Projekt "Müll-freie Meere" - [reprap.org] -- Deutsche Facebook-Gruppe - [www.facebook.com]

Call for the project "garbage-free seas" - [reprap.org]
Sorry, only registered users may post in this forum.

Click here to login