Introduction to CNC Presented By Bidve M A
Introduction to CNC Presented By Bidve M. A.
Introduction • Conventionally machines were operated by skilled technician(operator) who determines the various variables like speed, feed, depth of cut, etc. for machining the required component. • On the basis of his experience, he will control the machine tool and produce the various jobs but the operator skill is the critical factor for accuracy and finish of the job.
Limitations of Conventional Machines 1. It requires skilled operators to perform various operations. 2. The production time increases if the workpiece is complex and precision manufacturing. 3. Operator may fatigue and committed mistakes. 4. Rate of Production is low, not suitable for mass production. 5. Limited tools can be mounted on tool post. 6. Longer setup times for machine and tool adjustments.
Numerical Control • NC can be defined as a form of programmable automation in which the process is controlled by numbers, letters and symbols. • It means that it is a technique for controlling the machine tool by using coded instructions in the form of program prepared for the given job. • Manufacturing firms, automation and mass production with flexible system use NC and CNC.
CNC Machines • CNC means Computerized Numerical Control machine. In this meaning the world Numerical control is very important, it replace the operator control of machine to the Numerical Control of machine. • In CNC machines a dedicated computer is used to perform all the basic NC functions the complete part program to produce a component is input and stored in the computer memory. • In simple worlds the machine tool which is operated and controlled by using a dedicated computers is known as CNC.
Definition of CNC • It is defined as the NC system where in a dedicates, stored program computer is used to perform some or all of the basic numerical control programs stored in the read- write memory of the computer. • The software stored in computer performs the functions of data decoding, control, buffering, feed rate control, etc.
Advantages of CNC 1. 2. 3. 4. 5. 6. 7. 8. Reduced lead time. Elimination of operator error. Lower labour cost. High accuracy. Elimination of Jig and Fixture. Flexibility. Reduced inspection. Less scarp.
Disadvantages of CNC 1. 2. 3. 4. Higher investment cost. Higher maintenance cost. Costlier CNC personnel. Planned support facility.
Application of CNC 1. 2. 3. 4. 5. When operation are very complex. The number of operation is large. Batch size is medium. Batches are often repeated. Where design changes or individual variations are required. 6. A large variety of components is produced.
Comparison of NC and CNC Parameter NC Machine CNC Machine Principle Punched tape, machine control unit, machine tool. Computer, machine control unit, machine tool. Concept Programmed for component is feed to the tape. Programmed for components is feed to the computer. Controller Hard wired NC controller. No need of tape reader. Input Storage Programmed in the punched tape Program is stored in the CPU memory for hence storage is required. no need of physical storage. Changes in Program New purchase tape is required for Only interaction is required to change. any changes. Manufacturing Machine control unit will control Control NC machines. Dedicated computer interfaced with controllers will lead this function. Flexibility Greater than conventional machine but less than CNC Highest flexibility can be achieved. Cost Less than CNC High Investment. Input medium may damage Punched tape may damaged during repeated use. Software program can not damage as it is non-physical.
Open Loop Control System • Some CNC machines utilize open loop control system which does not have a feedback device and thus the actual position of the tool slide or work table is not measured and verified.
Principle • This system depends upon the quality of the drive unit. The machine tool is not part of the control system and effect of vibrations and other characteristics of the machine are less critical. • The control system is simple in design less number of components and cheaper compared to closed loop system. • The accuracy is also less hence not suitable for precision applications.
Working • In this control system the NC program in the coded form is given to the tape reader/ program reader which convert it into mechanical commands. • The MCU generates electrical signals to the drive units of spindle/ slides, here it is stepper motor for machine table slide. • There is no provision to measure the actual movement of the slide as no presence of any feedback devices.
• The actual movement of the slide may be affected by friction, wear and tear, vibrations, screw errors, etc hence accuracy is less. • The open loop system is restricted to small machine tools because of limited power of stepper motors. • This system offers cost savings for light duty machines where problem of instability are absent and high precision is not required.
Closed Loop Control System • When actual positions of slides, speed of the machine spindle are determined by using feedback devices for detection of error and action is initiated to remove the error then system is called as closed loop system.
Principle • The closed loop means the feedback signal is again brought to the input signal for comparison or error detection hence known as closed loop. • Use of feedback sensors makes the system little complicated and costly. • It gives very high accuracy and suitable for precision application.
Working • This system consists of input device for program, tape reader, MCU, drives for spindle/ slide and mechanical elements. • The main additional component required is feedback sensor/ device to measure actual movement of the machine element. • The feedback device measures the actual movement and gives signal to the computer to compare it with input signal.
• If there is a difference/ error occurs it will be send to the MCU for corrective action e. g. slide displacement as per input is 10 mm and actual displacement measured by feedback sensor is 9. 5 mm, then error of 0. 5 mm occurs. • The MCU will actuate the slide by 10. 50 mm to get exact 10 mm movement of the slide.
Difference between Open Loop System and Closed Loop System Point Open Loop System Closed Loop System Definition When there is no feedback is present in the system it is known as open loop system. When feedback devices are present to detect error and action is taken to remove it. It is known as closed loop system. Construction Simple due to absence of feedback devices, less no of components. More component as feedback devices like tacho generator, displacement transducer are present. Input and Output No comparison between input and output. Error is determined between input and output and removed. Accuracy Less due to friction wear, vibrations, etc. High due to error correction system Drives used Stepper Motor, Servo motors. Application Small machine tools due to Precision application due to high accuracy. limited power of stepper motors Cost It is less costly due to simple construction. It is costly due to feedback devices used in the system.
Axis Identification • After understanding the constructional details of machining centre, it is important to learn axis identification for machining centre. • During machining of component, it is necessary to move the spindle, slides in a different direction to obtain desired shape of the workpiece.
• Linear Axes: The movement are in a straight line by the machine slides and represented as X, Y, Z axes. • Rotary Axes: The movement are rotary about axes for the spindle and designated by A, B and C axes.
Thumb Rule for Axis Identification
Linear Axes • The spindle movement is taken along Z- axis and it is shown by the middle finger of right hand. • Movement along X-axis is perpendicular to the Z-axis and it is shown by thumb of right hand. • Movement along Y-axis is perpendicular to both Z and X-axis and indicated by first finger of right hand.
Rotary Axes • Rotation about an axis parallel to X-axis is A, Yaxis is B, Z-axis is C respectively. • Thumb shows axis direction and finger indicates direction of rotation. CNC Lathe Machine 1 Z-axis Spindle of Machine 2 X-axis Tool movement perpendicular to Z-axis CNC Milling Machine 1 Z-axis Spindle of Machine 2 X-axis Table movement (Longitudinal) 3 Y-axis Table movement (Transverse)
Absolute Co-ordinate System • In this system all co-ordinates of various points are calculated with respect to fixed reference point which is the origin( also called as zero point). • This system is known as fixed zero system. • All positions commands are given as absolute distance from that zero point. • This system is easy and mistake in one point will not affect to the successive point. It will be limited to that particular co-ordinate point. • The G code used for this system is G 90.
Incremental Co-ordinate System • In this system co-ordinate of any point is calculated with reference to the previous point. • It means that the reference point is not fixed but it moves from one point to the next point. • It is also called as floating zero system. • This system is complicated as each time reference changes and mistake in one point may effect subsequent points. • It is designated by G code ‘G 91’.
Difference between Absolute and Incremental Co-ordinate System Point Absolute Incremental Co-ordinate Fixed reference point i. e. Origin With reference to previous point Reference Point Fixed i. e. Zero Point Changes with respect to each point. Origin Fixed Origin Floating Origin Command It is easy It is complicated. Mistakes Mistake in one point will not effect on successive point Mistake in one point effect on subsequent point Point to Point Machining Preferred Not Preferred G code G 90 G 91
Introduction to G-code • The most common codes used when programming CNC machine tools are G codes, other codes such as F, S, D, T, etc which are used for machine functions such as feed, speed, cutter diameter offset, tool number, etc • G codes are preparatory functions which instruct the machine tool to get prepared for the operation to follow. • G codes are used to give movement of tool/ workpiece in the X, Y, Z axis of machine tool.
Introduction to M-code • The M codes are used for NC machine functions which are not related to dimensional or axial movement. • They are not related to actual machining but executes auxiliary functions like start/ stop spindle, ON/OFF coolant, etc. • It is represented by letter M followed by number.
G-code Meaning G 00 Rapid Positioning G 01 Linear interpolation G 02 Circular interpolation(Clockwise) G 03 Circular interpolation(Counter clockwise) G 04 Dwell G 10 Tool length offset value G 17 XY plane selection G 18 ZX plane selection G 19 YZ plane selection G 20 Programming in units G 21 Programming in metric units G 27 Reference point return check G 28 Automatic return to reference point G 29 Automatic return from reference point G 30 Return to 2 nd, 3 rd or 4 th reference point G 33 Thread cutting on turning center
G-code Meaning G 40 Cutter diameter compensation cancel G 41 Cutter diameter compensation left G 42 Cutter diameter compensation right G 43 Tool length compensation in positive(+) direction G 44 Tool length compensation in negative(-) direction G 45 Tool offset increase G 46 Tool offset decrease G 49 Tool length offset cancel G 74 Slot milling cycle G 75 Rectangular pocket milling cycle(CW) G 76 Rectangular pocket milling cycle(CCW) G 77 Circular pocket milling cycle(CW) G 78 Circular pocket milling cycle(CCW) G 80 Canned cycle cancel G 81 Drilling cycle(Canned) G 82 Counter boring cycle(Canned)
G-code Meaning G 83 Peck drilling cycle(Canned) G 84 Tapping cycle (Canned) G 85 Boring cycle(Canned) G 87 Back boring cycle(Canned) G 90 Absolute positioning G 91 Incremental Positioning G 92 Zero preset G 94 Feed rate in mm/min G 95 Feed rate in mm/rev G 96 Constant surface speed control G 97 Constant surface speed control cancel.
M-code Meaning M 00 Program stop M 01 Optional stop M 02 Program end M 03 Spindle start (Clockwise) M 04 Spindle start(Counter clockwise) M 05 Spindle stop M 06 Tool change M 07 Thru spindle coolant on M 08 Coolant on M 09 Coolant off M 30 End program M 98 Call subroutine M 99 End of subroutine
Part Programming • It is defined as a set of instructions which consists of sequence of processing steps to be performed on CNC machine prepared by the programmer. • It is the planning and documenting the sequence of operations to be carried out on a given job in the form of coded instructions to covert raw material into desired product.
Cutter Radius Compensation • When machining is done by using cutter of different diameters, it will change the centre line path of the movement of cutter axis. • If program is designed separately for a cutter size and if another size of cutter is used during machining then job may be oversize or undersize. • Whenever part is being machined, the programmer must calculate an offset path which is usually half the cutter diameter.
- Slides: 35