Академический Документы
Профессиональный Документы
Культура Документы
a d f2
y0
h #
G-code is the generic name for a plain-text language
that CNC machines can understand.
G2 (Clockwise Motion)
G2 (Clockwise Motion)
Setting the mode to G2 and specifying the offset from center (Figures C and D)
creates clockwise motion between the starting point and the specied ending
points.
G21G90G17
G0X0Y12
G2X12Y0I0J12
The G2 starting point is where the machine is located prior to issuing the G2
Its easiest if you move your machine to the starting point before
command.
trying to issue the G2 command.
G3 (Counterclockwise Motion)
Just like G2, the G3 command creates an arc between two points. Whereas G2
species clockwise motion, G3 species counterclockwise motion between the
points (Figure E). A valid set of commands to produce G3 motion is shown here:
G21G90G17
G0X5Y25
G3X25Y5I0J20
For example, in incremental mode, G1X1 will advance the machine 1 unit in the
x direction, regardless of its current location.
G-Code Rules
Just like a math equation, G-code has its own rules about the order of
operations. Here are the most common, in order of precedence (that is,
comments will be interpreted rst and the change tool will be interpreted last):
Comments
Feed rate
Spindle speed
Select tool
Change tool
When you issue a G command, you are putting the machine into that mode. If
you issue a G1 command, such as G1X5Y13, then the machine moves to X5
Y13.
If you issue another set of coordinates, you do not need to issue another G1
command. Why? Because the machine is in G1 mode until you change it to
something else like G0 or G2 or G3.
F Is for Feed
The F command sets the feed rate; the machine operates at the set feed rate
when G1 is used, and subsequent G1 commands will execute at the set F value.
If the feed rate (F) is not set once before the rst G1 call, either an error will
occur or the machine will operate at its default feed rate. An example of a
valid F command:
G1F1500X100Y100
T Is for Tool
The T command is used in conjunction with M6 (M-codes are machine action
codes) to specify the tool number to be used for cutting the current le:
M6T1
On industrial machines, an M6T command usually produces a tool change with
an automatic tool changer. On hobby machines with no tool changer available,
issuing a new M6T command will generally cause the machine to issue itself a
feed-hold command, wait for the operator to change the tool, and then continue
the job after the resume button is pressed.
Maker Spotlight: This Guy Created Can a Hanging New X-Carve CNC
Marta Ali a Beautiful Sound Plotter Work as a Router Bulks Up
Sequencer Just to CNC Mill? for Advanced
Test Some Usage
Buttons
Poweredby
ADVERTISEMENT
SHOW COMMENTS
By Edward Ford
ADVERTISEMENT
RELATED TOPICS
ADVERTISEMENT
Learn More
ADVERTISEMENT
YouTubes Close-Knit
Community of Makers