Académique Documents
Professionnel Documents
Culture Documents
Contents
[hide]
1 Common Codes
2 Example Program
3 See also
4 External links
rapid move
controlled feed move in a straight line or arc
series of controlled feed moves that would result in a hole being bored, a
workpiece cut (routed) to a specific dimension, or a decorative profile shape
added to the edge of a workpiece.
change a pallet
set tool information such as offset.
There are other codes; the type codes can be thought of like registers in a computer
List of different variables used with G-code
Variable
Description
Defines dwell time or variable in canned cycle. Also used to call subroutines
Tool selection
Defines arc size in X axis. This is used with a G02 or G03 arc command
Defines arc size in Y axis. This is used with a G02 or G03 arc command
Defines arc size in Z axis. This is used with a G02 or G03 arc command. Also
used as a variable in canned cycles
(*) M codes control the overall machine, causing it to stop, start, turn on coolant, etc.,
whereas other codes pertain to the path traversed by cutting tools. Different machine tools
may use the same code to perform different functions; even machines that use the same
CNC control.
G07
G09
G10/G11
G12
G13
G17
G18
G19
G20
G21
G28
G30
G31
G33
G34
G40
G41
G42
G43
G44
G45
G46
G47
G48
G49
G50
G53
G54 to G59
G54.1 P1 to
P48
G73
G74
G76
G80
G81
G82
G83
G84
G84.2
G90
G91
G92
G94/G95
G96
G97
G98/G99
Inch per minute/Inch per revolution feed (type A system) Note: Some
CNCs use the SI unit system
Constant surface speed
Constant Spindle speed
Return to Initial Z plane/R plane in canned cycle
A standardized version of G-code known as BCL is used, but only on very few machines.
G-code files may be generated by CAM software. Those applications typically use
translators called post-processors to output code optimized for a particular machine type
or family. Post-processors are often user-editable to enable further customization, if
necessary. G-code is also output by specialized CAD systems used to design printed
circuit boards. Such software must be customized for each type of machine tool that it
will be used to program. Some G-code is written by hand for volume production jobs. In
this environment, the inherent inefficiency of CAM-generated G-code is unacceptable.
Some CNC machines use "conversational" programming, which is a wizard-like
programming mode that either hides G-code or completely bypasses the use of G-code.
Some popular examples are Southwestern Industries' ProtoTRAK, Mazak's Mazatrol,
Hurco's Ultimax and Mori Seiki's CAPS conversational software.
Description
Turn on load monitor
Rapid move away from the part, to ensure the starting position of
the tool
Code descriptions with graphics and example code files (examples can be
downloaded).
Tutorial for G-code
The NIST RS274NGC Standard - Version 3 Aug 2000 also available as a PDF