Jog is reversed but manual commands work in the correct direction GRBL 1.1

Hi makers,
I have a K40 with a GRBL 1.1 CNC sheild installed.
I am having difficulty getting the directions setup correct.
When i issue a manual jog though the command terminal both axis work in the correct direction according to the right hand rule. EG. x moves right with a positive integer and y moves up with a possitive integer. But when I go to jog the machine in the UI with the direction buttons the Y axis is inverted. I hit up the machine goes down. I have searched high and low and cant seem to figure this out.


$J=X5 Y5 F5000 (this is the manual jog)
ok
$0=10
$1=25
$2=0
$3=0
$4=0
$5=1
$6=0
$10=30
$11=0.010
$12=0.002
$13=0
$20=0
$21=0
$22=1
$23=3
$24=25.000
$25=500.000
$26=250
$27=2.500
$30=1000
$31=0
$32=1
$100=157.000
$101=157.000
$102=250.000
$110=500.000
$111=5000.000
$112=500.000
$120=10.000
$121=10.000
$122=10.000
$130=200.000
$131=200.000
$132=200.000

You’ve likely set the origin to rear-left instead of front-left. Would that be it?

image

Hi, I checked it and it was correct. After playing with the origin setting I ended up figuring out $3 and $23 were both incorrect. After trying a lot of different combinations I finally figured it out. Thanks for your help, I did not relise that setting in lightburn either, though it was already set correctly.
Thanks for your prompt reply too, awesome customer service!

I thought everything was good. My machines origin is at the top left physically. Jog works in the correct direction and homing all works fine. When I type in x1 the machine moves from left to right and when I type y1 the machine moves from front to back. The problem is 2 things. When I go to cut the line on the screen shoot it travels all the way to the bottom right to make the line when on the screen it is in the top left. The 2nd problem is when I go to cut it makes this weird pattern on the wood. All I want is a straingt line but it seems to be moving the y axis at the same time as it does the line so it is kinda crooked. Any ideas?

$$
$0=10
$1=25
$2=0
$3=2
$4=0
$5=1
$6=0
$10=30
$11=0.010
$12=0.002
$13=0
$20=0
$21=0
$22=1
$23=3
$24=25.000
$25=500.000
$26=250
$27=2.500
$30=1000
$31=0
$32=1
$100=153.000
$101=153.000
$102=250.000
$110=5000.000
$111=5000.000
$112=500.000
$120=60.000
$121=60.000
$122=10.000
$130=200.000
$131=200.000
$132=200.000

Also I forgot to say that when i hit get position in the home position it shows the position in the screen shot -197 -197 even though i set up the work area to only bee 200x100 any ideas would be greatly appreciated.
Thank you

Read through this as a starting point: https://github.com/LightBurnSoftware/Documentation/blob/master/CommonGrblSetups.md#common-grbl-setups