If you have a look in the mach3 manual it explains it.
I had the same thing when I first started running the machine I had refurbished. Worked like that for a while & was fine. Since then I have changed the axis around so the Y axis is now the x axis & vice versa. If you swap your x & y around you will probably find it does the same thing