More homing problems

First you need to clean up the wiring to the homing switch terminals. The wiring shown in the picture (not very good solder job) would not last very long and it’s a bit of luck to catch it now.

The other information from the pictures is that you have intermittent contact on the X and Y axis homing switches as shown by the status command.

The way the homing cycle works is to move the Z axis out of the way, searching for the Z axis homing switch to change state.

Only after the Z axis homes correctly will grbl move to work on X and Y simultaneously.

So, you have to get the Z axis to home properly before the remaining axes even move.

When you clear up the Z axis problems then you can use the status command to locate the problems on the other axes.