The Mach manuals provide specific information about the gcodes it uses.
They can be found under Support>Documentation.
An excellent comprehensive guide to programming is CNC Programming Handbook by Peter Smid.
Another book by Smid is Programming Techniques, but, woud recommend the above one.
The attached workbook has a lot of information on programming for the mill which should be helpfull if wanting to learn programming.
RICH