Somehow I came across strange things, here are my examples
Trigger 2 is triggered permanently
Trigger 1 is confirmed with a finger
Loop does not work:
G28 X Y
G0 X10 Y200 F1000
M400
M18 X Y
M400
while sensors.endstops[2].triggered ; == false
;echo "sensor wakü", sensors.endstops[2].triggered
; M291 P"TEST1234" R"TEST" S2
if sensors.endstops[1].triggered
abort "TEST abort"
echo "ENDE"
The loop works with the following code:
G28 X Y
G0 X10 Y200 F1000
M400
M18 X Y
M400
while sensors.endstops[2].triggered ; == false
;echo "sensor wakü", sensors.endstops[2].triggered
; M291 P"TEST1234" R"TEST" S2
if sensors.endstops[1].triggered
abort "TEST abort"
M400
echo "ENDE"
But the abort function does not work, the printing is not canceled
With this code the abort function works
G28 X Y
G0 X10 Y200 F1000
M400
M18 X Y
M400
while sensors.endstops[2].triggered ; == false
;echo "sensor wakü", sensors.endstops[2].triggered
; M291 P"TEST1234" R"TEST" S2
if sensors.endstops[1].triggered
break
M400
if sensors.endstops[1].triggered
abort "TEST abort"
The abort function only seems to work if it is at the very end of the file.
(Also works in a macro as soon as it is at the end of the macro)
Could someone test this on their Duet?