Preparatory Functions
Preparatory Functions
G00 Rapid √ Left figure: Start point (0,0) & end point (5,12)
positioning N20 G00 X5 Y12
G02 Circular √
interpolation
(CW)
G03 Circular √
interpolation
(CCW)
G04 Dwell N23 G04 X2.5 • It is a time pause (delay) applied during program processing
N23 G04 U2.5 • Always programmed in a separate block
N23 G04 P2500 • In this time period any axis motion is stopped, while all other program commands
and functions remain unchanged. When the specified time expires, control system
resumes processing of program block.
• If decimal point is used, then the delay is in seconds. If not, so it is in milliseconds.
In the example it is 2.5 seconds.
• U is used with turning.
G15 Polar N2 G17 G40 G80
Coordinate N3 G90 G54 G00 X0 Y0 S900 M03 (PIVOT
Command POINT)
cancel N4 G43 Z1.0 H01 M08
G16 Polar √ N5 G16 (POLAR COORDINATES ON)
Coordinate N6 G99 G81 X6.8 Y0 R0.1 Z-0.163 F3.0
Command N7 X6.8 Y60.0
N8 X6.8 Y120.0
N9 X6.8 Y180.0
N10 X6.8 Y240.0
N11 X6.8 Y300.0
N12 G15 (POLAR COORDINATES OFF)
N13 G80 M09
N14 G91 G28 Z0 M05
N15 G28 X0 Y0
G17 XY-plane √ • Cutting is in plane X - Y
designation
G28 Machine zero Sends any programmed slide to its machine G28 is not programmed by itself alone in a block. It must be written with slide, X, Y or Z;
return reference (zero) position such as:
N67 G28 Y.. sends the Y-axis to machine zero reference
N67 G28 Z.. sends the X & Y-axes to machine zero reference
N67 G28 X.. Y.. Z.. sends all three specified axes to machine zero
reference position (note that it is not preferred to program Z with
the other axes. Thus, going to the machine reference from the
intermediate point (9.5,4.874,-0.1)
N222 G28 Z-0.1
N223 G28 X9.5 Y4.874
O1453
G91 G28 X0 Y0 Z0 (Move the work
M06 101 offset to the 1st
M03 S1000 P.C.D from the
G90 G54 G43 H1
G52 X100 Y100
G54 origin)
G00 X0 Y0
G00 Z5
G16
. (Move the work
. offset to the 2nd
G15 P.C.D from the
G52 X300 Y100 G54 origin)
G00 X0 Y0
G16
G53 Machine G53 G0 X0 Y0 Z0 (Sets the machines datum as This code temporarily cancels work coordinate offsets and uses the machine coordinate system.
Coordinate the active coordinate system and moves to that This code will also ignore tool offsets. In the machine coordinate system, the zero point
Selection position) for each axis is the position where the machine goes when a Zero Return is performed.
G53 will revert to this system for the block in which it is commanded.
G54 Work √ N10 G54; (select the 1st work offset)
: coordinate N20 G56; (select the 3rd work offset)
G95
G68 Coordinate
system
rotation
G69 Coordinate
system
rotation cancel
G73 High speed √
deep hole
drilling cycle