Skip to main content
U.S. Department of Energy
Office of Scientific and Technical Information

The g-code file

Book ·
The slicing process for additive manufacturing (AM) involves many steps, including slicing the object to be printed and fitting toolpaths to each resulting layer. The toolpaths define the trajectories that the machine must follow during printing to construct the object. Once the slicing is complete and all toolpaths have been found and properly planned, this data must be transferred to the 3D printer in a way the printer can use to construct the object. This is achieved by exporting a file, usually a g-code file, from the slicing software. The g-code file is a text-based file that contains instructions for the machine, controlling the system and defining the motions for each toolpath. The file, which often contains thousands of lines of code, is mostly composed of numbers that command positions for axis motions. This chapter will outline the contents of a g-code file, discuss various commands and their implementation, then provide example codes and files for object construction.
Research Organization:
Oak Ridge National Laboratory (ORNL), Oak Ridge, TN (United States)
Sponsoring Organization:
USDOE
DOE Contract Number:
AC05-00OR22725
OSTI ID:
2329611
Country of Publication:
United States
Language:
English

Similar Records

ORNL Slicer 2 - Open Source Copyright
Software · Sun May 05 20:00:00 EDT 2024 · OSTI ID:code-97742

10. Path Modifiers
Book · Wed Nov 01 00:00:00 EDT 2023 · OSTI ID:2324046

CREATING TOOLPATHS WITHOUT STARTS AND STOPS FOR EXTRUSION-BASED SYSTEMS
Conference · Sat Nov 30 23:00:00 EST 2019 · OSTI ID:1606022

Related Subjects