Академический Документы
Профессиональный Документы
Культура Документы
PART PROGRAMMING
TRAINING
(AVIJIT JANA - MMT)
Basic Milling Machine
Basic milling machine
• Milling machine working principle:
+y
-z
Basic milling machine
• Milling machine working principle:
Working principle of milling
machine
• In standard milling machine, operator cuts the job using single tool
which is always clamped in spindle, and by moving the slides
manually.
• Principle of achieving the desired dimension of the job is based on
principle of lead screw pitch.
for e.g.:- If lead screw pitch is = 5mm
then one rotation of lead screw = 1pitch = 5mm
one rotation of hand wheel = 1rotation of lead screw = 5mm
If number of graduations marked on hand wheel = 250
this means 1 graduation = 5/250 = 20 microns
so operator judges the movement of the slide by graduations marked
on the dial of the hand wheel
• Selection of the Spindle speed is manually by levers and speed charts
through a geared head stock
• This process was time consuming and depended lot on operator skills.
History of CNC machines
• Hence numerical control was introduced first.
• In Numerically controlled lathes the slides are moved by motors
instead of using hand wheels, and the slide movement was with the
combination of motor and lead screw rotation.
• With the help of numerical control operator was able to move the
slides by desired amount automatically by giving dimensional
instructions.
i.e If cross slide is required to be moved by 20mm the motor and the
lead screw are supposed to rotate 4 rotations.
Lead screw pitch= 5mm x 4 rotations= 20mm.
• Because numerical controlled machines were open loop, the desired
slide movement was not accurate (*open loop means their was no
confirmation from the slide to the control about its reaching target
points given by dimensional instructions)
• To have more accuracy on positioning of the slides and final job
dimensions computer numerical control machines were introduced
Working principle of NC milling
machine
• Milling machine working principle:
MOTORS IN PLACE OF
HAND WHEEL
Working principle of CNC Machine
CNC MACHINE IN DETAIL IS A COMPUTER NUMERICAL CONTROL
MACHINE IN WHICH THE OPERATOR HAS TO FEED A SET OF
INSTRUCTIONS IN THE FORM OF NUMERICAL CODES WRITTEN IN
A PERTICULAR SEQUENCE IN THE COMPUTER SYSTEM WHICH IS
CALLED A CNC PROGRAM.
THESE INSTRUCTIONS ARE FURTHER DECODED BY THE
COMPUTER CONTROL INTO COMMANDS WHICH ARE
INSTRUCTIONS TO SERVO DRIVES TO MOVE THE SERVO MOTORS
WHICH ARE COUPLED TO THE BALL SCREWS.
THESE BALL SCREWS ARE COUPLED TO THE SLIDES AND THE
SLIDES MOVE ON PRICIPLE OF BALL SCREW PITCH. IF BALL
SCREW PITCH IS 10MM AND WITH ONE ROTATION OF BALLSCREW
SLIDE MOVES BY 10MM.
THESE MOVEMENTS ARE SENSED BY ENCODERS WHICH ARE
MOUNTED ON MOTOR SHAFT TELL CNC THAT SLIDE HAS MOVED
BY 10MM. THIS IS CALLED CLOSED LOOP SYSTEM.
Difference between conventional
and VMC Machine
CONVENTIONAL MACHINE VMC MACHINE
6000
0
RPM 4000
2000
FORMULA TO FIND OUT THE
CUTTING SPEED AND RPM
RPM :- Revolution Per Minute (N)
VC :- Cutting Speed
M M=STAINLESS STEEL
K K= CAST IRON
H H= HARDENED MATERIALS
Milling Insert material – Tungston / solid carbide / ceramic / diamond / PCBN
•HSS Tooling - for less cutting speed – low cost – utilised for batch production
•Tungston carbide tooling – for high cutting speed – can withstand more heat –
Utilised for mass productionn
What is the role of part programmer
1. Understanding the part drawing.
2. Deciding sequence of operations.
3. Selection of tools.
4. Understanding the machine capabilities.
5. Deciding the speed & feed for the
various operations.
CNC machining center and
specification
• What do specifications implies:
• Machine specifications are very important
aspect for a buyer to understand the
capabilities of machine so that he can
decide which components are possible to
do on machine he is going to buy.
CNC machining center and
specifications
X-Y-Z AXIS STROKES 800/450/500 RESPECTIVELY(mm)
SPINDLE NOSE FACE TO TABLE TOP 175 - 675(mm)
MAX.TOOL WEIGHT 8 Kg
For winner machine-
Spindle nose face to table top distance = 675 mm
Z axis storke = 500 mm ( from home position )
Day light area length = 175 = ( 675-500)
means at z axis maximum down position 175 mm gap between spindle nose face& table top
• Normaly tool length is 100 mm if it is less then we need to add heght block / voice to hold componant .
•Maximun up to 18 mm diameter drill can be used for drilling operation .
•Chip to chip time = 6 sec ( it may vary with height of job , so calculate half of z axis stroke 500/2 = 250 mm)
•Spindle taper BT 40 – 7/24( diff. between two taper diameter will be 7mm on 24 mm length)
•Spindle center to column front distance = 510 ( disttance calculated in y axis ,so that job should not touch column)
CNC machining center and
specifications
Following examples show how the specifications play an important role in
machining a perticular job.
• Table size and axis stroke limits decide size of job that can be machined.
• Weight of component depends on the maximum weight carrying capacity of
table.
• Max power of the spindle decides the max material removal rate possible on
the machine.
• Max spindle rpm available on the machine . Different materials require
different RPM for achieving best cutting results and good surface finish.
• Spindle nose to table top decides maximum height of job that can be
machined.
• Positioning accuracy and repeatability of all axis decide the accuracy
achievable on the work piece being machined.
• Automatic tool changer gives an clear picture about maximum number of
tools that can be used during machining.
• Tool shank type of spindle decides which tools to be used o the machine like
BT-40,BT-30 ( ISO TAPER 30, 40,50 ETC)
• Feed rate given in machine gives a choice to user to select best possible
feed rates.
• Rapid traverse rate of all axis , tool change time ( tool to tool & chip to chip)
decides how to cover up idle time in machining to get best possible cycle
time.
Machine coordinate systems
There are three types of machine
co-ordinate systems: -
• Axis coordinate system.
• Work piece co-ordinate system.
• Machine reference point co-ordinate
system.
Axis coordinate system
• Right hand cartesian co-ordinate system is used as a
standard and it is always assumed that cutting tool
moves relative to the work piece.
• X axis :- The x axis is always horizontal and is parallel to
the work holding surface. positive +x when axis is to the
right when looking from spindle towards work piece.
• Z axis :- Z axis is the main machine spindle axis. The z
axis movement is positive in the direction away from
work piece towards spindle.
• Y axis :- Y axis is perpendicular to both x and z axis .
Positive direction of y axis is away from the spindle
looking from spindle towards the work piece.
+
Z Axis
CNC vertical machining center
-
+ Z Axis
CNC vertical machining center
-
+ Z Axis
CNC vertical machining center
-
+ Z Axis
CNC vertical machining center
-
+ Z Axis
CNC vertical machining center
-
+ Z Axis
CNC vertical machining center
-
+ Z Axis
CNC vertical machining center
-
+ Z Axis
CNC vertical machining center
-
+ Z Axis
CNC vertical machining center
-
+ Z Axis
CNC vertical machining center
-
+ Z Axis
CNC vertical machining center
-
+ -
X Axis
CNC vertical machining center
+ X Axis -
CNC vertical machining center
+
X Axis -
CNC vertical machining center
+
X Axis
-
CNC vertical machining center
+
X Axis
-
CNC vertical machining center
+ -
X Axis
CNC vertical machining center
+
X Axis
-
CNC vertical machining center
CNC vertical machining center
-
+
CNC vertical machining center
-
+
CNC vertical machining center
-
+
CNC vertical machining center
-
+
CNC vertical machining center
-
REFERENCE POINT
REFERENCE POINT
+
X Axis -
-
REFERENCE POINT
Y450
Z 500
-
REFERENCE POINT
10.000 790.000
+
X Axis -
REFERENCE POINT
REFERENCE POINT
+
X Axis -
-
REFERENCE POINT
X X
X X
Y
Y
Y offset
value
X offset
value
X & Y at reference
WORK OFF SETS
Work Offset :The distance between the work/job( clamped on the table )
top face & the spindle nose face.
z offset
value
OFF SETS
Work Offset: G54, G55, G56, G57, G58, G59
G53 X _______ G56 X G59 X _______
Y _______ Y Y _______
Z ______ Z Z _______
G54 X G57 X
Y Y
Z Z
G55 X G58 X
Y Y
Z Z
Standard co-ordinate system
. y
+
_ +
X
_
METHOD OF TAKING OFFSET
TOUCH THE TOOL TO SIDE A AND TYPE
EXAMPLE:
X -20 & PRESS SOFT KEY (MESURE). 1) IF THE MACHINE VALUE
KEEP THE CURSOR UNDER X OF ANY IN X WHEN TOOL DIA 40 IS
ONE OF THE OFFSETS
TOUCHED TO SIDE ‘A’ IS
DIA 40 A G54 X -250.000,
Y
WHEN WE TYPE X-20.0 AND
- Z
PRESS SOFT
KEY(MEASURE)
FOLLOWING VALUE IS
ENTERED IN X OF G54
TOUCH THE TOOL TO SIDE B AND TYPE
Y -20 & PRESS SOFT KEY (MESURE). X -230.000
KEEP THE CURSOR UNDER Y OF ANY 2) IF THE MACHINE VALUE
ONE OF THE OFFSETS IN Y WHEN TOOL DIA 40 IS
TOUCHED TO SIDE ‘B’ IS
-150.000,
G54 X
Y WHEN WE TYPE Y-20.0 AND
Z PRESS SOFT KEY
( MEASURE)
FOLLOWING VALUE IS
- DIA 40 B
ENTERED IN Y OF G54
Y-130.000
CNC vertical machining center
+
Work piece +
Measure X-20.0 -
-
Measure Y-20.0
METHOD OF TAKING OFFSET
TOUCH THE TOOL TO FACE AND TYPE
EXAMPLE:
Z 150 & PRESS SOFT KEY (MESURE). 1) IF THE MACHINE VALUE
KEEP THE CURSOR UNDER Z OF ANY IN Z WHEN TOOL DIA 40 IS
ONE OF THE OFFSETS
TOUCHED TO SIDE JOB
FACE IS -250.000,
G54 X WHEN WE TYPE Z 150.0.0
Y AND PRESS SOFT
Z
KEY(MEASURE)
FOLLOWING VALUE IS
ENTERED IN Z OF G54
Z - 400.000
01
101.02 0.0 5.0 0.0
Methods of dimensioning (Absolute
& incremental)
There are two methods of dimensioning :-
a. Absolute system of dimensioning or fixed zero system of
dimensioning
b. Incremental system of dimensioning or floating system of
dimensioning
c. These two methods are working as per the standard coordinate
system.
Absolute system of dimensioning or
fixed zero system dimensioning
+Y P2
150
P3
125
P4 100
P1
50
p4
-X +X
-150 -100 - 50 -25 50 100 150
- 25
P7
P5 - 50
P6 -100 P8
-Y
Absolute system of dimensioning or
fixed zero system dimensioning
• P1 ( 50,50)
• P2 (150, 150)
• P3 (- 50, 125)
• P4 (-150, 100)
• P5 (-25, - 50)
• P6 (-100, -100)
• P7 (100, -25)
• P8 (150, -100)
Incremental system of dimensioning or
floating zero system dimensioning
+Y P2
150
P3
125
P4 100
P1
50
p4
-X +X
-150 -100 - 50 -25 50 100 150
- 25
P7
P5 - 50
P6 -100 P8
-Y
Incremental system of dimensioning or
floating zero system dimensioning
• P1 ( 50,50)
• P2 (100, 100)
• P3 (- 200, - 25)
• P4 (-100, - 25)
• P5 (125, - 150)
• P6 (-75, - 50)
• P7 (200, 75)
• P8 (50, -75)
Basics of Programming
40
30
(-40,20) (-20,20)
20
3 2
1
10
(0,10)
40
30
(-40,20) (-20,20)
20
3 2
1
10
(0,10)
Y Y
G02 G03
X X
Circular interpolation G02/G03
-30.0 S -30.0
S
-15.00
R15
-15.0
35.0 R15
E
20.0 E
35.0 20.0
X0,Y0
X0,Y0
G03 G02
S-Starting point
Clockwise Interpolation E- End point
Absolute Mode: G02 X-15.0 Y20.0 R15. F0.12;
Incremental Mode: G02 X15. Y-15. R15. F0.12;
Counter Clockwise Interpolation
Absolute Mode: G03 X-15.0 Y 20.00 R15. F0.12;
Incremental Mode: G03 X15. Y-15. R15. F0.12;
DIMENSIONING COMMAND
There are two dimensioning commands
• G 90 G 90 G 04
• G 91
• G 00 G 00 G 28
• G 01
• G 02
• G 03
• G 94 G 54
G 95 G 94
• G 40 G 40
• G 41
• G 42
PROGRAM EDITING
Part program comprises of a string of blocks written one after the other.
Program starts with program number
Consists of series of blocks - dimensional and non-
dimensional data like feed, speed, auxiliary functions etc.,
Program ends with program end code.
Program Number:-
Program Number is useful in identification of a program and calling a
program.
Program Number starts from letter “O” i.e.., o0001;
Program End:-
Character for program end is written in the last block of the part program.
Character for main program end is M02 / M30
Character for sub program end is M99
Program Blocks:-
A program is made up a number of blocks.
Similarly a block is made up a number of words.
Word: Consists of an address character and a string of digits
(alphanumeric character)
An address character is normally an alphabet. (X,Z,S,F ….etc.)
the string of digits may be specified with or without a sign and
with a decimal point. (X-243.127, Z242.127)
N0005 GO1 X -200.000 Z -200.000 M9 F0.3 ;
MISCELLANEOUS FUNCTION
BLOCK NUMBER
PREPARATORY FUNCTION
Program editing
Making a sample program for simple component with one tool
25 80 25
80 POSITION X Y
1 0.0 -26.0
2 0.0 106.0
3 130.0 106.0
1MM
4 130.0 -26.0
Z0
2MM
Program editing
Making a sample program for simple component with one tool
M03 S800;
M07;
1MM
Z-2.0;
G01 Y106.0 F0.4;
G00 X130.0;
G01 Y-26.0 F0.4;
M05;
Z0
M09;
2MM
G00 Z50.0;
G28 G91 Z0.0;
G28 X0.0 Y0.0;
M30;
Program editing
Making a sample program for simple component with one tool
35 100 35 POSITION X Y
50
1 10.0 -26.0
2 10.0 76.0
3 160.0 76.0
1MM
4 160.0 -26.0
Z0
2MM
Program editing
Making a sample program for simple component with one tool
15 25 25 POSITION X Y
1 15.0 15.0
2 40.0 15.0
3 65.0 15.0
4 65.0 40.0
5 40.0 40.0
25
6 15.0 40.0
15
Z0
15
Program editing
O0003( DRILLING);
G28 G91 GOO Z0.0;
TOOL : DIA 8mm HSS Drill, Vc = 40 mtrs/min , F= .1 mm/rev , G55,
G28 X0.0 Y0.0 ;
H2 MATERIAL: Alluminium
M6 T2 ( DIA 8MM DRILL);
G00 G90 G95 G55 X15.0 Y15.0;
G43 H2 Z5.0;
15 25 25 M03 S1592;
M07;
G01 Z-15.0 F0.1;
G00 Z5.0;
X40.0 ;
G01 Z-15.0 F0.1;
G00 Z5.0;
25
X65.0;
G01 Z-15.0 F0.1;
G00 Z5.0;
15
Y40.0;
G01 Z-15.0 F0.1;
G00 Z5.0;
X40.0;
G01 Z-15.0 F0.1;
G00Z5.0;
X15.0;
Z0 G01 Z-15.0 F0.1;
G00 Z5.0;
15 Z50.0;
M05;
M09;
G28 G91 Z0.0;
G28 X0.0 Y0.0;
M30;
Program editing
O0003( DRILLING);
G28 G91 GOO Z0.0;
G28 X0.0 Y0.0 ;
M6 T2 ( DIA 8MM DRILL);
G00 G90 G95 G54 X15.0 Y15.0;
G43 H1 Z5.0; (+ve T offset)
M03 S1592;
M07;
M98 P0004;
X40.0 ;
M98 P0004;
X65.0; O0004 ( SUB PROGRAM)
M98 P0004; G01 Z-15.0 F0.1;
Y40.0 ; G00 Z5.0;
M98 P0004; M99;
X40.0;
M98 P0004;
X15.0;
M98 P0004;
Z50.0;
M05;
M09;
G28 G91 Z0.0;
G28 X0.0 Y0.0;
M30;
Program editing
Making a sample program for simple component with one tool
4 15
3
30 X 30 15
15
15
1 2
5
POSITION X Y
5 1 -17.5 (12.5+5) 2.5
2 57.5 2.5
Z0 3 57.5 57.5
2 4 2.5 57.5
5 2.5 -17.5
Program editing
Making a sample program for simple component with one tool
O0003( SQUARE MILLING);
G28 G91 GOO Z0.0;
G28 X0.0 Y0.0 ;
M6 T2 ( DIA 25 MM MILLING CUTTER );
G00 G90 G95 G56 X-17.5 Y2.5;
G43 H4 Z5.0;
M03 S2547;
M07;
Z- 2.0 ;
G01 X 57.5 F 0.4;
Y 57.5 ;
X 2.5;
Y -17.5;
G00 Z50.0;
M05;
M09;
G28 G91 Z0.0;
G28 X0.0 Y0.0 ;
M30;
Program editing
Making a sample program for simple component with one tool
15
30 X 30 15
15
15
POSITION X Y
1 -13 7
2 53 7
Z0 3 53 53
2 4 7 53
5 7 -13
Program editing
Making a sample program for simple component with one tool
POSITION X Y
1 0.0 0.0
2 3.0 0.0
3 3.0 3.0
4 -3.0 3.0
22 X 22
5 -3.0 -3.0
6 3.0 -3.0
7 3.0 0.0
Z0
2 8 0.0 0.0
Program editing
Making a sample program for simple component with one tool
POSITI X Y
ON
30
1 -21.0 0.0
2 -15.0 0.0
3 -21.0 0.0
2 O0001;
G28 G91 G0 Z0.0;
G28 X0.0 Y0.0;
M6 T1;
G00 G90 G95 G56 X-21.0 Y0.0;
G43 H4 Z5.0; (X17+4)
M03 S3185;
M07;
22 Z-2.0;
G01 X-15.0 Y0.0 F0.2;
G02 I 15.0 J 0.0;
Z0 G01 X-21.0 Y 0.0 F0.2 ;
2
G00 Z50.0;
M05;
M09;
G28 G91 ZO.O;
G28 X0.0 Y0.0;
M30;
Program editing
Making a sample program for simple component with one tool
30
TOOL : DIA 16MM END MILL, Vc =80mtrs/min ,
F= .2 mm/rev , G56, H4, 2 FLUTE
MATERIAL: Alluminium
30
22
POSITI X Y
ON
Z0 1 -25.0 0.0
2 2 -19.0 0.0
3 -25.0 0.0
Program editing
Making a sample program for simple component with one tool
30
TOOL : DIA 16MM END MILL, Vc =80mtrs/min ,
F= .2 mm/rev , G56, H4, 2 FLUTE
MATERIAL: Alluminium
30
O0001;
G28 G91 G0 Z0.0;
G28 X0.0 Y0.0;
M6 T1;
G00 G90 G95 G56 X-25.0 Y0.0;
2
G43 H4 Z5.0;
M03 S1591;
M07;
Z-2.0;
G01 X-19.0 Y0.0 F0.2;
G02 I 19.0 J 0.0;
22
G01 X-25.0 Y 0.0 F0.2 ;
G00 Z50.0;
Z0 M05;
2 M09;
G28 G91 ZO.O;
G28 X0.0 Y0.0;
M30;
Program editing
Making a sample program for simple component with one tool
30
TOOL : DIA 8MM END MILL, Vc =80mtrs/min , F=
.2 mm/rev , G57, H5, 2 FLUTE
MATERIAL: Alluminium
POSITION X Y
1 0.0 0.0
2 7.0 0.0
30
3 0.0 0.0
O0009;
G28 G91 G0 Z0.0;
G28 X0.0 Y0.0;
M6 T2( DIA 8MM END MILL);
G00 G90 G95 G57 X0.0 Y0.0;
G43 H5 Z5.0;
M03 S3185;
M07;
G01 Z-2.0F0.2;
22
X7.0 ;
G02 I -7.0 J 0.0;
G01 X0.0 Y 0.0 ;
Z0 G00 Z50.0;
2 M05;
M09;
G28 G91 Z0.0;
G28 X0.0 Y0.0;
M30;
Program editing
Making a sample program for simple component with one tool
30
TOOL : DIA 8MM END MILL, Vc =80mtrs/min , F=
.2 mm/rev , G57, H5, 2 FLUTE
MATERIAL: Alluminium
POSITION X Y
1 0.0 0.0
2 7.0 0.0
30 3 11.0 0.0
4 0.0 0.0
O0010;
G28 G91 G0 Z0.0;
G28 X0.0 Y0.0;
G28 G91 Z0.0;
M6 T3( DIA 8MM END MILL);
G28 X0.0 Y0.0;
G00 G90 G95 G57 X0.0 Y0.0;
M30;
G43 H5 Z5.0;
M03 S3185;
M07;
G01 Z-2.0F0.2;
30
X7.0 ;
G02 I -7.0 J 0.0;
G01 X11.0;
Z0 G02 I -11.0 J0.0;
2 G01 X0.0 Y 0.0 ;
G00 Z50.0;
M05;
M09;
Program editing
Making a sample program for simple component with one tool
30
TOOL : DIA 16MM END MILL, Vc =80mtrs/min ,
F= .2 mm/rev , G57, H5, 2 FLUTE
MATERIAL: Alluminium
30
22
POSITION X Y
Z0 1 0.0 0.0
2
2 3.0 0.0
3 0.0 0.0
Program editing
Making a sample program for simple component with one tool
30
TOOL : DIA 16MM END MILL, Vc =80mtrs/min ,
F= .2 mm/rev , G57, H5, 2 FLUTE
MATERIAL: Alluminium
O0009;
G28 G91 G0 Z0.0;
G28 X0.0 Y0.0;
30
M6 T2( DIA 16MM
CUTTER);
G00 G90 G95 G57 X0.0
Y0.0;
G43 H5 Z5.0;
M03 S1591;
M07;
G01 Z-2.0F0.2;
X3.0 ;
22 G02 I -3.0 J 0.0;
G01 X0.0 Y 0.0 ;
G00 Z50.0;
Z0 M05;
2 M09;
G28 G91 Z0.0;
G28 X0.0 Y0.0;
M30;
Program editing
Making a sample program for simple component with one tool
30
TOOL : DIA 16MM END MILL, Vc =80mtrs/min ,
F= .2 mm/rev , G57, H5, 2 FLUTE
MATERIAL: Alluminium
30
30
POSITION X Y
Z0 1 0.0 0.0
2 2 7.0 0.0
3 11.0 0.0
4 0.0 0.0
Program editing
Making a sample program for simple component with one tool
30
TOOL : DIA 16MM END MILL, Vc =80mtrs/min ,
F= .2 mm/rev , G57, H5, 2 FLUTE
MATERIAL: Alluminium
O0010;
G28 G91 G0 Z0.0;
G28 X0.0 Y0.0;
M6 T3( DIA 16 MM END
30
MILL);
G00 G90 G95 G57 X0.0
Y0.0;
G43 H5 Z5.0;
M03 S1591;
M07;
G01 Z-2.0F0.2;
X7.0 ;
30 G02 I -7.0 J 0.0;
G01 X0.0 Y 0.0 ;
G00 Z50.0;
Z0 M05;
2 M09;
G28 G91 Z0.0;
M30;
Program editing
2
2
70 x 70
100 x 100
G41 G42
PROGRAMMED PATH
G01 Y-1.0;
1&2 5 3 81.0
G00 G40 Y-30.0;
4 105.0
M05; (25+80)
Z0 M09; 5 -1.0
G00 Z50.0;
2MM
G28 G91 Z0.0; 6 - 30.0
POSITION X Y
25 80 25
80
1 -1.0 -26.0
2 25.0
3 81.0
4 105.0
5 -1.0
1MM
6 130.0 - 30.0
Z0
2MM
Program editing
Making a sample program for simple component with one tool with cutter radius compensation
Z0 M09; 4 -30.0
G00 Z50.0;
2MM
G28 G91 Z0.0;
G28 X0.0 Y0.0;
M30;
Program editing
Making a sample program for simple component with one tool with cutter radius compensation
35 100 35
50
POSITION X Y
1 9.0 -26.0
2 35
3 51.0
4 135.0
1MM 5 -1.0
6 160.0 -30.0
Z0
2MM
Program editing
Making a sample program for simple component with one tool with cutter radius compensation
5 4
15
30 X 30 15
15
15 POSITION X Y
1&2 3
1 -17.5 (5 + 12.5) 1.5 (15 - 12.5-1)
X0,Z0 5
2 15.0
3 45.0 (15+30)
6&7
4 45.0 (15+30)
Z0 5 15.0
2 6 -5.0
7 -20.0
Program editing
Making a sample program for simple component with one tool with cutter radius compensation
30 X 30 15
15
15 POSITION X Y
1 -13.0 6.0
5
2 15.0
3 45.0
4 45.0
5 15.0
Z0
6 -5.0
2
7 -15.0
Program editing
Making a sample program for simple component with one tool with cutter radius compensation
POSITION X Y
1 0.0 0.0
2 11.0 0.0
3 11.0 11.0
4 -11.0 11.0
22 X 22
5 -11.0 -11.0
6 11.0 -11.0
7 11.0 0.0
Z0
2 8 0.0 0.0
Program editing
Making a sample program for simple component with one tool with cutter radius compensation
TOOL : DIA 16MM END MILL, Vc =80mtrs/min ,
F= .2 mm/rev , G56, H4, 2 FLUTE
MATERIAL: Alluminium
S
S START PONT OF ARC CENTER OF ARC J
J Center of arc -I
Details –
From start point to center of arc towards –ve diren
then I = -ve value
I
G02 I 11.0 J 0.0;
IN G02 I11 J0.0 START POINT OF RADIOUS ALONG X AXIS , HENCE J =0.0
Program editing
Making a sample program for simple component with one tool with cutter radius compensation
30
TOOL : DIA 8MM END MILL, Vc =80mtrs/min , F=
.2 mm/rev , G56, H4, 2 FLUTE
MATERIAL: Alluminium
POSITI X Y
ON
30
1 -21.0 0.0
2 -11.0 0.0
3 -21.0 0.0
O0001;
2
G28 G91 G0 Z0.0;
G28 X0.0 Y0.0;
M6 T1;
G00 G90 G95 G56 X-21.0 Y0.0;
G43 H4 Z5.0;
M03 S3185;
M07;
Z-2.0;
22
G01 G41 X-11.0 Y0.0 F0.2;
G02 I 11.0 J 0.0;
G01 G40 X-21.0 Y 0.0 F0.2 ;
Z0 G00 Z50.0;
2 M05;
M09;
G28 G91 ZO.O;
G28 X0.0 Y0.0;
M30;
Program editing
Making a sample program for simple component with one tool with cutter radius compensation
30
TOOL : DIA 16MM END MILL, Vc =80mtrs/min ,
F= .2 mm/rev , G56, H4, 2 FLUTE
MATERIAL: Alluminium
30
22 POSITI X Y
ON
1 -25.0 0.0
Z0
2 -11.0 0.0
2
3 -25.0 0.0
Program editing
Making a sample program for simple component with one tool with cutter radius compensation
30
TOOL : DIA 16MM END MILL, Vc =80mtrs/min ,
F= .2 mm/rev , G56, H4, 2 FLUTE
MATERIAL: Alluminium
O0001;
30 G28 G91 G00 Z0.0;
G28 X0.0 Y0.0;
M6 T1;
G00 G90 G95 G56 X-25.0 Y0.0;
G43 H4 Z5.0;
2 M03 S1591;
M07;
Z-2.0;
G01 G41 D4 X-11.0 Y0.0 F0.2;
G02 I 11.0 J 0.0;
G01 G40 X-25.0 Y 0.0 F0.2 ;
G00 Z50.0;
22 M05;
M09;
G28 G91 ZO.O;
Z0 G28 X0.0 Y0.0;
2 M30;
Program editing
Making a sample program for simple component with one tool with cutter radius compensation
30
TOOL : DIA 16MM END MILL, Vc =80mtrs/min ,
F= .2 mm/rev , G57, H5, 2 FLUTE
MATERIAL: Alluminium
30
22
POSITIO X Y
N
1 0.0 0.0
Z0 2 11.0 0.0
2
3 0.0 0.0
Program editing
Making a sample program for simple component with one tool with cutter radius compensation
30
TOOL : DIA 16MM END MILL, Vc =80mtrs/min ,
F= .2 mm/rev , G57, H5, 2 FLUTE
MATERIAL: Alluminium
O0009;
G28 G91 G0 Z0.0;
G28 X0.0 Y0.0;
30
M6 T2( DIA 16MM END MILL);
G00 G90 G95 G57 X0.0 Y0.0;
G43 H5 Z5.0;
M03 S1591;
M07;
G01 Z-2.0 F0.2;
G42 X 11.0 Y0.0 D5 ; details
G02 I -11.0 J 0.0;
G01 G40 X0.0 Y 0.0 ;
22 G00 Z50.0;
M05;
M09;
G28 G91 Z0.0;
Z0 G28 X0.0 Y0.0;
2 M30;
Details -
•If start point & e. p. of arc same then give start
point only
Program editing
Making a sample program for simple component with one tool
30
TOOL : DIA 16MM END MILL, Vc =80mtrs/min ,
F= .2 mm/rev , G57, H5, 2 FLUTE
MATERIAL: Alluminium
30
30
POSITION X Y
Z0
2
1 0.0 0.0
2 15.0 0.0
3 0.0 0.0
Program editing
Making a sample program for simple component with one tool
30
TOOL : DIA 16MM END MILL, Vc =80mtrs/min ,
F= .2 mm/rev , G57, H5, 2 FLUTE
MATERIAL: Alluminium
O0010;
G28 G91 G0 Z0.0;
G28 X0.0 Y0.0;
M6 T3( DIA 16MM END MILL);
G00 G90 G95 G57 X0.0 Y0.0;
30 G43 H5 Z5.0;
M03 S3185;
M07;
G01 Z-2.0F0.2;
G01 G42 D4 X15.0;
G02 I -15.0 J0.0; details
G01 G40 X0.0 Y 0.0 ;
G00 Z50.0;
M05;
30 M09;
G28 G91 Z0.0;
G28 X0.0 Y0.0;
Z0 M30;
2
Details –
From start point to center of arc towards
–ve diren then I = -ve value
Program editing
Making a sample program for simple component with one tool
30
TOOL : DIA 16MM END MILL, Vc =80mtrs/min ,
F= .2 mm/rev , G57, H5, 2 FLUTE
MATERIAL: Alluminium
O0010;
G28 G91 G0 Z0.0;
G28 X0.0 Y0.0;
M6 T3( DIA 16MM END MILL);
G00 G90 G95 G57 X0.0 Y0.0;
30 G43 H5 Z5.0;
M03 S3185;
M07;
G01 Z-2.0F0.2;
G01 G42 D4 X-15.0;
G02 I 15.0 J0.0; details
G01 G40 X0.0 Y 0.0 ;
G00 Z50.0;
M05;
30 M09;
G28 G91 Z0.0;
G28 X0.0 Y0.0;
Z0 M30;
2
Details –
From start point to center of arc towards
+ve diren then I = + ve value
CANNED CYCLE
A single G programming word that performs a series of
commands that would otherwise require multiple lines of
programming.
There are at least two reasons for using canned cycles. The
first is the economy of code. A single bore would take several
lines of code to execute.
INITIAL
LEVEL
POINT R POINT R
Z0.0 Z0.0
2/7/2019
HOLE BOTTOM HOLE BOTTOM
60.0 Program editing
40.0
O0001( DRILLING);
20.0
G28 G91 GOO Z0.0;
G28 X0.0 Y0.0 ;
M6 T1 (DIA 8 MM HSS DRILL);
G00 G90 G95 G54 X20.0 Y 30.0;
30.0
G43 H1 Z5.0;
M03 S 3185;
M07;
G99G81 Z- 22.0 R2.0 F0.1;
Z0
X40.0 ;
X60.0 ;
G00 G80 Z50.0;
20.0
M05;
M09;
G28 G91 Z0.0;
G28 X0.0 Y0.0 ;
TOOL : DIA 8MM HSS DRILL, Vc =40mtrs/min ,
M30;
F= .1 mm/rev , G54, H1,
MATERIAL: Alluminium
MULTIPLE REPEATITIVE CANNED CYCLE
G82 BORING CYCLE ( Spot Facing, Counter Sinking, Chamfering) . G82
G82 X_ Y_ Z _ R _ F_ P_;
X = Hole Position In X Axis.
Y = Hole Position In Y Axis.
Z = Depth Of Hole.
R = Retraction Plane
F = Feed
P = Dwell Time
INITIAL
LEVEL
POINT R POINT R
Z0.0 Z0.0
2/7/2019
HOLE BOTTOM HOLE BOTTOM
Program editing
45.0
O0001( DRILLING);
G28 G91 GOO Z0.0;
25.0
G28 X0.0 Y0.0 ;
M6 T1 (DIA 6 MM HSS DRILL);
G00 G90 G95 G54 X25.0 Y 35.0;
G43 H1 Z5.0;
35.0
M03 S 3185;
M07;
G99G81 Z- 17.0 R2.0 F0.1;
X45.0 ;
G00 G80 Z50.0;
8.0
M05;
Z0
M09;
10.0 G28 G91 Z0.0;
15.0 G28 X0.0 Y0.0 ;
M6 T2 ( DIA 8 MM BORING BAR);
G00 G90 G95 G54 X25.0 Y35.0;
6.0 G43 H2 Z5.0;
M03 S1500;
M07;
TOOL1 : DIA 6MM HSS DRILL, Vc =40mtrs/min , G99 G82 Z- 10.0 R2.0 P1000 F0.12;
F= 0 .1 mm/rev , G54, H1
X45.0; (dwell)
TOOL2 : DIA 8 MM BORING BAR Vc = 60Mtrs/Min G00 G80 Z50.0;
F = 0 .12MM/Rev, G54, H2, M05;
MATERIAL: Alluminium
M09;
G28 G91 Z0.0;
G28 X0.0 Y0.0;
M30;
MULTIPLE REPEATITIVE CANNED CYCLE
G83 PECK DRILLING .
G83 X_ Y_ Z _ R _ F_ Q_; G83
X = Hole Position In X Axis.
Y = Hole Position In Y Axis.
Z = Depth Of Hole.
R = Retraction Plane
F = Feed
Q = Peck Amount
INITIAL INITIAL
LEVEL LEVEL
POINT R POINT R
Z0.0 Z0.0
Q
Q
Q
Q
Q Q
2/7/2019 HOLE BOTTOM HOLE BOTTOM
60.0 Program editing
40.0
20.0
O0001( DRILLING);
G28 G91 GOO Z0.0;
G28 X0.0 Y0.0 ;
M6 T1 (DIA 8 MM HSS DRILL);
30.0 G00 G90 G95 G54 X20.0 Y 30.0;
G43 H1 Z5.0;
M03 S 3185;
M07;
G99G83 Z- 34.0 R2.0 Q10.0 F0.1;
Z0
X40.0 ;
X60.0 ;
30.0
G00 G80 Z50.0;
M05;
M09;
G28 G91 Z0.0;
G28 X0.0 Y0.0 ;
TOOL : DIA 8MM HSS DRILL, Vc =40mtrs/min ,
F= .1 mm/rev , G54, H1, M30;
MATERIAL: Alluminium
MULTIPLE REPEATITIVE CANNED CYCLE
G73 HIGH SPEED PECK DRILLING .
G73 X_ Y_ Z _ R _ F_ Q_; G73
X = Hole Position In X Axis.
Y = Hole Position In Y Axis.
Z = Depth Of Hole.
R = Retraction Plane
F = Feed
Q = Peck Amount
INITIAL INITIAL
LEVEL LEVEL
POINT R POINT R
Z0.0 Z0.0
Q
Q
Q
Q
Q Q
2/7/2019 HOLE BOTTOM HOLE BOTTOM
60.0 Program editing
40.0
INITIAL
LEVEL
POINT R POINT R
CCW
Z0.0 Z0.0
2/7/2019
HOLE BOTTOM HOLE BOTTOM
CW
60.0 Program editing
40.0
INITIAL
LEVEL
POINT R POINT R
CW CW
Z0.0 Z0.0
2/7/2019
HOLE BOTTOM HOLE BOTTOM
CCW CCW
60.0 Program editing
40.0
INITIAL
LEVEL
POINT R POINT R
Z0.0 Z0.0
2/7/2019
HOLE BOTTOM HOLE BOTTOM
Program editing
45.0
O0001;
G28 G91 GOO Z0.0;
25.0
G28 X0.0 Y0.0 ;
M6 T1 (DIA 7.5MM HSS DRILL);
G00 G90 G95 G54 X25.0 Y 35.0;
G43 H1 Z5.0;
35.0
M03 S 2553;
M07;
G99G81 Z- 17.0 R2.0 F0.12;
X45.0 ;
G00 G80 Z50.0;
8.0 M05;
Z0
M09;
G28 G91 Z0.0;
15.0 G28 X0.0 Y0.0 ;
M6 T2 ( DIA 8 MM REAMER);
G00 G99 G85 G54 X25.0 Y35.0;
G43 H2 Z5.0;
M03 S1500;
M07;
TOOL1 : DIA 7.5MM HSS DRILL, Vc =60mtrs/min G99 G85 Z- 16.0 R2.0 F0.1;
, F= .12 mm/rev , G54, H1
X45.0;
TOOL2 : DIA 8 MM REAMER Vc = 40Mtrs/Min G00 G80 Z50.0;
F = = .1MM/Rev, G54, H2, M05;
MATERIAL: Alluminium
M09;
G28 G91 Z0.0;
G28 X0.0 Y0.0;
M30;
MULTIPLE REPEATITIVE CANNED CYCLE
G86 ROUGH BORING CYCLE G86
G86 X_ Y_ Z _ R _ F_ ;
INITIAL
LEVEL
POINT R POINT R
Z0.0 Z0.0
2/7/2019
HOLE BOTTOM HOLE BOTTOM
Program editing
O0001(BORING);
5 G28 G91 GOO Z0.0;
G28 X0.0 Y0.0 ;
5
M6 T1 (BORING TOOL);
15 G00 G90 G95 G54 X20.0 Y 35.0;
G43 H1 Z30.0;
Z0 M03 S 1500;
M07;
G98 G86 Z- 1.0 R17.0 F0.1;
X50.0 R22.0;
Dia 20 X80.0 R27.0;
G00 G80 Z50.0;
M05;
M09;
35 G28 G91 Z0.0;
20 30 30 20 G28 X0.0 Y0.0 ;
M30;
MULTIPLE REPEATITIVE CANNED CYCLE
G76 FINE BORING CYCLE G76
G76 X_ Y_ Z _ R _ Q _ F_ ;
X = Hole Position In X Axis.
Y = Hole Position In Y Axis.
Z = Depth Of Hole.
R = Retraction Plane
F = Feed
Q = Shift Amount at the bottom of hole.
INITIAL
LEVEL
POINT R POINT R
Z0.0 Z0.0
Q Q
2/7/2019
HOLE BOTTOM HOLE BOTTOM
Program editing
O0001 (BORING);
G28 G91 GOO Z0.0;
G28 X0.0 Y0.0 ;
5 M6 T1 (BORING TOOL);
5 G00 G90 G95 G54 X20.0 Y 35.0;
G43 H1 Z30.0;
15 M03 S 1500;
M07;
Z0 G98 G76 Z- 1.0 R17.0 Q 0.5 F0.1;
X50.0 R22.0;
X80.0 R27.0;
G00 G80 Z50.0;
Dia 20
M05;
M09;
G28 G91 Z0.0;
G28 X0.0 Y0.0 ;
35 M30;
20 30 30 20
POLAR CO-ORDINATE COMMAND
M05 M05
20.0 O0100;
G00 X 20.0 Y- 20.0 M7;
G98 G81 Z-10.0 R3.0 F0.12;
X70.0;
20.0 50.0 G80;
M99;
END
OF
PROGRAM