Professional Documents
Culture Documents
Introduction
CNC is one in which the function and motion of a machine tool are
controlled by means of prepared program containing coded alpha numeric
data.
ADVANTAGES AND LIMITATIONS
-Y
PROGRAMMING SYSTEM
M08 Coolant ON
M05
M09 Footer
M30
SUB PROGRAM
Program no 2:
Write a sub program for the component shown in the figure using sub
program.
Main program
O0002
Sub program G90 G94 G64 G54
O0003 G75 Z100
G91
M03 S1000
G01 Z-1 F80
G03 X30 Y0 I15 J0 M08
F800 G00 X0 Y0
G01 X0 Y-40 G00 Z2
G01 X40 Y0 G00 X0 Y55
G01 X0 Y-30 M98 P0003<40
G01 X-40 Y0 G90 G00 Z100
G01 X0 Y-40
M05
G02 X-30 Y0 I-15 J0
G01 X0 Y110 M09
M99 M30
MIRROR COMMAND
If the component is symmetrical about an axis, then the programming is
done using the mirror function .This function reduces the effort of
programming and also reduces the amount of space occupied in the system
memory.
Following are the code used in mirror program.
G51 = mirror command ON
G50 = mirror command off
G51 I1 J1 = 1st Quadrant mirror
G51 I-1 J1 = 2nd Quadrant mirror
G51 I-1 J-1 = 3rd Quadrant mirror
G51 I1 J-1 = 4th Quadrant mirror
Parallel axis is
I=X
J=Y
K=Z
Program No.3. : Write a mirror program for the component shown in the figure.
Take thickness=10mm
Main program
O0004
G90 G94 G64 G54
G75 Z100
M03 S1000
M08
G00 X0 Y0
G00 X20 Y20
M98 P0005<10
G90 G00 Z10
G00 X-20 Y20
G51 I-1 J1
M98 P0001<10
G90 G00 Z10
G00 X-20 Y-20
G51 I-1 J-1
M98 P0001<10
G90 G00 Z100
M05
M09
M30
Sub program
O0005
G91
G01 Z-1 F50
G01 X40 Y0 F800
GO1 X-40 Y20
G01 X0 Y-20
M99
CANNED CYCLE IS A FIXED CYCLE AND IT IS THE COMBINATION OF MACHINE
MOVEMENTS TO PERFORM THE MACHINING OPERATIONS LIKE DRILLING, BORING,
REAMING ETC
Peck drilling Cycle Reference point Per Peck Depth Total Depth Height Feed Rate
Technical outcomes:
•Knowledge of reading the drawings.
•Importance of CNC machine programming.
•Gained the better knowledge of CNC programming.
•Basic knowledge of operating CNC milling machine.
•Comparing