@tracar said in BL-Touch and two endstop switches:
G1 H1 Z-905 F400 ; home Z axis
G1 Z5 F800 ; go back a few mm
G1 H1 Z-905 F100 ; move slowly to Z axis endstop (second pass)
G90 ; absolute positioning
G92 Z0 ; set Z position to axis minimum (you may want to adjust this)
G91 ; relative positioning
G1 Z10 F800 ; lift Z relative to current position
G90 ; absolute positioning
You're using the commands to home Z using an endstop here. You should be using G30 to call for a Z probe move. Position the probe with a G1 X Y move first.
See the examples here: https://duet3d.dozuki.com/Wiki/ConfiguringRepRapFirmwareCartesianPrinter#Section_Homing_Z
If you have further questions, please start a new thread.