Unit - 8: CNC Programming
Unit - 8: CNC Programming
UNIT – 8
CNC PROGRAMMING
N100 G91 X±5.0 Y±7.0 Z±10 U..V..W..I..J..K.. F100 S200 T01 M03 (EOB)
CNC PROGRAMMING
G–
Codes
CNC PROGRAMMING
M – Codes
CNC PROGRAMMING
G00 Rapid Traverse:
When the tool being positioned at a point preparatory to a cutting motion, to save
time it is moved along a straight line at Rapid traverse, at a fixed traverse rate
which is pre-programmed into the machine's control system.
Typical rapid traverse rates are 10 to 25 m /min., but can be as high as 80 m/min.
Format: N_ G00 X__ Y__Z__
CNC PROGRAMMING
G01 Linear Interpolation (feed traverse)
The tool moves along a straight line in one or two axis simultaneously at a
programmed linear speed, the feed rate.
Format: N__ G01 X__ Y__Z__ F__
CNC PROGRAMMING
G02/03 Circular Interpolation
N__ G02/03 X__ Y__Z__ I__ J__K__ F__ using the arc center
OR
N__ G02/03 X__ Y__Z__ R__ F__ using the arc radius
G04 Dwell
The execution of the next block is delayed by the specified time, specify dwell
for each rotation in feed per rotation mode.
Dwell is use to stop feed for specified period of time.
Format:G04X_; or G04F_;
X: Specified time(decimal point is permitted)
F: Specified time(decimal point is permitted)
Format: -
G41 X_ Y_D_;
G42 X_ Y_D_;
CNC PROGRAMMING
G98/G99 plane of return point
When the tool gets to the bottom of the hole, it can return back to the plane of R
point and the initialized plane initialized by G98/G99.
Generally speaking, G99 is used in the first drilling plane while G98 is used in the
last drilling, even though we use G99 to drill, the plane of the initialized position
would keep the same.
CNC PROGRAMMING
CANNED CYCLES
Canned or fixed cycles are programming aids that simplify programming.
Canned cycles combine many programming operations and are designed to
shorten the program length, minimize mathematical calculations, and use minimal
tool motions.
Examples : drilling, peck drilling, tapping, boring, back spot facing.
G81 Drilling cycle
G82 Drilling cycle with dwell (Counter bore cycle)
G83 Peck drilling cycle / deep drill
G84 Right hand tapping cycle
G85 Boring / Reaming cycle
G86 Boring cycle
G87 Back boring cycle
G74 Left hand tapping cycle
G76 Fine boring cycle
CNC PROGRAMMING
G81 Drilling Cycle
G81 X_Y_Z_R_F_K_;
X_ Y_: Data of hole site
Z_: Depth of the bottom of hole(absolute coordinate)
R_: Starting point or raising point per time(absolute coordinate)
F_: Feeding rate of cutting
K_: Number of replication (if necessary)
CNC PROGRAMMING