EN
Back to the archive

The encyclopedia · Engineering & Operations · Technical decision · 1960s–1980s

G-code won machine control as the plain-text standard every CNC controller speaks

The EIA's RS-274 standardized NC programming as readable G/M words; once programs became portable, G-code became the universal machine language.

Electronic Industries Alliance (EIA)

the move

When numerically controlled machines first appeared, every manufacturer had its own language for defining part programs, so a program written for one machine was useless on another.

Over the following decade the industry converged on G-code, and the Electronics Industries Association's RS-274 standard was the first attempt to formalize it. The language uses short plain-text words — G for motion functions, M for miscellaneous functions — with modal state that persists across lines.

NIST's RS274/NGC interpreter refined the standard, and LinuxCNC implements it openly. Standardized G-code changed the game: machinists could move between shops and machines, and programs became portable artifacts rather than vendor lock-in.

why it works

  • Readable text meant operators could verify and edit programs by eye.
  • Modal state kept programs short and simple.
  • A published standard let any controller vendor implement the same language.
  • Portability made skills and programs transfer across shops.
the payoffPlain text and modal codes beat dialectsneat

what transfers

When every vendor ships a proprietary control language, the market fragments; publishing a readable, standard text format lets programs, skills and tools travel between machines and vendors.

what came after

G-code remains the common language of CNC machine tools; vendors add dialect features, but the RS-274 core is still what every controller speaks.

references

spotted an error? The archive wants to know.

same kind of clever