Unit ============================================= **Standard Word:** ProgramUnit **Variable:** Program.Unit **Type:** Enum The unit (mm/inch) used in the APT/CL file is transferred to the “Program.Unit” variable. This variable can be used in any script. When used in a script, the Program.Unit variable returns the string "Metric", "Inch" or "Unknown". In addition, the word "ProgramUnit" can be created from this variable. Metric/inch unit activation G codes (G20, G21) can be defined in the "Edit" tab of this word. This word is then used in the :ref:`Format Program Start`. command and the NC program prints the relevant G code for unit selection.