CNC Programming
CNC Programming
RAJESH
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:
physical or monotonous work. Performing tasks that are beyond human capabilities. Economy improvement. High productivity. Less Time. Reliability. Precision.
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