CNC PROGRAMMING
Supervising Professors: RUPINDERPAL SINGH
Prof. SURYAPRAKASH 07-ME-402
Prof. RAJESH MEHANICAL B
Aim and Objective
Aim:
CNC PROGRAMMING
Objective:
i. To learn about CNC machines.
ii. To learn basics of CNC programming.
ABOUT CNC
Computer numerical control (CNC) refers to the
automation of machine tools that are operated by
abstractly programmed commands encoded on a
storage medium, as opposed to manually controlled
via hand wheels or levers, or mechanically.
COMPONENTS
M.C.U.(Machine
Control Unite)
Program Of
Machine Tool
Instructions
Classification
On basis of spindle motion:
Horizontal
Vertical
On basis of axis:
2-axis
3-axis
5-axis
The main advantages of CNC machines are:
Replacing human operators in tasks that involve hard
physical or monotonous work.
Performing tasks that are beyond human capabilities.
Economy improvement.
High productivity.
Less Time.
Reliability.
Precision.
The main disadvantages of automation
are:
Security Threats
Unpredictable development costs.
High initial cost.
CNC Programming
Program Planning
Tool Motion and Construction Planes
Unit Systems and Input Modes
Programming Codes
Part and Tool Change Position
Programming Considerations
TYPES OF CODES
N- codes: Sequence Numbers
G- codes: Preparatory Functions
M- codes: Miscellaneous Functions
F: Feed Rate
T: Tool Selection
G- CODES
G00 Rapid positioning
G01 Linear interpolation
G02 Circular interpolation (clock wise)
G03 Circular interpolation(counter clockwise)
G33 Thread cutting
G41 Tool nose radius compensation left
G42 Tool nose radius compensation right
G92 Maximum spindle speed setting
G96 Constant surface speed control
G90 Absolute programming
G91 Incremental programming
M - CODES
M00 Program stop
M01 Optional stop
M02 End of program
M03 Spindle clock wise
M04 Spindle counter clock wise
M05 Spindle stop
M06 Tool change
M07 Mist coolant on
M08 Flood coolant on
M09 Coolant off
M18 Chuck close
M29 Chuck open
Sample Program
Aim:
To Drill A Hole On A CNC Vertical Milling Machine.
Steps:
i. X and Y to hole position.
ii. Move spindle over the point.
iii. Turn on coolant and spindle.
iv. Z axis feed and drill hole.
v. Turn off spindle and coolant.
vi. Move spindle to home.
o001
N005 G54 G90 S600 M03
N010 G00 X1.0 Y1.0
N015 G43 H01 Z.1 M08
N020 G01 Z-.75 F3.5
N025 G00 Z.1 M09
N030 G91 G28 X0 Y0 Z0
N035 M30
THANK YOU