This really should be a topic of its own.
I have never used it so all of this is a guess but i would say you load your gcode into Mach, chose the wizzard and run it, enter the specifics, hit create file, then hit return to Mach. You will also need to make sure the program you generate has an M99 and the end of it, not M30.
Brett