0% found this document useful (0 votes)
564 views45 pages

CNC Programming Exercise Book

The document is a comprehensive exercise book on CNC programming focused on turning operations, detailing coordinate systems, G-codes, and M-codes used in CNC turning centers. It includes exercises for absolute and incremental coordinates, as well as machining data for various turning cycles such as facing, stock removal, and threading. Additionally, it provides information on tool parameters and multiple operations within a single program.

Uploaded by

Ashish Sontakke
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
564 views45 pages

CNC Programming Exercise Book

The document is a comprehensive exercise book on CNC programming focused on turning operations, detailing coordinate systems, G-codes, and M-codes used in CNC turning centers. It includes exercises for absolute and incremental coordinates, as well as machining data for various turning cycles such as facing, stock removal, and threading. Additionally, it provides information on tool parameters and multiple operations within a single program.

Uploaded by

Ashish Sontakke
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

CNC PROGRAMMING

TURNING

---- EXERCISE BOOK ----

Mobile – 9767651834 I Email– itiinmarathi@[Link]

CNC PROGRAMMING EXERCISE BOOK -……1


CNC PROGRAMMING EXERCISE BOOK -……2
COORDINATE SYSTEM ON TURNING CENTER

X+

( Z- & X+ )

W(0,0)
Z- Z+

X-

CNC PROGRAMMING EXERCISE BOOK -……3


COORDINATES SYSTEM

1. ABSOLUTE COORDINATES SYSTEM –

30

(W0,0) POINT X Z

P1

P2

P3

P4

P5

P6

2. INCREMENTAL COORDINATES SYSTEM -

30
POINT U (X) W (Z)
(W0,0)

P1

P2

P3

P4

P5

P6

CNC PROGRAMMING EXERCISE BOOK -……4


EXERCISE 1

P4

ABSOLUTE INCREMENTAL
POINT X Z POINT U W

P1 P1

P2 P2

P3 P3

P4 P4

CNC PROGRAMMING EXERCISE BOOK -……5


EXERCISE 2

ABSOLUTE INCREMENTAL
POINT X Z POINT U W

P1 P1

P2 P2

P3 P3

P4 P4

P5 P5

P6 P6

P7 P7

CNC PROGRAMMING EXERCISE BOOK -……6


EXERCISE 3

ABSOLUTE INCREMENTAL
POINT X Z POINT U W

P1 P1

P2 P2

P3 P3

P4 P4

P5 P5

P6 P6

P7 P7

CNC PROGRAMMING EXERCISE BOOK -……7


EXERCISE 4

ABSOLUTE INCREMENTAL
POINT X Z POINT U W

P1 P1

P2 P2

P3 P3

P4 P4

P5 P5

P6 P6

CNC PROGRAMMING EXERCISE BOOK -……8


TURNING CENTER G-CODES (FANUC)

CODE GROUP SYNTAX DESCRIPTION TYPE

G00
X…Z… Rapid Positioning Modal

G01
X…Z… Linear interpolation Modal

G02
01 X…Z…R… Circular interpolation CW Modal

G03
X…Z…R… Circular interpolation CCW Modal

G04
00 Dwell Time One shot

G17 XY Plain Selection Modal

G18 XZ Plain Selection Modal


02
G19 YZ Plain Selection Modal

G20 Unit in inches Modal


06
G21 Unit in mm Modal

G28
00 Return to reference position One shot

Tool nose radius


G40 Modal
compensation cancel

G41 Tool nose radius


D… Modal
compensation left
07
Tool nose radius
G42 D… Modal
compensation right

Clamp on maximum
G50 00 Modal
spindle speed
G54 TO Work piece coordinates
14 Modal
G59 system 1 to 6

G70 00 P…Q…F… Finishing cycle One shot

CNC PROGRAMMING EXERCISE BOOK -……9


U…R… Stock removal in turning
G71 One shot
P…Q…U…W…F… cycle

W…R… Stock removal in facing


G72 One shot
P…Q…U…W…F… cycle

U…W…R…
G73 Pattern repeating One shot
P…Q…U…W…F…

R…
G74 Peck drilling cycle One shot
Z…Q…F…

R…
G75 Grooving cycle One shot
X…Z…P…Q…F…

P aa bb cc Q… R…
G76 Multiple threading cycle One shot
X…Z…P…Q…F…

Modal
G90 X…Z… Od / id turning cycle

G92 X…Z…F… Thread cutting cycle Modal


01

G94 Z…X… Facing cycle Modal

Constant surface speed


G96 02 S… Modal
control

Constant surface speed


G97 02 S… Modal
control cancel

G98
F… Feed in mm / min. Modal

G99 05
F… Feed in mm / rev. Modal

CNC PROGRAMMING EXERCISE BOOK -……10


TURNING CENTER M-CODES (FANUC)

CODE DESCRIPTION

M00
Program stop
M01
Optional program stop
M02
End of program
M03
Spindle start in CW
M04
Spindle start in CCW
M05
Spindle stop
M07
High pressure coolant on
M08
Coolant ON
M09
Coolant off
M13
Coolant & spindle on CW
M14
Coolant & spindle on CCW
M30
End of program and reset
M98
Sub program call
M99
End of sub program

CNC PROGRAMMING EXERCISE BOOK -……11


Word letters

A B C = Rotating about X Y Z

D = Radius Compensation

E = ; (EOB)

F = Feed

G = G code

H = Tool Length

I J K = Center Distance on X Y Z

L = Sub Program

M = M Code

N = Sequence no. of Block

O = Fanuc program starting letter

P Q R = Use in Canned Cycle

S = Spindle Speed / Cutting Speed

T = Tool Number

U V W = Parallel To Axis X Y Z

X , Y , Z = Main Axis of Machine

CNC PROGRAMMING EXERCISE BOOK -……12


Facing-

Depth of Cut = 0.5 mm

CNC PROGRAMMING EXERCISE BOOK -……13


CNC PROGRAMMING EXERCISE BOOK -……14
Plain Turning (OD Turning) -

Stock Size = 30 mm
Part Size = 26 mm

Depth of Cut = 1 mm

CNC PROGRAMMING EXERCISE BOOK -……15


CNC PROGRAMMING EXERCISE BOOK -……16
Chamfer -

CNC PROGRAMMING EXERCISE BOOK -……17


CNC PROGRAMMING EXERCISE BOOK -……18
Step Turning –

Depth of Cut = 1 mm

CNC PROGRAMMING EXERCISE BOOK -……19


CNC PROGRAMMING EXERCISE BOOK -……20
Step turning –

P5

ABSOLUTE COORDINATES MACHINING DATA

POINT X Z PARAMETER VALUE


P0 Depth Of Cut
P1 Feed
P2 Rpm
P3
P4
P5

CNC PROGRAMMING EXERCISE BOOK -……21


CNC PROGRAMMING EXERCISE BOOK -……22
Step and taper turning –

P6

ABSOLUTE COORDINATES MACHINING DATA

POINT X Z PARAMETER VALUE


P0 Depth Of Cut
P1 Feed
P2 Rpm
P3
P4
P5
P6

CNC PROGRAMMING EXERCISE BOOK -……23


CNC PROGRAMMING EXERCISE BOOK -……24
Thread cutting (G76 & G92) -

MACHINING DATA

PARAMETER
Depth Of Cut
Feed (Pitch)
Rpm
Thread Depth
Root Diameter

CNC PROGRAMMING EXERCISE BOOK -……25


CNC PROGRAMMING EXERCISE BOOK -……26
Stock removal in turning cycle (G71) –

ABSOLUTE COORDINATES MACHINING DATA

POINT X Z PARAMETER VALUE


P0 Depth of cut
P1 Relive amount
P2 Finishing allowance in x axis
P3 Finishing allowance in Z axis
P4 Feed for G71 cycle
P5 Feed for G70 cycle
P6 RPM
P7
P8
P9

CNC PROGRAMMING EXERCISE BOOK -……27


CNC PROGRAMMING EXERCISE BOOK -……28
Step, taper & radius turning using G71 -

ABSOLUTE COORDINATES MACHINING DATA

POINT X Z R PARAMETER VALUE


P0 Depth of cut
P1 Relive amount
P2 Finishing allowance in x axis
P3 Finishing allowance in Z axis
P4 Feed for G71 cycle
P5 Feed for G70 cycle
P6 RPM
P7
P8
P9
P10
P11
P12
P13

CNC PROGRAMMING EXERCISE BOOK -……29


CNC PROGRAMMING EXERCISE BOOK -……30
Stock removal in facing cycle (G72) –

Depth of Cut = 0.5 mm

CNC PROGRAMMING EXERCISE BOOK -……31


CNC PROGRAMMING EXERCISE BOOK -……32
Pattern repating cycle (G73) -

ABSOLUTE COORDINATES MACHINING DATA

POINT X Z R PARAMETER VALUE


P0 Depth of cut
P1 Relive amount
P2 Finishing allowance in x axis
P3 Finishing allowance in Z axis
P4 Feed for G73 cycle
P5 Feed for G70 cycle
P6 RPM
P7
P8

CNC PROGRAMMING EXERCISE BOOK -……33


CNC PROGRAMMING EXERCISE BOOK -……34
Peck drilling cycle (G74) –

MACHINING DATA FOR DRILLING CYCLE


(G74)

PARAMETER VALUE
Tool Number
Tool Diameter
Return Amount
Drilling Length
Depth Of Cut In Z Axis
Feed
Rpm

CNC PROGRAMMING EXERCISE BOOK -……35


CNC PROGRAMMING EXERCISE BOOK -……36
Grooving cycle (G75) –

MACHINING DATA FOR GROOVING CYCLE


(G75)

PARAMETER VALUE
Tool Number
Tool Width
Return Amount
Grooving Diameter
Grooving Start Point
Grooving End Point
Depth Of Cut In X Axis (Micron)
Depth Of Cut In Z Axis (Micron)
Feed
Rpm

CNC PROGRAMMING EXERCISE BOOK -……37


CNC PROGRAMMING EXERCISE BOOK -……38
Threading cycle (G76 & G92) –

MACHINING DATA

PARAMETER VALUE
Tool Number
No. Of Finishing Passes
Pull Out Angle
Thread Angle
Finishing Allowance
Root Diameter
Thread Length
Thread Height
First Depth Of Cut
Feed (Pitch/Lead)
Rpm

CNC PROGRAMMING EXERCISE BOOK -……39


CNC PROGRAMMING EXERCISE BOOK -……40
Multiple Operation in one program –

VALUES
PARAMETER FACING TURNING GROOVING THREADING
TOOL NUMBER
DEPTH OF CUT
RELIEVE AMOUNT
FINISHING
ALLOWANCE
FEED
SPEED
TOOL WIDTH

CNC PROGRAMMING EXERCISE BOOK -……41


CNC PROGRAMMING EXERCISE BOOK -……42
CNC PROGRAMMING EXERCISE BOOK -……43
CNC PROGRAMMING EXERCISE BOOK -……44
CNC PROGRAMMING EXERCISE BOOK -……45

You might also like