Dual Motor, Dual Endstop for Y Axis
-
I have two steppers running my Y Axis.
each one has its own Endstopusing Y and E1 for the driver
and Y endstop and E1 endstopHow do I configure the 2nd Y Motor to use E1 endstop?
also need to config Y homing somehow lol; Drives
M569 P0 S0 ; X Motor physical drive 0 goes backwards previously P0
M569 P1 S0 ; Y Motor
M569 P2 S1 ; Z physical drive 2 goes backwards
M569 P3 S1 ; E0 Extruder physical drive 3 goes Forwards
M569 P4 S1 ; 2nd Y Motor on E1 Driver
M584 X0 Y1:4 Z2 E3 ; set drive mapping , Y is on two drivers. E1 as well
M350 X16 Y32 Z16 I0 ; configure microstepping without interpolation, previously 32
M350 E16 I1 ; configure microstepping with interpolation
M92 X80 Y80 Z320 E409 ; set steps per mm
M566 X700 Y700 Z20 E1600 ; Set maximum instantaneous speed changes (mm/min) JERK
M203 X12000 Y12000 Z1500 E10000 ; Set maximum speeds (mm/min)
M201 X2500 Y2500 Z250 E5000 ; Set accelerations (mm/s^2)
M204 P1000 T3000 ; Set printing and travel accelerations
M906 X2000 Y1500 Z1700 E1300 I30 ; Set motor currents (mA) and motor idle factor in per cent X1800 Y1800 Z1500
M84 S30 ; Set idle timeout
M572 D0 S0.0125 ; Pressure Advance ; Set idle timeout; Axis Limits
M208 X-10 Y-22 Z0 S1 ; set axis minima
M208 X305 Y265 Z300 S0 ; set axis maxima; Endstops
M574 X1 S1 P"!xstop" ; X min active high endstop switch
M574 Y1 S1 P"!ystop" ; Y min active high endstop switch
M574 Z1 S1 P"!Zstop" ; Z min active high endstop switch
M574 U1 S1 P"!e1stop" ; 2nd Y (on E1 driver) min active high endstop switch -
This post is deleted! -
@adamfilip said in Dual Motor, Dual Endstop for Y Axis:
I have two steppers running my Y Axis.
each one has its own Endstopusing Y and E1 for the driver
and Y endstop and E1 endstopHow do I configure the 2nd Y Motor to use E1 endstop?
also need to config Y homing somehow lolSee below:
M574 Y1 S1 P"!ystop + !e1stop"
The homing code doesn't change - the firmware handles the two steppers and the associated endstops by itself.
Frederick
-
@fcwilt
how does it know Which endstop corresponds to which stepper?If Y1 hits endstop before Y2, Y2 should keep going until it also hits its own endstop to square the gantry
-
@adamfilip said in Dual Motor, Dual Endstop for Y Axis:
@fcwilt
how does it know Which endstop corresponds to which stepper?If Y1 hits endstop before Y2, Y2 should keep going until it also hits its own endstop to square the gantry
The endstops are associated to the steppers in the order they appear in the commands. First endstop in the M574 to the first Y stepper in the M584 and so forth.
Frederick