Skip to main content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.


The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

The NIST RS274NGC Interpreter - Version 3



Thomas R. Kramer, Frederick M. Proctor, Elena R. Messina


This report describes an interpreter which reads numerical control code and produces calls to a set of canonical machining functions. The interpreteris a software system written in the C++ programming language. The output of the interpreter may be used to drive 3-axis to 6-axis machining centers. Input to the interpreter is RS274 code in the dialect defined by the NextGeneration Controller (NGC) project, with modifications. The interpreter may be compiled as a stand-alone computer program or may be integrated with the NIST Enhanced Machine Controller (EMC) control system. Input can comefrom a file or from a user typing on a computer keyboard. Output commands can either be printed for future use or be executed directly on a machining center. The report includes a full description of the RS274/NGC input language and the canonical machining functions called by the interpreter. It is a complete users manual.
NIST Interagency/Internal Report (NISTIR) - 6556
Report Number


controller, interpreter, machining, NC code, NIST, numerical control, rs274
Created August 1, 2000, Updated November 24, 2008