G-code: Difference between revisions

Content deleted Content added
Clearing cs1 error
short description, links
Tags: Mobile edit Mobile app edit iOS app edit
Line 1:
{{short description|ProgrammingPrimary languagesprogramming language used in CNC}}
{{other uses|G-code (disambiguation)|G programming language (disambiguation)}}
{{redirect|RS-274|the photoplotter format|Gerber format}}
Line 27:
| wikibooks =
}}
'''G-code''' (also '''RS-274''') is the most widely used [[computer numerical control]] (CNC) [[programming language]]. It is used mainly in [[computer-aided manufacturing]] to control automated machine tools, and has many variants.
 
'''G-code''' (also '''RS-274''') is the most widely -used [[computer numerical control]] (CNC) [[programming language]]. It is used mainly in [[computer-aided manufacturing]] to control automated [[machine toolstool]]s, and 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 [[Metal lathe|lathe]] or [[Milling (machining)|mill]], a [[cutting tool (machining)|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<ref>Karlo Apro (2008). ''[https://books.google.com/books?id=Ws228Aht0bcC Secrets of 5-Axis Machining]''. Industrial Press Inc. {{ISBN|0-8311-3375-9}}.</ref> 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, [[Gerber format|photoplotting]], additive methods such as [[3D printing]], and measuring instruments.
 
G-code instructions are provided to a [[Programmable logic controller|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 [[Metal lathe|lathe]] or [[Milling (machining)|mill]], a [[cutting tool (machining)|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<ref>Karlo Apro (2008). ''[https://books.google.com/books?id=Ws228Aht0bcC Secrets of 5-Axis Machining]''. Industrial Press Inc. {{ISBN|0-8311-3375-9}}.</ref> 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 (metalworking)|forming]] or [[Burnishing (metal)|burnishing]] tools, [[Gerber format|photoplotting]], additive methods such as [[3D printing]], and measuring instruments.
 
==Implementations==