.. |cnc| image:: _static/images/cnc.png :scale: 50% ############################# 宏程序 + G-code ############################# |cnc| G-code (also RS-274), which has many variants, is the common name for the most widely used numerical control (NC) programming language. It is used mainly in computer-aided manufacturing for controlling automated machine tools. G-code is sometimes called G programming language. G代码比较正式的名字是 RS-274或者RS-274D。最早的数控机床是在20世纪50年代由美国人John Parsons发明的,第一代的数控编程语言也在此时诞生。20世纪60年代,EIA(电子工业协会)制定了数控编程语言的最初标准,1980年,形成了这个标准的最终版本(即RS-274-D)。除了这一个标准外,还有其他标准,详见文后的wiki链接。 关于为什么命名G-code或者G&M Code,一个说法是该语言的命令许多都是G或者M字母开头的。 **参考资料** .. |rs274ngc python3| image:: https://img.shields.io/badge/github-rs274ngc_python3-blue?logo=github :target: https://github.com/grwhitehead/rs274ngc-python3 .. |rs274ngc| image:: https://img.shields.io/badge/github-rs274ngc-blue?logo=github :target: https://github.com/QGCoder/rs274ngc .. |pythonic gcode machine| image:: https://img.shields.io/badge/github-pythonic_gcode_machine-blue?logo=github :target: https://github.com/FabriceSalvaire/pythonic-gcode-machine .. |linuxcnc| image:: https://img.shields.io/badge/org-linuxcnc-yellow :target: http://linuxcnc.org/ .. |cnc program examples| image:: https://img.shields.io/badge/helmancnc-cnc_program_examples-yellow :target: https://www.helmancnc.com/cnc-program-examples/beginner-level/ .. |cnc maro| image:: https://img.shields.io/badge/ref-cnc_macro-red :target: https://www.cnczone.com/forums/attachments/2/0/6/1/9/22462.attach .. |linuxcnc g code| image:: https://img.shields.io/badge/ref-g_code-red :target: http://linuxcnc.org/docs/2.8/html/gcode/g-code.html .. |playground| image:: https://img.shields.io/badge/playground-fanuc_macro_b-green :target: https://playground.cnc4me.org/ * |cnc maro| |linuxcnc g code| * |playground| * |rs274ngc| |rs274ngc python3| |pythonic gcode machine| * |linuxcnc| * |cnc program examples| ******************* Table of Contents ******************* .. toctree:: :maxdepth: 3 :numbered: gcode-reference/rs-274/index.rst test.md