thank you @dc42 and @nhof, problem solved. i have changed from ...M574 X1 Y2 Z1 S1 ; Set active high endstops to ...M574 X1 Y1 Z1 S1 ; Set active high endstops i'm really happy