@Martin_S:
Hi Morten, best of luck with this setup.
Let us know if you made any progress.
Subscribed, I'm also interested.
Wahh, found out what was wrong.. AFTER I spend a day rewiring to move all Extruderst to the Duex5 and so had to solder in extensions to the wires etc…
As I had been using the Z driver to drive both motors at first, I had removed the jumpers back in january.. I thought nothing off it as Ramps doesn't populate the pins when not in use... and I hadn't noticed it either... untill I for the 100th time looked over the diagram to check up on drive numbers and noticed the "jumpers" written on the diagram if you only use 1 Z motor.
After I put in the jumpers everything works perfectly.
I am going to write a blogpost about it, but for now:
My Config.g and homez.g is as follows
Description:
My XY for CoreXY AB. All 5 extruders on Duex5 and the 2 Z-drivers on Z and Ex0
[h]Config.g[/h]
[[language]]
; Define Drives
; Physical Drive conention
M569 P0 S1 ; Drive 0 A
M569 P1 S0 ; Drive 1 B
M569 P2 S0 ; Left z-motor (original Z)
M569 P3 S0 ; Right z-motor (Ex0)
; M569 P4 S0 ; EX1 - unused
M569 P5 S0 ; Extruder0 - Physical Tool 0
M569 P6 S0 ; Extruder1 - Physical Tool 1
M569 P7 S0 ; Extruder2 - Physical Tool 2
M569 P8 S0 ; Extruder3 - Physical Tool 3
M569 P9 S0 ; Extruder4 - Physical Tool 4
; Motor remapping for dual Z
M584 X0 Y1 Z2:3 U3 E5:6:7:8:9 P3 ; Driver 0 For X, 1 for Y, Z=2:3 U=3, Extruder 5-9 - P3 is number of visible axes XYZ = U is hidden
; Configure Drives
M350 X16 Y16 Z16:16 U16 E16:16:16:16:16 I1 ; Configure microstepping with interpolation
M92 X160 Y160 Z800:800 U800 ; Steps per mm for XY and Z2:3 +U3
M92 E1025:1025:1025:1025:1025 ; Set steps per mm for 5x physical Extruders
M566 X900 Y900 Z12:12 U12 E120:120:120:120:120 ; Maximum instantaneous speed changes (mm/min)
M203 X12000 Y12000 Z1000:1000 U1000 E3000:3000:3000:3000:3000 ; Maximum speeds (mm/min)
M201 X500 Y500 Z250:250 U250 E250:250:250:250:250 ; Accelerations (mm/s^2)
M906 X1000 Y1000 Z800:800 U800 I0 ; Motor currents (mA) and motor idle factor % for XYZ
M906 E1000:1000:1000:1000:1000 I50 ; Motor currents (mA) and ide factor % for Extruder motors
M84 S30 ; Set idle timeout
[h]Homez.g[/h]
[[language]]
G91 ; Relative mode
M584 Z2 ; Split Z into 2 (Z+U)
G1 Z250 U250 F2000 S1 ; Move up to 250mm in the +Z direction. Stop if endstop is triggered
G1 Z-3 U-3 F600 S2 ; Move 2mm in the -Z direction - S2 = If containing axis letters: offset will be added to the pause coordinates
G1 Z3 U3 F100 S1 ; Move slowly 5mm in the +Z direction, stopping at the homing switch
M584 Z2:3 ; Join U to Z again - Driver 8+9
G1 Z-5 F3000 ; Move back again 5mm in the -Z direction
G90 ; Back to absolute mode
Huge thanks to Stian Indal for paving the way with his original post over on the E3D-online forum
https://forum.e3d-online.com/index.php?threads/bigbox-dual-optical-z-max-endstops.2675/#post-29578