Dual Extruder First toolchange is misaligned Following are fine



  • Hello.

    Im trying to print dual color. So i added a Y-splitter and a second extruder.
    I have setup the tool change scripts but the result is that on the first tool change on the first layer both the X and Y axis get misaligned.
    From that moment on the following toolchanges work fine on all the following layers.

    So i am trying to print 20mm Calibration Cube for Dual Extrusion
    and the result of the first few layers is: https://i.imgur.com/RcRxxY9.jpg

    So on the first layer the grey is printed first. after the toolchange the red is not offset in both axes.
    On the layers above it the toolchanges work fine and everything is aligned.
    When looking at the gcode preview everything is alligned on the first layer. there is no offset configured for the two tools in Cura.
    The Gcode can be found here

    Cura is configured to only use T0 or T1 to select a tool.
    Tfree0.g and tfree1.g contains 'M98 P"0:/macros/Multi_Extruder/Park Active Fillament"'
    which contains:

    M83 ; extruder relative positioning
    G91 ; relative positioning
    G1 E-2 X-1 Y-1 F2500 ; release some presure and move
    ;G1 Z+2 E-4 F2500 ; release even more presure
    G1 Z+2 F2500 ; release even more presure ; pressure is removed in cura
    G90 ; absolute positioning
    G1 X255 F8000 ; move to bucket
    ;G1 X30 Y170 F8000 ; move ON the waste block
    G91 ; relative positioning
    G1 Z-2 X-10 E6 F2500 ; restore filament
    G1 Y+2 F2500 ; move on position
    G1 X+11 F2500 ; move on position
    G1 Y-2 F2500 ; move on position
    
    ;↓↓↓ Cooling filament and saving filament to parking position ↓↓↓
    G91 ; relative positioning
    G1 E-6 F5000 ; stage 1 of 3 stage retraction
    G1 E3 F2500 ; stage 2 of 3 stage retraction, this keeps from producing "hair"
    G1 E-57 F5000 ; stage 3 of retraction, now cooling
    G1 X-20 E10 F1000 ; move on position
    G1 X+20 E-10 F1000 ; move on position
    G1 X-20 E10 F1000 ; move on position
    G1 X+20 E-10 F1000 ; move on position
    G1 X-20 E10 F1000 ; move on position
    G1 X+20 E-10 F1000 ; move on position
    G1 E-80 F5000 ; parking filament
    G90 ; absolute positioning
    ;↑↑↑ Cooling filament and saving filament to parking position ↑↑↑
    G92 E0 ; zero the extruded length
    G90 ; absolute positioning
    

    tpost0.g and tpost1.g contains 'M98 P"0:/macros/Multi_Extruder/Load Fillament"'
    which contains

    G91 ; relative positioning
    G1 E130 F1000 ; restore - 2mm
    G1 E15 F500 ; restore the rest (10 mm) + 5mm
    G1 Z2 ; move up to not hit print
    
    G1 E20 F200 ; Purge
    G1 E-4 F500 ; reduce pressure
    
    G90 ; absolute positioning
    G1 X230 F1000; clean nozzle on bucket brush
    G1 X255 F1000; clean nozzle on bucket brush
    G1 X230 F1000; clean nozzle on bucket brush
    G1 X255 F1000; clean nozzle on bucket brush
    
    G1 R2 X0 Y0; move back from where we came
    G1 R2 X0 Y0 Z0; Lower to previous location
    
    G92 E0 ; zero the extruded length
    

    config.g contains the following for the tools:

    ; Tools
    M563 P0 D0 H1                             ; Define tool 0
    G10 P0 X0 Y0 Z0                           ; Set tool 0 axis offsets
    G10 P0 R200 S200                          ; Set initial tool 0 active and standby temperatures to 200C
    
    M563 P1 D1 H1                             ; Define tool 1
    G10 P1 X0 Y0 Z0                           ; Set tool 1 axis offsets
    G10 P1 R200 S200                          ; Set initial tool 1 active and standby temperatures to 200C
    

    more pictures

    When i run the macros through the webinterface and print a line before and after toolchange it seems to be aligned.
    And the gcode preview is also aligned so i cant figure out what could cause this.
    Any ideas?


  • administrators

    Please clarify:

    • Which colour is T0, and which is T1?
    • Is the X axis left-right or up-down in your photo?
    • Are you certain that position X255 is reachable on your printer?
    • Is the printer Cartesian, CoreXY, Delta, or something else?
    • Do you have a Bowden tube from each input of the splitter to an extruder drive fixed to the printer frame, or some arrangement involving moving extruders?

    You could try reducing the maximum XY speeds in the M203 command in config.g or the XY accelerations in M201, in case you are getting missed steps when the nozzle goes to/from the cleaning area.



  • thank you. it had something to do with the X255 being just to far. i didnt think about it at all so thanks for the thought!


 

Looks like your connection to Duet3D was lost, please wait while we try to reconnect.