@oliof yes, I have two extension boards, those motors and endstops are working fine, they have their own external control drivers.
@jay_s_uk yes, lights are working ok, now I have a differente situation I'm going to explain.
I put a backup of the config files before using 4 endstops for Z axis and only the probe for Z that was working fine, so machine was working good. Then I updated only the config.g with the one defined with 4 endstops and still good... all motors of Z moving and homming with the probe...
When I put the latest homez.g file the problem was again in the machine, so I made this change:
This is the homez.g with the initial problems
; homez.g
; called to home the Z axis
;
; generated by RepRapFirmware Configuration Tool v3.1.4 on Fri Sep 04 2020 14:49:01 GMT+0800 (δΈε½ζ εζΆι΄)
G91 ; relative positioning
G1 H2 Z10 F6000 ; lift Z relative to current position
;G1 H2 X510 Y510 F6000 ; go to first probe point
G1 H1 Z-99999
G90 ; absolute positioning
G30 ; home Z by probing the bed - activar 3D Touch
; Uncomment the following lines to lift Z after probing
;G91 ; relative positioning
;G1 Z10 F100 ; lift Z relative to current positiond
;G90 ; absolute positioning
This is the actual homez.g working somehow...
; homez.g
; called to home the Z axis
;
; generated by RepRapFirmware Configuration Tool v3.1.4 on Fri Sep 04 2020 14:49:01 GMT+0800 (δΈε½ζ εζΆι΄)
G91 ; relative positioning
G1 H2 Z10 F300 ; lift Z relative to current position
G90 ; absolute positioning
G1 X510 Y510 F10000 ; go to first probe point
G1 H1 Z-99999
;G1 X510 Y510 F3000 ; go to first probe point
G30 ; home Z by probing the bed
; Uncomment the following lines to lift Z after probing
;G91 ; relative positioning
;G1 Z10 F300 ; lift Z relative to current positiond
;G90 ; absolute positioning
So the only main change is that I put G90 before the first probe point movement and Z axis moving down looking for endstops... (but not for the probe touching).
So I'm going to test now if once the machine hits the 4 endstops then go for the probe to touch the bed, that it's my objective, because I want to use the 4 endstops to calibrate the machine at the same heigh and then the probe for fine compensation of the bed.
But I don't know if that will work if all the movement on Z is on negative direction or I should put the 4 endstops on Z positive and probe for Z negative...