@dc42 thanks. After some tentative I think I understood the logic. It's working fine for my double motors for the Y axis (see at the end of the post the new config.g), but I still have problems for the Z axis.
other tests I did:
- with M119 I tried with only Z1 sensor activated, only Z2, only Z3, all together. I get Z: at min stop only when Z1 is activated, and when all sensors are activated (but of course in this case also Z1 is activated)
- leds in the duex board are working fine, if I activate a sensor I see the led changing status
- the only difference between Z1 sensor is that this is connected to the duet board, while Z2 and Z3 sensors are connected to E2 endstop and E3 endstop of duex
- I'm using optic sensors for all axes
I tried to launch the Object Model Browser in DWC but it is returning all empty. See here:
M409
{
"key": "",
"flags": "",
"result": {
"boards": [
{}
],
"directories": {},
"fans": [
{},
{},
{},
{}
],
"global": {},
"heat": {},
"inputs": [
{},
{},
{},
{},
{},
{},
{},
{},
null,
{},
null,
{}
],
"job": {},
"limits": {},
"move": {},
"network": {},
"scanner": {},
"sensors": {},
"seqs": {},
"spindles": [
{},
{},
{},
{}
],
"state": {},
"tools": [
{},
{}
],
"volumes": [
{},
{}
]
}
}
Here the new config.g
; Drives
M569 P0 S0 ; physical drive 0 goes backwards(X1) (X)
M569 P1 S0 ; physical drive 1 goes backwards(Y1) (Y)
M569 P2 S1 ; physical drive 2 goes forwards (Z1) (Z)
M569 P3 S0 ; physical drive 3 goes backwards(E1)
M569 P4 S0 ; physical drive 4 goes backwards(E2)
M569 P5 S1 ; physical drive 5 goes forwards (X2) (U)
M569 P6 S1 ; physical drive 6 goes forwards (Y2) (V)
M569 P7 S1 ; physical drive 7 goes forwards (Z2) (W)
M569 P8 S1 ; physical drive 8 goes forwards (Z3) (A)
M584 X0 Y1:6 Z2:7:8 U5 E3:4 P4 ; set drive mapping (number of visible drivers P)
M350 X16 Y16:16 Z16:16:16 U16 V16 I1 ; configure microstepping with interpolation for axis
M350 E8:8 IO ; configure microstepping with no interpolation with extruders
M92 X200.00 Y200.00 Z4260.00 U200.00 E1900.00:1900.00 ; set steps per mm
M566 X1000.00 Y1000.00 Z10.00 U1000.00 E6.00:6.00 ; set maximum instantaneous speed changes (mm/min)
M203 X12000.00 Y12000.00 Z500.00 U12000.00 E2400.00:2400.00 ; set maximum speeds (mm/min)
M201 X1500.00 Y1500.00 Z20.00 U1500.00 E120.00:120.00 ; set accelerations (mm/s^2)
M906 X800 Y800 Z800 U800 E400:400 I30 ; set motor currents (mA) and motor idle factor in per cent
M84 S30 ; Set idle timeout
; Axis Limits
M208 X0 Y0 Z0 U-23 S1 ; set axis minima
M208 X321 Y308 Z275 U298 S0 ; set axis maxima
; Endstops
M574 X1 S1 P"xstop"
M574 Y1 S1 P"ystop+e1stop"
M574 U1 S1 P"e0stop"
M574 Z1 S1 P"zstop+exp.4+exp.9" ; set endstops for Z (zstop), W (exp.4), A (exp.9)