Terry like Andy ask's did you try any of the suggestions and do the corrections.?

The G-code works fine so it's not the code. it's also very simple code nothing fancy.
There are very few settings in mach3 other than wrong steps per that will make it do what you describe. I've mentioned most of them.