# G-code

> programming languages

**Wikidata**: [Q620464](https://www.wikidata.org/wiki/Q620464)  
**Wikipedia**: [English](https://en.wikipedia.org/wiki/G-code)  
**Source**: https://4ort.xyz/entity/g-code

## Summary
G-code is a procedural programming language used to communicate instructions to machines, specifically within the fields of computer-aided manufacturing (CAM) and computer numerical control (CNC). Classified as a subtype of command, it utilizes imperative programming paradigms to automate machine tool operations. The language was originally inceptioned in 1950.

## Key Facts
- **Inception:** 1950.
- **Classification:** Instance of a programming language; subclass of command.
- **Programming Paradigm:** Procedural programming and imperative programming.
- **Primary Use:** Computer-aided manufacturing (CAM) and computer numerical control (CNC).
- **Alternate Names:** ISO 7-bit, Programmation numérique, Programmation de commande numerique, программирование цифрового управления (programmirovanie tsifrovogo upravleniya), and ИСО 7-бит (ISO 7-bit).
- **Microsoft Academic ID:** 2776210670 (discontinued).
- **Freebase ID:** /m/03_h_w.
- **Wikipedia Presence:** Available in at least 10 languages including English, Spanish, Arabic, and Greek, with a total sitelink count of 26.

## FAQs
### Q: What type of language is G-code?
A: G-code is classified as a programming language and a command. It follows the procedural and imperative programming paradigms, meaning it uses a sequence of statements to change a program's state.

### Q: What is G-code used for?
A: G-code is primarily used for computer-aided manufacturing (CAM) and computer numerical control (CNC). It serves as the language for communicating instructions to a machine.

### Q: When was G-code created?
A: G-code has an inception date of 1950.

## Why It Matters
G-code serves as the fundamental interface between human intent and machine execution in modern manufacturing. As a specialized programming language, it bridges the gap between abstract design and physical creation, playing a critical role in the automation of industrial processes. By utilizing a procedural and imperative structure, G-code provides precise, step-by-step commands that drive computer numerical control (CNC) machinery, allowing for the automated production of complex parts with high precision.

Its significance is underscored by its longevity; originating in 1950, it has remained a relevant standard in engineering and fabrication for over seven decades. The existence of aliases like "ISO 7-bit" highlights its role as a standardized method for digital communication in industrial environments. Without G-code, the automated, scalable, and precise manufacturing capabilities central to the modern industrial economy would not function as they do today.

## Notable For
- **Machine Communication:** Acting as a dedicated language for communicating instructions directly to machines.
- **Manufacturing Integration:** Being a primary component of computer-aided manufacturing (CAM) and CNC systems.
- **Longevity:** Originating in 1950 and remaining in use as a standard industrial control language.
- **Standardization:** Being recognized under aliases such as "ISO 7-bit," suggesting international standardization efforts.
- **Linguistic Reach:** Being documented and available in numerous global languages, including Arabic, Catalan, Estonian, and Persian.

## Body

### Definition and Classification
G-code is explicitly classified as an **instance of a programming language**. Within the hierarchy of computing and control systems, it is defined as a **subclass of command**. Unlike general-purpose languages, G-code is specialized for controlling automated tools. It falls under the **procedural** and **imperative** programming paradigms, which dictates that programs consist of a series of commands to be executed by the hardware.

### Function and Application
The primary utility of G-code is found in **computer-aided manufacturing (CAM)** and **computer numerical control (CNC)**. It functions as the intermediary that translates digital designs into physical movements. By defining a language for communicating instructions to a machine, G-code enables the precise control of motors, tools, and other actuators required in automated fabrication.

### History and Nomenclature
The concept or formalization of G-code dates back to **1950**. Over the decades, it has acquired various names and identifiers across different regions and systems. These aliases reflect its technical nature and global adoption:
*   **ISO 7-bit** / **ИСО 7-бит**: Indicates a connection to 7-bit character encoding standards used in early data processing.
*   **Programmation numérique**: The French designation for digital programming.
*   **Программирование цифрового управления**: The Russian term for digital control programming.

### Data and Identifiers
The entity is tracked across multiple knowledge bases and academic repositories.
*   **Wikidata:** Recognized as a programming language with a sitelink count of 26.
*   **Freebase ID:** /m/03_h_w (dated 2013-10-28).
*   **Microsoft Academic:** ID 2776210670 (service discontinued).

## References

1. Freebase Data Dumps. 2013