Yes it is using GRBL, thank you for the link, but I don't think that's the problem. The machine jogs correctly with $3=5. I came to the conclusion it's my CAM software that uses a different coordinate system. I need to correct the settings there. Machine is fine in my humble opinion.