Well that's embarrassing... exchange the Z value between Z max and min and it worked... thanks @deckingman and @Phaedrux !
Well I guess that's a good thing I don't have this file @bearer
here are the homming files :
; homeall.g
; called to home all axes
;
; generated by RepRapFirmware Configuration Tool v2 on Tue Dec 25 2018 10:06:03 GMT+0100 (heure normale d’Europe centrale)
G91 ; relative positioning
G1 Z-5 F6000 S2 ; lift Z relative to current position
G1 S1 X-585 Y-585 F1800 ; move quickly to X and Y axis endstops and stop there (first pass)
G1 X5 Y5 F6000 ; go back a few mm
G1 S1 X-585 Y-585 F360 ; move slowly to X and Y axis endstops once more (second pass)
G1 S1 Z-585 F1800 ; move Z down stopping at the endstop
G90 ; absolute positioning
G92 Z0 ; set Z to axis minimum (you may want to adjust this)
; Uncomment the following lines to lift Z after probing
;G91 ; relative positioning
;G1 S2 Z5 F100 ; lift Z relative to current position
;G90 ; absolute positioning
; homex.g
; called to home the X axis
;
; generated by RepRapFirmware Configuration Tool v2 on Tue Dec 25 2018 10:06:03 GMT+0100 (heure normale d’Europe centrale)
G91 ; relative positioning
G1 Z-5 F6000 S2 ; lift Z relative to current position
G1 S1 X-585 F1800 ; move quickly to X axis endstop and stop there (first pass)
G1 X5 F6000 ; go back a few mm
G1 S1 X-585 F360 ; move slowly to X axis endstop once more (second pass)
G1 Z5 F6000 S2 ; lower Z again
G90 ; absolute positioning
; homey.g
; called to home the Y axis
;
; generated by RepRapFirmware Configuration Tool v2 on Tue Dec 25 2018 10:06:03 GMT+0100 (heure normale d’Europe centrale)
G91 ; relative positioning
G1 Z-5 F6000 S2 ; lift Z relative to current position
G1 S1 Y-585 F1800 ; move quickly to Y axis endstop and stop there (first pass)
G1 Y5 F6000 ; go back a few mm
G1 S1 Y-585 F360 ; move slowly to Y axis endstop once more (second pass)
G1 Z5 F6000 S2 ; lower Z again
G90 ; absolute positioning
; homez.g
; called to home the Z axis
;
; generated by RepRapFirmware Configuration Tool v2 on Tue Dec 25 2018 10:06:03 GMT+0100 (heure normale d’Europe centrale)
G91 ; relative positioning
G1 Z-5 F600 S2
G1 S1 Z-585 F1800 ; move Z down until the endstop is triggered
G92 Z0 ; set Z position to axis minimum (you may want to adjust this)
; Uncomment the following lines to lift Z after probing
;G91 ; relative positioning
;G1 S2 Z5 F100 ; lift Z relative to current position
;G90 ; absolute positioning