Download UNIDEX 600 Series PROGRAMMING MANUAL

Transcript
U600 Series Programming Manual
2.2.
G-Codes
Introduction to G-code Motion
The remainder of this introduction serves three purposes:
1.
A guide to the G-code documentation under which various topics of CNC
motion are completely explained.
2.
An introduction to CNC directed motion.
3.
A repository for miscellaneous information not contained under any G-code
documentation section.
Further elaboration on the following topics of interest can be found discussed under the
documentation section shown to the right of the topic.
Position
(see below)
Velocity
(see below and F code)
Acceleration
(see G60 or G61)
Transition between motion blocks (see G8 or G9)
Simultaneous multiple axis motion (see G98 or G99)
The CNC programmer can specify that multiple axes be moved simultaneously in a
G-code move. The controller will then move all the specified axes to the specified targets.
However, there are some subtle points concerning the velocities at which these moves will
be accomplished.
A G0 command is a rapid move, while G1/G2/G3 are contoured moves. A G0 will move
each axis at that axis’ rapid feedrate (found under the Machine Parameters Screen), and
no effort is made to coordinate the separate axis’ motion. Each axis will finish its move at
different times, and the G0 is not complete until the last axis has completed its motion.
G1, G2, G3, G12, and G13 are contoured moves. The axes will move in a coordinated
fashion so that all axes finish there motion at the same time. The speed of the motion is
determined by the E and F words (found under the CNC Parameters Screen). However,
the way in which these speeds are determined from the E and F word can be complex in
some cases, especially if the user moves rotary and linear axes simultaneously. Refer to
Chapter 1, Section 1.2.2. Linear Feedrate.
G1 is a linear move, while G2 and G3 are circular moves. The user can specify a linear
and circular move to happen simultaneously by putting a G1 and a G2/G3 on the same
line. Also, the user can perform two circular moves simultaneously by using G12 and
G13. These G-codes are the same as their “-10” counterparts for simultaneous motion.
For example, the following code performs two circular moves simultaneously.
G2 I1 J1 X0 Y0 G13 I3 J3 Z0 A0
All CNC G code motion statements will wait until there motion is complete before
proceeding onto the next CNC statement. These CNC statements are called synchronous.
The controller does provide asynchronous CNC motion statements that initiate a motion,
but then immediately continue on to the next CNC statement (see INDEX or STARTM
extended commands). If such a statement is executed, a following CNC statement is
executed that tries to move an axis still moving due to the first asynchronous motion
statement, then that statement will wait until the first motion is complete before executing.
Version 1.2
Aerotech, Inc.
2-5