1. 10/12/2016 1Numerical Control Machines
CNC-MDP471
Design and Production Engineering Department,
Faculty of Engineering,
Ain Shams University.
Lecture 2
DR. AMR SHAABAN
7. 10/12/2016Dr.Amr Shaaban-Numerical Control Machines7
PART PROGRAMMING
Units designation
G20 Inch system
G21 Metric system mm
G94 Feed rate mm/min
G95 Feed mm/rev
G96 Cutting velocity m/min
G97 Rotating speed rpm
8. 10/12/2016Dr.Amr Shaaban-Numerical Control Machines8
PART PROGRAMMING
Miscellaneous Functions [M-Code]
M00 Program Stop
M01 Optional Program Stop
M02 Program End [old]
M03 Spindle On Clockwise
M04 Spindle On Counterclockwise
M05 Spindle Stop
M06 Tool Change
07M Light Coolant On
M08 Heavy Coolant On
M09 Coolant Off
M30 Program End
M-code
13. 10/12/2016Dr.Amr Shaaban-Numerical Control Machines13
SIMPLE PROGRAMMING
Step Description Details
1 Select the right holder Milling/turning
2
Raw material
specification
Milling: Block size (X*Y*Z)
Allowance for Z [Facing]
Allowance for X&Y [profiling]
Turning: cylinder (D*L)
Allowance for D [Turning]
Allowance for L [Facing + parting off + safety from part holder]
3
Decide the operation
sequence
The sequence that achieve minimum tool changing
4 Tooling
Check the machine tool list, prepare the T-code, and the
coordinate of the tool changer
5 Part program Write down the part program with the minimum block numbers
14. 10/12/2016Dr.Amr Shaaban-Numerical Control Machines14
SIMPLE PROGRAMMING
20mm
ϕ10
Example
1 Select the right holder Turning machine
2
Raw material
specification
cylinder (12*40)
Allowance for D [Turning=2mm]
Allowance for L :
[Facing (2mm)+parting off (3mm)+safety from part holder(15mm)]
3
Decide the operation
sequence
Facing/ longitudinal turning/ parting off
4 Tooling
Facing tool(T01)/ turning tool(T02)/ parting off tool(T03)
Tool changer coordinate: 100mm from chuck face & 50mm from center
5 Part program Next slide
16. 10/12/2016Dr.Amr Shaaban-Numerical Control Machines16
SIMPLE PROGRAMMING
50
Tool changer
2015 3 2
100
ϕ10
ϕ12
M/c zero
N0010 G21 G90 G94 G97 Unit definition
N0020 G00 X100 Z100 T01 M06 Rapid motion to tool changer/ mounting
facing tool
N0030 Z38 Facing starting point z
N0040 X14 S500 M03 Facing starting point x/ spindle rotate c.w
N0050 G01 X0 F20 M08 Facing
Facing start point
X14, Z38
Facing end point
X0, Z38
17. 10/12/2016Dr.Amr Shaaban-Numerical Control Machines17
SIMPLE PROGRAMMING
50
Tool changer
2015 3
62
ϕ10
ϕ12
Floating zero
Turning start point
X10, Z2
Facing end point
X10, Z-20
N0060 G92 X0 Z0 Temporary offset of m/c zero to the part face
N0070 G00 X100 Z62 T02 M06 Rapid motion to tool changer/ mounting turning
tool
N0080 X10 Turning starting point x
N0090 Z2 Turning starting point z
N0100 G01 Z-20 F20 Turning
18. 10/12/2016Dr.Amr Shaaban-Numerical Control Machines18
SIMPLE PROGRAMMING
50
Tool changer
2015 3
62
ϕ10
ϕ12
Floating zero
Parting off start point
X14, Z-21.5
parting off start point
X0, Z-21.5
N0110 G00 X100 Z62 T03 M06 Rapid motion to tool changer/ mounting parting off tool
N0120 Z-21.5 Parting off starting point
N0130 X14 Parting off
N0140 G01 X0 F20 Ending parting off
N0150 G00 X100 M09 Tool away from part/ coolant off
N0160 M30 End program