Thank for your interet for helping me.
I just changed H1 to H2.
By your explanation, I understand what H2 is doing.
But that doesn't solve one of my problems.
; The X and Y axes cannot move: example G1 X-30 Y-30. Nothing is moving here?
; I suspect M208. I reversed the values, but it doesn't work better?
; M208 X-280: 0 Y-347: 0 Z0: 137 ; G1 X-30 Y-30. Nothing is moving here?
; or
; M208 X0: 280 Y0: 347 Z0: 137 ; G1 X-30 Y-30. Nothing is moving here?
; M208 X0: 280 Y0: 347 Z0: 137 ; I think this is the good way, but nothing work?
;=============================================================
;homex.g
G91 ; Relative
G21 ; Units to mm
G1 Z20 H2 F500 ; Zup (protect break bit) H2 is to allow movement before the axis is homed.
G1 X-300 H1 F1800 ; Move to LSW X & stop
G1 X5 F300 ; Go back for ajuste more precisely X at LSW
G1 X-10 H1 F300 ; Move to LSW X & stop
G1 Z-20 H2 F500 ; Zdn
;G92 X0 ; Don't need, because min M208 set the axis position when the endstop is triggered (click)
G90 ; Absolute
;=============================================================
; homey.g
G91 ; Relative
G21 ; Units to mm
G1 Z20 H2 F500 ; Zup (protect break bit) H2 is to allow movement before the axis is homed.
G1 Y-360 H1 F1800 ; Move to LSW Y & stop
G1 Y5 F300 ; Go back for ajuste more precisely Y at LSW (Y5 & Y-10)
G1 Y-10 H1 F300 ; Move to LSW Y & stop
G1 Z-20 H2 F500 ; Zdn
;G92 Y0 ; Don't need, because min M208 set the axis position when the endstop is triggered (click)
G90 ; Absolute