vmc programming
vmc programming
By:
Sudhir Nair
10.00 am Pre-Assessment
11.00 am Tea-Break
3.15 pm Tea-Break
5.00 pm Post-Assessment
CNC 4
• A link has been sent to you
• Please take the pre-
assessment and submit
• Your attendance will be
marked only if you submit
both, pre-assessment and
post-assessment
Pre-Assessment
CNC 5
• Your Name
• Your Organization
• Your CNC experience
Introductions
CNC 6
AG END A
What is CNC Milling machine?
CNC Milling machine parts and their
functions
How to ON the machine
How to do size controlling in CNC Milling
How to do component setting in CNC
Milling
CNC Milling opertion
Program structure
G & M Codes
Chamfering .
Usage of M99P4
Canned Cycles
G81,G82,G83,G84,G85,G86,G87,G76G73,G
74
CNC Milling Maintenance check sheet
Tool nose radius compensation
CNC Alarms in CNC Milling . 7
Work sheets
Face Milling
Side Milling
Slot Milling
Face milling with subprogram
Side Milling with subprogram
Slot Milling with subprogram
Chamfer milling- Angle
Chamfer milling –Coordinates.
Radius milling CW & CCW.
Slot milling or side milling with G41, G42.
Drilling, Reaming, Boring
Hole chamfering
CNC 8
WHAT IS A CNC MILLING
MACHINE
CNC 9
Some Basics!
CNC 1
0
Benefits of CNC
• Increases PROFITS
• Increase Quality
• Increase Productivity
• Fa s t o p e r a t i o n s - M i n m a n u a l w o r k w a s t a g e .
CNC 1
1
VMC PARTS
CNC 1
2
MAIN PARTS OF VMC MACHINE
6. BALL SCREW
7. VMC TOOLS
CNC Machine Parts
CNC Machine
1
4
SPINDLE Side
Sl no Machine part Function Remarks
Spindle Side
1
5
TURRET Side
Sl no Machine part Function Remarks
Turret Side
1 Turret For holding & indexing tool
2 Servo Motors X & Z
3 Encoder X & Z
4 Ball Screws X & Z
5 Turret coolant
arrangement
6 Tools Square shank
7 Tools Round Shank
8 Turret pocket For clamping tools
9 Tool Packaging For holding tool In turret pocket
10 Boring bar block For holding boring bar sleeve
11 Boring bar sleeve For holding boring bar On turret
CNC 1
7
CNC System
Sl no Machine part Function Remarks
Computer
1 Display Screen
2 Soft Keys
5 JOG Selection
6 Feed control
7 Spindle control
9 Emergency
10 MPG Handle
11 Cycle start
12 Turret Indexing
2
0
VMC Tooling Accessories
Sl no Machine part Function Remarks
1 3jaw chuck Round job holding
2 T-nut To tighten the holding
device
3 M16Stud To tighten the holding
device
4 Claimp To tighten the holding
device
5 M16 nut & step block To tighten the holding
device
6 Needle file For burr removal
7 Wrench er 32 Tool to tighten Er 32 tool holder
8 Nylon Hammer For Hammering
9 Test bar 150*40 Check spindle Run out Of spindle
10 Pull stud After damage change pull
stud
11 Chip collection magnet For chip collection
12 Tool tight stand To tighten the tool Changing tool holder
13 Iron rod for chip removal For pulling chips From coolant tray. 2
1
CNC Milling Tool parts
Sl no Machine part Function Remarks
1 Tool Holder Holding tool end mill
2 Boring Head Use boring operation
3 T-NUT/stud/nut For Clamping fixture/chuck
4 Stud For locking boring bar in sleeve
5 Cutter For holding insert
6 Wrench for Er collect Tight & open tool
7 Claimp For Clamping fixture/chuck
8 Dial stand For Check run out tool In middle of tool holder
9 Allen keys For tightening insert clamps
10 Star Screws For tightening small inserts
11 File For removing burr
12 Pipe For tightening
13 3 JAW chuck For holding component
2
2
CNC Measuring instruments
Sl no Machine part Function Remarks
1 Vernier For length checking
2 Micrometer For dia checking
3 Dial Gauge For component inspection
4 V block For runout checking
5 Height gauge For inspection of component
6 Magnetic block For holding puppy dial Chuck run out , center setting
7 Micron(Puppy) dial For machine inspection
8 10 micron dial For component inspection During product development
9 Level indicator For machine levelling During machine installation
10 Profile projector For chamfer , radius checking
11 Surface finish tester For surface finish checking
12
13
2
3
VMC MACHINE COMPUTER PANEL
CRT DESCRIPTION
DISPLAY NEUMERICAL
SCREEN & ALPHABET
KEYS
SOFT KEYS POSITION
PROGRAM
JOG
DELETE
AUTO
MDI
RESET
EDIT
SPINDLE
M/C RPM KEY
LOCK
CYCLE
START FEED KEY
CYCLE
STOP PROGRAM
REFERANCE EDIT ON/OFF
RETURN KEY
OPTIONAL STOP
FEED START
FEED STOP
BLOCK
SKIP
REMOTE
MACHINE ON
MAGINE JOG
MODE
TOOL CLAIMP
ARM JOG MODE DRY RUN OR DECLAIMP
JOG MODE
ALPHA NEUMERICAL
KEYS
OPEERATIONA
KEYS
MODES IN CNC MACHINE
MODES USAGE
1 AUTO mode For cycle the program and making component in mass
production.
2 EDIT mode For program input , change corrections etc.
3 MDI mode For basic machine operations by command. (M03,04,10,11)
For parameter change.
4 REFERANCE RETURN For taking turret to home position
5 JOG mode For basic machine operations manually.(Turret index , coolant
ON/OFF, Spindle rotation CW & CCW)
6 HANDLE mode (MPG- For movement of turret in “X” ‘’ Y’’& “Z” directions
manual Pulse generator) X1,X10,X100 – 1,10,100 micron movement.
7 SINGLE BLOCK mode To run the program line by line-used during program prove
out.
8 OPTIONAL STOP mode To stop the program for inspection after running each tool
9 BLOCK SKIP If we put “/” in front of each line and on this button that line
will get skip during running of the program.
10 TURRET INDEX To call the required tool during offset taking , insert change.
2
7
4 MOST FREQUENTLY USED
OPERATING KEYS
MODES USAGE
1 POSITION Shows the position , part count and run time.
2 PROGRAM For program related work
3 MDI mode For executing manual operations by codes
4 SYSTEM For opening system page
5 MESSAGE For showing alarm
6 CUSTOM GRAPH To show the graph
7 RESET To reset the program in edit mode
2
8
How to On the CNC Machine
ACTIVITY REMARKS
1 On Main.
2 On CNC servo
3 On Hydraulic
4 On CNC
5 Select Handle
6 Select X 100 manual speed button.
7 Move turret in X-Y & Z- direction.
8 Reference the turret.
9 Select Jog mode Optional
10 Press Turret Index button. Optional
11 Press Edit button
12 Press Program button
13 Press Reset button
14 Press Auto button
15 Press Cycle start button. 2
9
HOW TO CONTROL SIZE IN VMC
3
0
WORK OFFSET
Work origin
X zero value
Y Zero value
3
1
TOOL Z OFFSET
Tool
Work origin
3
2
TOOL WAER AND TEAR .
When do cutting, tool will have wear & tear.
To compensate that we will do corrections in Z tool offset and
change the tool radius or Programe changinge
If do tool radius + (0.05
+input) ID &outer diameter
will Decrease
If do tool radius – (-0.05
+input) ID&outer diameter
will increase
When depth size not ok when give the tool offset z offset depth less
the .05 the offset give -.05.depth the more .05 the offset give +.05
3
3
WEAR OFFSET for “Z”
Z- If do Z – (-0.05 +input)
Tool will move inside.
If do Z – (-0.05 +input)
chamfer will increase
3
4
WORK OFFSET
When all tools need to move inside or outside ,or z axis use work
offset
Z- Z+
3
6
Step 1 –Prepare the jaws for holding
the parts
1) Decide where to clamp the component – Fixture /chuck .
2) Select program
3) Check the fixture
4) Tight the fixture (holding device)
5) Dial the holding device(fixure/jig/chuck etc.)
6) Do Alignment of jaws (Equal distance from center-Check with TNMG or CCMT tool)
7) Set clamp pressure
8) Select OD/ID button.
9) Touch tool on ID or OD where dummy to hold.
10) Make relative position U 0.0 by pressing relative , origin.
11) Touch tool on dummy butting face.
12) Make relative position W 0.0 by pressing relative , origin.
13) Cut the jaws & make space for holding Dummy or ring.
14) Select OD/ID button.
15) Holding dummy or ring by clamping
16) Cut on jaws and make space for holding the component.
17) Take out dummy/ring.
18) Clamp part (Part must be sliding fit)
19) Rotate the part in MDI mode and check part is rotating smoothly.
20) If not repeat step 9 to 19 again till parts rotate smoothly.
3
7
Step 2 – Taking “Z” & “X” offset.
3
8
Step 3 – Prove out the program.
1) ON Auto mode
2) ON single block
3) Run program.
4) Check part dimensions
5) Do proper corrections in wear or geometry.
6) Run again.
7) Part will come ok.
3
9
Setup Display
4
0
G & M Codes
4
1
Basic G Codes
G00 Air cut movement . Tool moves in air
G01 Material Cut movement in Feed. Facing , Boring , OD Turning &
chamfering.
G02 Circular interpolation Clockwise
G03 Circular interpolation Counter Clock wise
G04 Dwell time –Used mainly in drilling.
G10 Zero offset shift G10 X…Y….Z….
G11 Zero offset cancel
G17 XY PALNE (Z=Spindle)
G18 ZX Plane(Y=Spindle)
G19 YZ Plane (X=Spindle)
G20 Inch mode
G21 Mm mode
4
2
G29 Return from reference point
G30 Return to 2nd or 3rd reference
G41
Tool nose radius compensation left
G42
Tool nose radius compensation right
G43 Tool length compensation + direction
G45
G46
G54,55,56,57, Work offset- Define new origin.
58,59
G73 High speed Peck drilling cycle
G74 Left-spiral cutting circle(left hand tapping)
M99 Sub program call Eg: M99 P4-Program directly jumps to N4.
4
6
COMPONENT MANAUFACTURING
SEQUENCE
Decide how Decide how to
Study Drawing
many setup hold the
or component
needed component
Make Fixture
Decide how to
arrangements selection
check the part
for checking
Mass
Prove out the Program
production as
program development
per Control plan 4
7
How to calculate COSTING in
CNC
Cycle time =
Machining time + Tool indexing time +15 % acceleration deceleration.
Length
Machining time = mins
Feed X RPM
Acceleration &
= 15% of Machining time
Deceleration time
4
8
PER MIN COSTING OF CNC
DIMENSIONS SYMBOLS
Normal GD & T
In bracket ( 55)
Reference dimension
In square box 55
Basic Dimensions
5
0
14 GD & T SYMBOLS
5
1
Program Structure
Header
Body
Footer.
5
2
PROGRAM HEADER
O0001 Program No
N1; Sequence no for 1st Tool
VC = 90-160
Feed = 0.2-0.3
Tool Diameter = 10 mm
150 = 3.14 x 10 x N 1000
N = 4777
( This one we need to put in M03 S 4500 ; )
5
4
From were we can get Cutting Speed
& Feed
5
5
PROGRAM BODY
5
8
HOW TO READ A VERNIER
5
9
HOW TO READ A MICROMETER
6
0
PROGRAM STRUCTURE
O0001;
O0001;
N3;
Third
NI; First Tool G28 U0.0W0.0; Tool
G28 U0.0W0.0; T0303;
T0101; M08;
M08; G50S2000;
G50S2000; G96S120M03;
G96S120M03; GOO X(DIA+5)Z5.0;
GOO X(DIA+5)Z5.0; ……………………………….
………………………………. ………………………………
……………………………… GOO X(DIA+5)Z5.0;
GOO X(DIA+5)Z5.0; M09;
M09; G28U0.0W0.0;
N4; Fourth
G28U0.0W0.0;
N2;
Second G28 U0.0W0.0; Tool
G28 U0.0W0.0; Tool T0404;
T0202; M08;
M08; G50S2000;
G50S2000; G96S120M03;
G96S120M03; GOO X(DIA+5)Z5.0;
GOO X(DIA+5)Z5.0; ……………………………….
………………………………. ………………………………
……………………………… GOO X(DIA+5)Z5.0;
GOO X(DIA+5)Z5.0; M09;
M09; G28U0.0W0.0;
G28U0.0W0.0; M30;
%
6
1
HOW TO USE M99
Use M99P4;
6
2
M99 ADVANTAGE
O0001;
O0001;
M99 P4; Program will go directly to N4 N3; Third Tool
G28 U0.0W0.0;
NI;
T0303;
G28 U0.0W0.0;
M08;
T0101; First Tool G50S2000;
M08;
G96S120M03;
G50S2000;
GOO X(DIA+5)Z5.0;
G96S120M03;
……………………………….
GOO X(DIA+5)Z5.0;
………………………………
……………………………….
GOO X(DIA+5)Z5.0;
………………………………
M09;
GOO X(DIA+5)Z5.0;
G28U0.0W0.0;
M09;
G28U0.0W0.0;
N4; Fourth
N2; Second G28 U0.0W0.0;
T0404; Tool
G28 U0.0W0.0; Tool M08;
T0202;
G50S2000;
M08;
G96S120M03;
G50S2000;
GOO X(DIA+5)Z5.0;
G96S120M03;
……………………………….
GOO X(DIA+5)Z5.0;
………………………………
……………………………….
GOO X(DIA+5)Z5.0;
………………………………
M09;
GOO X(DIA+5)Z5.0;
G28U0.0W0.0;
M09;
M30;
G28U0.0W0.0;
%
6
3
HOW TO MAKE A PROGRAM
RAW MATERIAL FINISH MATERIAL E
R2 D
C B
C1 A
20 10
12
24
6
4
HOW TO MAKE A PROGRAM
CHAMFERING
BY
BY ANGLE
COORDINATES
6
9
CHAMFERING ON INNER DIA
BY ANGLE
180⁰+45⁰ = 225⁰
7
0
CHAMFERING BY COORDINATES IN
CNC
MAKE CHAMFER OF 0.5 MM ON ID.
N1;
G28 U 0.0 W 0.0;
G50 S 2000;
G96 S 120 M03;
G00 X 25.0 Z5.0 ;
G01 X 11.0 Z 0.0 F1.0 ;
20 10 11 G01 X 10.0 Z -0.5 F0.1 ;
G01 Z -12.0 ;
G00 U - 0.1 Z 1.0 ;
G00 X 25.0 Z 5.0 ;
M08 ;
M05 ;
G28 U 0.0 W0.0 ;
12
7
1
CHAMFERING BY ANGLE IN CNC
MAKE CHAMFER OF 0.5 MM ON ID.
N1;
G28 U0.0 W0.0;
G50 S2000;
G96 S120 M03;
G00 X 25.0 Z5.0 ;
G01 X 11.0 Z 0.0 F1.0 ;
20 10 11 G01 X 10.0 A225.0 F0.1 ;
G01 Z -12.0 ;
G00 U - 0.1 Z 1.0 ;
G00 X 25.0 Z 5.0 ;
M08 ;
M05 ;
G28 U 0.0 W0.0 ;
12
BY ANGLE
7
3
CHAMFERING BY COORDINATES IN
CNC
MAKE CHAMFER OF 0.5 MM ON OD.
N1;
G28 U 0.0 W 0.0;
G50 S 2000;
G96 S 120 M03;
G00 X 25.0 Z5.0 ;
G01 X 19.0 Z 0.0 F1.0 ;
20 10 19 G01 X 20.0 Z -0.5 F0.1 ;
G01 Z -12.0 ;
G00 U 0.1 Z 1.0 ;
G00 X 25.0 Z 5.0 ;
M08 ;
M05 ;
G28 U 0.0 W0.0 ;
12
7
4
CHAMFERING BY ANGLE IN CNC
MAKE CHAMFER OF 0.5 MM ON OD.
N1;
G28 U 0.0 W 0.0;
G50 S 2000;
G96 S 120 M03;
G00 X 25.0 Z5.0 ;
G01 X 19.0 Z 0.0 F1.0 ;
20 10 19 G01 X 20.0 A135.0 F0.1 ;
G01 Z -12.0 ;
G00 U 0.1 Z 1.0 ;
G00 X 25.0 Z 5.0 ;
M08 ;
M05 ;
G28 U 0.0 W0.0 ;
12
7
5
RADIUS TURNING IN CNC
MAKE RADIUS OF 0.5 MM ON OD.
N1;
G28 U 0.0 W 0.0;
R 0.5 G50 S 2000;
0.5
G96 S 120 M03;
G00 X 25.0 Z5.0 ;
G01 X 19.0 Z 0.0 F1.0 ;
20 10 19 G01 X 20.0 Z-2.0 F0.1 ;
G01 Z -12.0 ;
G00 U 0.1 Z 1.0 ;
G00 X 25.0 Z 5.0 ;
0.5 M08 ;
M05 ;
G28 U 0.0 W0.0 ;
12
7
6
QUALITY INSPECTION IN CNC
RECORDING OF CHECKED
DIMENSIONS IN QUALITY CHECK
SHEETS.
7
7
CANNED CYCLES IN CNC
G71 UΔd Re ;
G71 Pns Qnf UΔu WΔw Ff ;
8
3
G71 STOCK REMOVAL ON OD
N1;
R 1.0 G28 U0.0W0.0;
T0101;
C 1.0 M08;
G50S1600;
G96 S150 MO3;
G00 X26.0 Z5.0;
Փ25 Փ16 G94 X-1.0 Z4.0 F0.15;
Rough
Z3.6;
49 Z2.8; Face
Z1.6 Turning
Z0.8; CNMG 0.8
Z0.4; INSERT
G00 X26.0 Z5.0 M09;
G28 U0.0W0.0;
M01;
G28U0.0W0.0;
8
4
G71 STOCK REMOVAL ON OD
N2; N3;
G28U0.0 W0.0; G28U0.0 W0.0;
T0202; T0303;
M08;
M08;
G50 S1500;
G50 S1500; G96 S150 MO3;
G96 S150 MO3; G00 X26.0 Z5.0;
G00 X26.0 Z5.0; G00 X16.5 Z0.0;
Rough OD
G00 Z0.5; G01 X-1.0 F0.1; Finish
Turning
G71 U0.8 R0.5 G00 X14.0 Z1.0; Turning
G71 P10 Q20 U0.8 W0.8 CNMG 0.8 G01 G42 X14.0 Z0.02 F1.0; CNMG 0.4
N10 G00 X14.0 Z0.02; INSERT G01 X16.0 A135.0 F0.15;
INSERT
G01 X16.0 Z-1.0 F0.15; Z-49.0;
X23.0
Z-49.0;
G03 X25.0 Z-50.0 R1.0;
N20 X26.0; G01 U0.1 W-1.0 ;
G00 Z5.0; G40 G01 X26.0 Z5.0;
M09; M09;
G28U0.0W0.0; G28U0.0W0.0;
M01; M30;
% 8
5
G76 THREADING CYCLE
m = No of finish passes.
G76 P mra Q Δdmin Rd ; r = Chamfering amount
a = Thread angle.
G76 Xu Zw Ri Pk QΔd Fl ; Δdmin = Subsequent depth of cut
d = Finishing allowance
8
7
For Right hand thread on OD
Tool Right hand Left hand
Cutting edge position Reverse Straight
Rotation Counter clockwise Clockwise
Tool movement Towards spindle From inside out –
Away from the spindle
8
8
M27 x 2 thread
On OD On ID
N4 N4
G28 U0.0W0.0; G28 U0.0W0.0;
T0404 M08; (Right hand reverse holding) T0404 M08; (Left hand straight holding)
G97 S850 M04 (Counter clock wise) G97 S850 M04 (Clock wise rotation)
G00 X29.0 Z5.0; G00 X24.0 Z5.0;
G00 Z1.0; G00 Z-14.0 ;
G76 P020060 Q100 R0.5; G76 P020060 Q100 R0.5;
G76 X24.6 Z-14.0 P1223 Q150 F2.0; G76 X24.6 Z-1.0 P1223 Q150 F2.0;
G00 X29.0 Z1.0; G00 X24.0 Z1.0;
M09; M09;
M05; M05;
M01; M01;
G28 U0.0 W0.0; G28 U0.0 W0.0;
8
9
Tool Nose radius Compensation
9
0
Tool Nose radius Compensation
Machine considers sharp edge . But actual cutting point is radius and
different points touch during cutting of OD & Face.
Cutting point on OD
is this
This causes left behind some material, esp during radius making &
chamfering. To avoid this we use cutter compensation G41 & G42.
9
2
Tool Nose radius Compensation
Compensated path
Programmed path
Cutting point on Face
is this
9
3
TOOL TYPE - Tool Nose radius
Compensation
2 6 1
3 4
8 9
4
G 41 & 42 for OD Turning
Tool Tool
G42
Looking in the direction of
cut G41
9
5
Tool Nose radius Compensation
Compensated path
Programmed path
Cutting point on Face
is this
9
6
Tool Nose radius Compensation for
ID Turning
Looking in the
direction of cut Looking in the
direction of cut
Tool is in
the Right
Tool is in the
left
G41 G42
9
7
MAINTENANCE CHECK SHEET OF
Item Condition
CNC
Frequency Control 1 2 3 4……….29 30 31
9
8
COMMON ALARMS IN CNC
CNC Alarms
9
9
Chuck not Clamp/De clamp problem
1
0
Chuck not Clamp/De clamp problem
1
0
??
?
Questions
1
0
• A link has been sent to you
• Please take the post-
assessment and submit
• Your attendance will be
marked only if you submit
both, pre-assessment and
post-assessment
Post-Assessment
1
0