上海维宏电子科技股份有限公司
Weihong Electronic Technology Co., Ltd.
Specialized, Concentrated, Focused 59
Example 4 Programming for the Workpiece Shown in Fig. 4-42 (CCW tapping)
Y
X
Z
15
65
80
15
R 5
0
0
2
8
5
3
65
Fig. 4-42 Workpiece Machining Sketch
N01 G92 X0 Y0 Z0
’workpiece coordinates system establishment
N02 G91 G00 X-35 Y15 M04 S600 M08
’Incremental coordinates adopted, rapid traverse to X-35, Y15, spindle CCW at 600 rpm, and
coolant on
N03 G43 G00 Z0 H01
’cutter length compensation on
N04 G74 X50 Y0 Z-28 R-5 P1000 F1000 L2
’CCW tapping at 1000mm/min, tapping depth 28mm, dwell for 1s at the bottom of the hole,
executed twice
N05 G00 X-50 Y50
’rapid traverse to X15, Y65, and start tapping
N06 G00 X50
’rapid traverse to X65, Y65, and start tapping
N07 G80
’hole machining cancel
N08 G00 X-65 Y-65
’rapid traverse to X0, Y0
N09 G49 M05 M09 M30
’length compensation cancel, spindle stop, coolant off, end of
program and return to the program header
Example 5 Programming for the Workpiece Shown in Fig. 4-43 (requirement: amount of feed is
2mm each time in Z-axis)
N01 G92 X0 Y0 Z0
’workpiece coordinates system establishment
Summary of Contents for Ncstudio
Page 74: ...RMB 21 00 ...