NC Programming
NC Programming
Submitted By, Group 4 Jibin Jose (1020015) Arani Ukil (1020106) R Manju Pargavi (1020147) Sherin Sunny (1020230) Dony Jose (1020311) Sandeep Pandita (1020328)
Introduction
Numerical Control (NC) refers to the method of controlling the manufacturing operation by means of directly inserted coded numerical instructions into the machine tool. (example : cutter, milling machine) NC augmented with analog & digital computers - creating Computer Numerical Control (CNC) NC systems comprises of (1) Machine tool [milling machine, drilling machine ] and (2) Controller to control the motion of the machine Program Machine tool
Instructions Control Unit
Transformatio n Process
Power
Types of NC machines
Punched Card NC machines
Used in the late 1940s
CNC Lathe
There are two types of control systems used on NC machines: point-to-point systems and continuous-path systems. Point-to-point machines move only in straight lines. A continuous-path machine can move its drive motors at varying rates of speed while positioning the machine. Each controller is manufactured with a standard set of built-in codes. Other codes are added by the machine tool builders
NC MOTION-CONTROL
NC Program Execut ion Sy st em Dim ensio n s Com m ands
T r an sl at o r
Cont rol
Logic
Po w e r
Re la y
Linear
Mot ion
So len o id
NC MACHINE CLASSIFICATIONS
1. Motion control: point to point (PTP) continuous (contouring) path
CONTROL LOOPS
Open loop - No position feedback.
table pulses motor
CLOSED LOOP
_
Up-down counter DAC Amp
Differential amplifier
Shaft
DC Motor
Tachometer
Encoder
+
Reference pulses
The function of an N/C program is to direct the motion of a cutting tool around a work piece. N/C programs for milling machines must be written as though the work piece were stationary, except for rotary motion, and the cutting tool did all the moving--right, left, in, out, up, down--even though in fact most N/C milling machines use a stationary cutter (except for rotary and axial motion) and move the workpiece around the cutter
To tell the controller where to send the cutter (its destination). This positioning information will be specified either incrementally (from the cutter's last position) or absolutely (from the origin).
Preparatory commands to establish the desired operating conditions. Axis commands to move the cutter a certain distance in a certain direction. Feed rate commands to control cutter linear velocity. Spindle speed commands to control cutter rotational velocity. Miscellaneous commands to take care of the odds and ends, such as stop, turn off the coolant, change cutting tools, and rewind the memory. Identification commands, such as assigning a number to each block so the N/C operator can tell which command in a program is being executed, and assigning tool identification numbers so the controller knows which cutting tool to use.
Types of Words
N - sequence number prefix G - preparatory words
Example: G00 = PTP rapid traverse move
X, Y, Z - prefixes for x, y, and z-axes F - feed rate prefix S - spindle speed T - tool selection M - miscellaneous command
Example: M07 = turn cutting fluid on
Example
NC part program code N001 G21 G90 G92 X-050.0 Y-050.0 Z010.0; N002 G00 Z-020.0 S1989 M03; N003 G01 G94 G42 Y0 D05 F398; N004 G01 X075.0; N005 G01 X150.0 Y043.02; N006 G01 Y070.0; N007 G01 X080.0; N008 G17 G02 X050.0 Y100.0 R030.0; N009 G01 Y125.0; N010 G01 X0; N011 G01 Y0 N012 G40 G00 X-050.0 Y-050.0 Z010.0 M05; N013 M30; Comments
Define origin of axes. Rapid to cutter depth, turn spindle on. Bring tool to starting y-value, start cutter offset. Mill lower horizontal edge of part. Mill angled edge at 35 degrees. Mill vertical edge at right of part. Mill horizontal edge leading to arc. Circular interpolation around arc. Mill vertical step above arc. Mill top part edge. Mill vertical edge at left of part. Rapid move to target point, cancel offset, spindle stop. End of program, stop machine.
Keying in the program directly into the controller through the controller's keyboard.
Connect the controller to a computer or a network that contains a previously written program.
Connect the CNC controller to a data storage peripheral device such as a paper tape punch/reader, magnetic tape recorder or magnetic floppy disk drive through the serial port.
What is interpolation?
interpolation is a method of constructing new data points within the range of a discrete set of known data points. For example, suppose we have a table like this, which gives some values of an unknown function f.
Interpolation provides a means of estimating the function at intermediate points, such as x = 2.5. There are many different interpolation methods, some of which are described below. Some of the concerns to take into account when choosing an appropriate algorithm are: How accurate is the method? How expensive is it? How smooth is the interpolant? How many data points are needed?
Interpolation Methods
1. 2.
3.
4.
Linear interpolation Straight line between two points in space Circular interpolation Circular arc defined by starting point, end point, center or radius, and direction Helical interpolation Circular plus linear motion Parabolic and cubic interpolation Free form curves using higher order equations
Advantages of NC
Higher precision Machining of complex three-dimensional shapes: Better quality: Higher productivity: Multi-operational machining: Low operator qualification:
Disadvantages
Increase in electrical maintenance High initial investment Higher per-hour operating cost than traditional machine tools Retraining of existing personnel
Cost-Benefits of NC
Costs High investment cost High maintenance effort Need for skilled programmers High utilization required Benefits Cycle time reduction Nonproductive time reduction Greater accuracy and repeatability Lower scrap rates Reduced parts inventory and floor space Operator skill-level reduced
Applications
Traditional machining Turning, boring, milling, grinding etc. Sheet metal manufacture Turret punch press, pipe bending, flow forming etc. Non-traditional machining Wire-EDM, water-jet cutting, electron beam machining, laser beam machining, plasma cutting etc. Coordinate Measuring Machines Drafting machines Robots Rapid Prototyping (RP) machines
Applications of NC
Thank You