Your trying to run before can walk.??

First job before trying to run any G-code is to make sure the machine is setup correctly and know how mach3 works. Ie It's fundimental thing to know why Dro is Red or Green. Means the Axis as been homed or pushed ref all home if no home switches.
I suggets you read the manual and learn Mach basics before trying to run G-code.

It's impossible to Mix Inch and MM in same setup without using a scaling factor. So if this is definatley happening then highly likely your Steps per setting is wrong.

To help you further you need to give more detailed info about your system. Your one line cryptic replies are pretty useless.

Tell us the Micro steps set on drives and the pitch of the ballscrew and if any ratio using timing belts etc and will give you the exact steps per setting. This will remove any guess work on your part.

When the Steps Per setting is correct then any error is either from the G-code or Mechanical. Mach3 just does exactly what it's told.