Chap5-Numerical Control
Chap5-Numerical Control
Chap5-Numerical Control
(NC)
History
Introduction
Machining Centers
Machine-tool Structures
Programming Numerical Control
History of NC
22
Part Programming
Miscellaneous
M00 commands
program stop (M code)
M02 end of program
M03 start spindle rotation (cw)
M04 start spindle rotation (ccw)
M05 spindle stop
M06 tool change
M07 turn coolant on
M09 turn coolant off
Feed commands (F code)
23
Part Programming
Part programming contains geometric data about the part and motion
information to move the cutting tool with respect to the work piece.
Basically, the machine receives instructions as a sequence of blocks
containing commands to set machine parameters; speed, feed and
other relevant information.
A block is equivalent to a line of codes in a part program.
N135 G01 X1.0 Y1.0 Z0.125 F5.0 S100. T01 M03
24
Axis Movement Instruction
Rapid Travel – fastest speed the machine move (2500~25,000mm/min)
i.e G00 X__ Y__ Z__
Linear Interpolation (straight line)
i.e G01 X__ Y__ Z__ F__ must specified F, feed (mm/min)
Circular movement, G02(CW) , G03(CCW)
Two methods: 1. Center method (IJK) 2.Radius method
Circular Movement Instruction
Center method (IJK):
I= Incremental distance from start point to arc center in X axis
J= Incremental distance from start point to arc center in Y axis
K=Incremental distance from start point to arc center in Z axis
G90 G00 X190 Y-5. Absolute coordinate, Rapid positioning close to point 1
S1500 M03 Spindle speed, ON spindle CW
G01 Z-2 F50 Down feed at depth of cut 2 mm
G42 X190 Y10 F10 Cutter compensation right to P1
Y130 Straight line from P1 to P2
X100 Straight line from P2 to P3
X105 Straight line from P3 to P4
G02 X70 Y105 R15 Radial arc, clockwise, with 15 radius
G01 Y130 Straight line from P5 to P6
X10 Straight line from P6 to P7
Y20 Straight line from P7 to P8
G03 X20 Y10 R10 F10 Radial arc, counterclockwise with 10 radius
G01 X190 F50 Straight line from P9 to P1
G40 G00 Z10 Cancel cutter compensation, Cutter retract from work piece
G00 X160 X100 Rapid traverse to point P10
G01 Z-2 F50 Down feed at point P10
X130 Y45 Straight line from P10 to P11
G01 Z35 F200 Retraction from workpiece
G00 X300 Y300 Rapid traverse away from workpiece
M09 M05 Coolant OFF, Spindle STOP