There are G/M code standards for most of the codes. The basic codes are pretty much standard across all manufactures, but each manufacturer has their own codes for some special functions.
Here is a good place to start for a general understanding https://en.wikipedia.org/wiki/G-code