Code G21 activates the metric data mode. While this mode is in effect, all input data is perceived as metric. It is recommended that in all programs that are written in metric sizes, put the G21 command at the beginning of the program, so that if the inch program was in effect before, ensure that the correct format is selected.