Preparatory functions, called G codes, are used to determine the geometry of tool movements and operating state of the machine controller; functions such as linear cutting movements, drilling operations and specifying the units of measurement. They are normally programmed at the start of a block. Address.