Expansion Board Independent Z Axis Endstops
-
Ola everyone,
I've got a question about using expansion boards and M574 Axis levelling using endstops.
My machine uses one 6HC main board and three 3HC expansion boards, ideally two Z endstops (lower limit) and two Y endstops attached to two of the three 3HC expansion boards.
; Drives ;Y Lower Left M569 P1.0 S0 ; physical drive 1.0 goes (right Y motor) forwards Y1 ;Y Lower Right M569 P2.1 S1 ; physical drive 2.1 goes (left Y motor) forwards Y2 ;Y Upper Left M569 P1.1 S1 ;Y Upper Right M569 P2.0 S0 ;Z Left M569 P1.2 S1 ; physical drive 1.2 (right) goes forwards Z1 ;Z Right M569 P2.2 S1 ; physical drive 2.2 (left) goes forwards Z1 ;M569 P0.4 S0 ; physical drive 0.2 goes forwards U ;X M569 P3.0 S0 ; physical drive 3.0 goes forwards X1
Is my Drives code and -
; Endstops M574 X1 S1 P"!3.io0.in" ; configure active-high endstop for low end on X via pin 1.io0.in M574 Y1 S1 P"!io0.in" ; configure active-high endstop for low end on Y via pin io0.in M574 Z1 S1 P"!1.io0.in" ;M574 Z1 S1 P"!1.io0.in+!2.io0.in" ; configure active-high endstops for low end on Z via pins zstop and e1stop ;M574 Z1 S1 P"!2.io0.in" ; configure Z active-high endstop for low end pin 1.io1.in
Is my Endstops code.
At the moment I've got the axis levelling line inactive because I'm unable to get this working and wanted to see if the endstops need to be connected to the main board (or the same expansion?) or do both the drives and the associated endstops need to be connected to the same board (all on one expansion or all on the main board)
Thanks
Nate
-
@madeinta1wan endstops connected to the mainboard can now control motors connected to expansion boards, but I’m not sure it’s ever been asked for the other way around, so I suspect this is a limitation of the firmware. It is not on the list here https://docs.duet3d.com/en/User_manual/RepRapFirmware/CAN_limitations so probably a question for @dc42.
Ian
-
@madeinta1wan the drives and the endstops do not need to be connected to the same board.
-
Thanks @droftarts
I'm guessing it's an uncommon setup as you say, in this case it's two expansion boards each with a Y motor and a Z motor and a corresponding endstop.