0% found this document useful (0 votes)
28 views

CNC Programming

This document provides an overview of CNC (Computer Numerical Control) programming. It discusses the components of a CNC machine, different types of CNC machines based on spindle motion and axis. The document also summarizes the main advantages and disadvantages of CNC automation. It describes the process of CNC programming including codes used like G-codes and M-codes. Finally, it provides a sample CNC program to drill a hole on a vertical milling machine as an example.

Uploaded by

chuthoong010
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views

CNC Programming

This document provides an overview of CNC (Computer Numerical Control) programming. It discusses the components of a CNC machine, different types of CNC machines based on spindle motion and axis. The document also summarizes the main advantages and disadvantages of CNC automation. It describes the process of CNC programming including codes used like G-codes and M-codes. Finally, it provides a sample CNC program to drill a hole on a vertical milling machine as an example.

Uploaded by

chuthoong010
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

Supervising Professors: Prof. SURYAPRAKASH Prof.

RAJESH

RUPINDERPAL SINGH 07-ME-402 MEHANICAL B

Aim and Objective


Aim: CNC PROGRAMMING Objective:
i. ii.

To learn about CNC machines. 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 Instructions

Machine Tool

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:


y Replacing human operators in tasks that involve hard y y y y y y

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
y Program Planning y Tool Motion and Construction Planes y Unit Systems and Input Modes y Programming Codes y Part and Tool Change Position y Programming Considerations

TYPES OF CODES
y N- codes: Sequence Numbers y G- codes: Preparatory Functions y M- codes: Miscellaneous Functions y F: Feed Rate y T: Tool Selection

G- CODES
y y y y y y y y y y y

G00 G01 G02 G03 G33 G41 G42 G92 G96 G90 G91

Rapid positioning Linear interpolation Circular interpolation (clock wise) Circular interpolation(counter clockwise) Thread cutting Tool nose radius compensation left Tool nose radius compensation right Maximum spindle speed setting Constant surface speed control Absolute programming Incremental programming

M - CODES
y y y y y y y y y y y y

M00 M01 M02 M03 M04 M05 M06 M07 M08 M09 M18 M29

Program stop Optional stop End of program Spindle clock wise Spindle counter clock wise Spindle stop Tool change Mist coolant on Flood coolant on Coolant off Chuck close 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

You might also like