Skip to content
EntityQ620464· pop 26· linked from 162 articles

G-code (abbreviation for geometric code; also called RS-274, standardized today in ISO 6983-1) is the most widely used computer numerical control (CNC) and 3D printing programming language. It is used mainly in computer-aided manufacturing to control automated machine tools, as well as for 3D-printer slicer applications. G-code has many variants.

Key facts

Programming language.name
G-code
Programming language.file ext
.gcode, .mpt, .mpf, .nc and several others
Programming language.paradigm
Procedural, imperative
Programming language.released
(RS-274)
Programming language.designer
Massachusetts Institute of Technology
Programming language.developer
Electronic Industries Association (RS-274), International Organization for Standardization (ISO-6983)
Programming language.implementations
Numerous; mainly Siemens Sinumerik, FANUC, Haas, Heidenhain, Mazak, Okuma

via Wikipedia infobox

Wikidata facts

Show 1 more fact
inception
1950-00-00
Sources (2)

via Wikidata · CC0

~5 min read

Article

7 sections
Contents
  • History
  • Syntax
  • Extensions and variations
  • See also
  • References
  • Bibliography
  • External links

G-code (abbreviation for geometric code; also called RS-274, standardized today in ISO 6983-1) is the most widely used computer numerical control (CNC) and 3D printing programming language. It is used mainly in computer-aided manufacturing to control automated machine tools, as well as for 3D-printer slicer applications. G-code has many variants.

G-code instructions are provided to a machine controller (industrial computer) that tells the motors where to move, how fast to move, and what path to follow. The two most common situations are that, within a machine tool such as a lathe or mill, a cutting tool is moved according to these instructions through a toolpath cutting away material to leave only the finished workpiece and/or an unfinished workpiece is precisely positioned in any of up to nine axes around the three dimensions relative to a toolpath and, either or both can move relative to each other. The same concept also extends to noncutting tools such as forming or burnishing tools, photoplotting, additive methods such as 3D printing, and measuring instruments.

Connections

Categories