Commissioning a new laser build - need help

Thanks for the input Mike.
I am using the standard GRBL 1.1h original. Nothing has been changed.
As I am using a CNC Shield v3 I have the Z limit connected to SpindEN pin and the laser PWM pin is attached to Z+ limit pin
Homing works okay, everything moves in the right directions until homing has completed. BTW: I use the Z axis for the laser.
I have screen capture movie of what happens but I don’t know if I can post it here?
Maybe I can zip it up, it is only about 1.5M
04.11.2024_20.04.30_REC.mp4.zip (1.3 MB)

This morning I used UGS wizard to configure the settings in GRBL.
In UGS the machine works properly and does a homing and then the arrow direction keys all work as they should.

I exported the settings and carefully copied the content into a text file.
I renamed the text file to be a .NC file and loaded that into LaserGRBL and ran it.
LaserGRBL inserted all the 34 commands into it’s setting with no errors.

I then rebooted the computer and open LaserGRBL again and connected to my machine.
I didn’t home to start with. I just tested the movements with the arrow buttons and they all worked fine.
I then did a homing cycle and the homing worked as expected going to the front left.

I then tried using the arrow buttons and again the movements are only positive even if I use in the negative direction.
If I keep moving in a positive direction until I reach positive space the arrow buttons will work in the negative direction.

The settings exported from LaserGRBL that are giving the problem, but only in LaserGRBL:

$0=10
$1=255
$2=2
$3=3
$4=0
$5=0
$6=0
$10=19
$11=60.000
$12=0.002
$13=0
$20=0
$21=1
$22=1
$23=3
$24=50.000
$25=1000.000
$26=250
$27=3.000
$30=1000
$31=0
$32=1
$100=80.000
$101=80.000
$102=640.000
$110=6000.000
$111=6000.000
$112=500.000
$120=1200.000
$121=1200.000

I think I have fixed it Mike.
I uncommented line 129 in config.h and reprogrammed a Uno again.
I tested it out without homing first to check the directions and all went fine. Then I did a homing and the mpos was 0 0 0 as required. Before moving the laser head, I entered $92 X0Y0 to make the wpos home the same as mpos home. I then tested the directions and it all works fine now.
Next step is to do some fine tuning, get the exact steps right for the motors. They read pretty close already, but doing some engraved lines that are far apart and measuring will give me an indication of any changes that are needed.

Update to the problem:
All fixed now, what I did was uncomment line 129 in GRBL config.h and also in line 155 as I have limits switches at both ends of X and Y.
The homing worked as it should going in the right directions and towards front left.
After homing I entered G10 L20 P1 X0 Y0
That set the work home position to be the same as the machine home position.
I then entered $10=0 which saved the work position for each time I homed so I don’t have to manually set G10 L20 P1 X0 Y0 each time I do a homing cycle.