INTRODUCTION TO COMPUTER NUMERICAL CONTROL - Home Teachers India

Breaking

Welcome to Home Teachers India

The Passion for Learning needs no Boundaries

Translate

Sunday, 12 July 2015

INTRODUCTION TO COMPUTER NUMERICAL CONTROL

INTRODUCTION TO COMPUTER NUMERICAL CONTROL
CNC MACHINING CENTERS 

INTRODUCTION TO COMPUTER NUMERICAL CONTROL

  The variety being demanded in view of the varying tastes of the consumer calls for a very small batch sizes. Small batch sizes will not be able to take advantage of the mass production techniques such as special purpose machines or transfer lines.  Hence, the need for flexible automation is felt , where you not only get the benefits of rigid automation but are also able to vary the products manufactured thus bringing in the flexibility. Numerical control   fits the bill perfectly and we would see that manufacturing would increasingly be dependent on numerical control in future.

Numerical control

 Numerical control of machine tools may be defined as a method of automation in which various functions of machine tools are controlled by letters, numbers and symbols. Basically a NC machine runs on a program fed to it. The program consists of precise instructions about the methodology of manufacture as well as movements. For example, what tool is to be used, at what speed, at what feed and to move from which point to which point in what path. Since the program is the controlling point for product manufacture, the machine becomes versatile and can be used for any part. All the functions of   a NC machine tool are therefore controlled electronically, hydraulically or pneumatically. In NC machine tools, one or more of the following functions may be automatic.

a.      Starting and stopping of machine tool spindle.
b.      Controlling the spindle speed.
c.      Positioning the tool tip at desired locations and guiding it along desired paths by automatic control of motion of slides.
d.      Controlling the rate of movement of tool tip ( feed rate)
e.      Changing of tools in the spindle. 

Functions of a machine tool   

 The purpose of a machine tool is to cut away surplus material, usually metal from the material supplied to leave a work piece of the required shape and size, produced to an acceptable degree of accuracy and surface finish. The machine tool should possess certain capabilities in order to fulfill these requirements. It must be 

a.      Able to hold the work piece and cutting tool securely.
b.      Endowed the sufficient power to enable the tool to cut the work piece material at economical rates.
c.      Capable of displacing the tool and work piece relative to one another to produce the required work piece shape. The displacements must be controlled with a degree of precision which will ensure the desired accuracy of surface finish and size.

Concept of numerical control
       
 Formerly, the machine tool operator guided a cutting tool around a work piece by manipulating hand wheels and dials to get a finished or somewhat finished part. In his procedure many judgments of speeds, feeds, mathematics and sometimes even tool configuration were his responsibility. The number of judgments the machinist had to make usually depended on the type of stock he worked in and the kind of organization that prevailed. If his judgment was an error, it resulted in   rejects or at best parts to be reworked or repaired in some fashion.
           
        Decisions concerning the efficient and correct use of the machine tool then depended on the craftsmanship, knowledge and skill of the machinist himself. It is rare that two expert operators produced identical parts using identical procedure and identical judgment of speeds, feeds and tooling. In fact even one craftsman may not proceed in same manner the second time around. 

. Process planners  and programmers have now the responsibilities for these matters. 

   It must be understood that NC does not alter the capabilities of the machine tool. The    With NC the correct and most efficient use of a machine no longer rests with the operator.Actual machine tool with a capable operator can do nothing more than it was capable of doing before a MCU was joined to it. New metal removing principles are not involved. Cutting speeds, feeds and tooling principles must still be adhered to. The advantage is idle time is reduced and the actual utilization rate is mush higher (compresses into one or two years that a conventional machine receives in ten years).

  Historical Development

       1947 was the year in which Numerical control was born. It began because of an urgent need. John C Parsons of the parson’s corporation, Michigan, a manufacturer of helicopter rotor blades could not make his templates fast enough. so he invented a way of coupling computer equipment with a jig borer. 

    The US air force realized in 1949 that parts for its planes and missiles were becoming more complex. Also the designs were constantly being improved; changes in drawings were frequently made. Thus in their search for methods of speeding up production, an air force study contract was awarded to the Parson’s Corporation. The servomechanisms lab of MIT   was the subcontractor.

   In 1951, the MIT took over the complete job and in 1952; a prototype of NC machine was successfully demonstrated. The term “Numerical Control” was coined at MIT. In 1955 seven companies had tape controlled machines. In 1960, there were 100 NC machines at the machine tool shown in Chicago and a majority of them were relatively simple point to point application.

     During these years the electronics industry was busy. First miniature electronic tubes were developed, then solid state circuitry and then modular or integrated circuits. Thus the reliability of the controls has been greatly increased and they have become most compact and less expensive. 

    Today there are several hundred sizes and varieties of machines, many options and many varieties of control system available. 

Definition: 

  The simplest definition is as the name implies, “a process a controlled by numbers “. Numerical Control is a system in which the direct insertions of programmed numerical value, stored on some form of input medium are automatically read and decoded to cause a corresponding function on the machine tool which it is controlling.

Advantages of NC machine tools

1.       Reduced lead time:
Lead time includes the time needed for planning, design and manufacture of jigs, etc. This time may amount to several months. Since the need for special jigs and fixtures is often entirely eliminated, the whole time needed for their design and manufacture is saved.

2.       Elimination of operator errors:
The machine is controlled by instructions registered on the tape provided the tape is correct and machine and tool operate correctly, no errors will occur in the job. Fatigue, boredom, or inattention by operator will not affect the quality or duration of the machining. Responsibility is transferred from the operator to the tape, machine settings are achieved without the operator reading the dial.

3.       Operator activity:
The operator is relieved of tasks performed by the machine and is free to attend to matters for which his skills and ability are essential. Presetting of tools, setting of components and preparation and planning of future jobs fall into this category. It is possible for two work stations to be prepared on a single machine table, even with small batches. Two setting positions are used, and the operator can be setting one station while machining takes place at the other. 

4.       Lower labor cost
More time is actually spent on cutting the metal. Machine manipulation time ex.:. Gear changing and often setting time are less with NC machines and help reduce the labor cost per job considerably.

5.       Smaller batches
By the use of preset tooling and presetting techniques downtime between batches is kept at a minimum. Large storage facilities for work in progress are not required. Machining centers eliminate some of the setups needed for a succession of operation on one job; time spent in waiting until each of a succession of machine is free is also cut. The components circulate round the machine shop in a shorter period, inter department costs are saved and ‘program chasing’ is reduced.
 
6.       Longer tool life
Tools can be used at optimum speeds and feeds because these functions are controlled by the program.

7.       Elimination of special jigs and fixtures
Because standard locating fixtures are often sufficient of work on machines.
the cost of special jigs and fixture is frequently eliminated. The capital cost of  storage facilities is greatly reduced. The storage of a tape in a simple matter, it may be kept for many years and manufacturing of spare parts, repeat orders or replacements is made much more convenient.

8.       Flexibility in changes of component design
The modification of component design can be readily accommodated by reprogramming and altering the tape. Savings are affected in time and cost. 

9.       Reduced inspection.
The time spent on inspection and in waiting for inspection to begin is greatly reduced. Normally it is necessary to inspect the first component only once the tape is proved; the repetitive accuracy of the machine maintains a consistent product.

10.   Reduced scrap
Operator error is eliminated and a proven tape results in accurate component. 

11.   Accurate costing and scheduling
The time taken in machining is predictable, consistent and results in a greater accuracy in estimating and more consistency in costing. 
                   
Evolution of CNC:

With the availability of microprocessors in mid 70’s the controller technology has made a tremendous progress. The new control systems are termed as computer numerical control (CNC) which are characterized by the availability of a dedicated computer and enhanced memory in the controller. These may also be termed “soft wired numerical control”.

There are many advantages which are derived from the use of CNC as compared to NC.

      Part program storage memory.
      Part program editing.
      Part program downloading and uploading.
      Part program simulation using tool path.
      Tool offset data and tool life management.
      Additional part programming facilities.
      Macros and subroutines.
      Background tape preparation, etc.
     
 The controls with the machine tools these days are all CNC and the old NC control do not exist any more.
 DEFINITION AND FEATURES OF CNC

Computer Numerical Control (CNC)

CNC refers to a computer that is joined to the NC machine to make the machine versatile. Information can be stored in a memory bank. The programme is read from a storage medium such as the punched tape and retrieved to the memory of the CNC computer. Some CNC machines have a magnetic medium (tape or disk) for storing programs. This gives more flexibility for editing or saving CNC programs. Figure 1 illustrates the general configuration of CNC. 

Figure 1  The general configuration of CNC.


Advantages of CNC
1.      Increased productivity.
2.      High accuracy and repeatability.
3.      Reduced production costs.
4.      Reduced indirect operating costs.
5.      Facilitation of complex machining operations.
6.      Greater flexibility.
7.      Improved production planning and control.
8.      Lower operator skill requirement.
9.      Facilitation of flexible automation.

Limitations of CNC:
1.      High initial investment.
2.      High maintenance requirement.
3.      Not cost-effective for low production cost.

Features of CNC

Computer NC systems include additional features beyond what is feasible with conventional hard-wired NC. These features, many of which are standard on most CNC Machine Control units (MCU), include the following:

      Storage of more than one part program : With improvements in computer storage technology, newer CNC controllers have sufficient capacity to store multiple programs. Controller manufacturers generally offer one or more memory expansions as options to the MCU

      Various forms of program input : Whereas conventional (hard-wired) MCUs are limited to punched tape as the input medium for entering part programs, CNC controllers generally possess multiple data entry capabilities, such as punched tape, magnetic tape, floppy diskettes, RS-232 communications with external computers, and manual data input (operator entry of program).

      Program editing at the machine tool : CNC permits a part program to be edited while it resides in the MCU computer memory. Hence, a part program can be tested and corrected entirely at the machine site, rather than being returned to the programming office for corrections. In addition to part program corrections, editing also permits cutting conditions in the machining cycle to be optimized. After the program has been corrected and optimized, the revised version can be stored on punched tape or other media for future use.

      Fixed cycles and programming subroutines : The increased memory capacity and the ability to program the control computer provide the opportunity to store frequently used machining cycles as macros, that can be called by the part program. Instead of writing the full instructions for the particular cycle into every program, a programmer includes a call statement in the part program to indicate that the macro cycle should be executed. These cycles often require that certain parameters be defined, for example, a bolt hole circle, in which the diameter of the bolt circle, the spacing of the bolt holes, and other parameters must be specified.

      Interpolation : Some of the interpolation schemes are normally executed only on a CNC system because of computational requirements. Linear and circular interpolation are sometimes hard-wired into the control unit, but helical, parabolic, and cubic interpolations are usually executed by a stored program algorithm.

      Positioning features for setup : Setting up the machine tool for a given workpart involves installing and aligning a fixture on the machine tool table. This must be accomplished so that the machine axes are established with respect to the workpart. The alignment task can be facilitated using certain features made possible by software options in the CNC system. Position set is one of the features. With position set, the operator is not required to locate the fixture on the machine table with extreme accuracy. Instead, the machine tool axes are referenced to the location of the fixture using a target point or set of target points on the work or fixture.

      Cutter length and size compensation : In older style controls, cutter dimensions hade to be set precisely to agree with the tool path defined in the part program. Alternative methods for ensuring accurate tool path definition have been incorporated into the CNC controls. One method involves manually entering the actual tool dimensions into the MCU. These actual dimensions may differ from those originally programmed. Compensations are then automatically made in the computed tool path. Another method involves use of a tool length sensor built into the machine. In this technique, the cutter is mounted in the spindle and the sensor measures its length. This measured value is then used to correct the programmed tool path.

      Acceleration and deceleration calculations : This feature is applicable when the cutter moves at high feed rates. It is designed to avoid tool marks on the work surface that would be generated due to machine tool dynamics when the cutter path changes abruptly. Instead, the feed rate is smoothly decelerated in anticipation of a tool path change and then accelerated back up to the programmed feed rate after the direction change.

      Communications interface : With the trend toward interfacing and networking in plants today, most modern CNC controllers are equipped with a standard RS-232 or other communications interface to link the machine to other computers and computerdriven devices. This is useful for various applications, such as (1)downloading part programs from a central data file; (2)collecting operational data such as workpiece counts, cycle times, and machine utilization; and (3)interfacing with peripheral equipment, such as robots that unload and load parts.

      Diagnostics : Many modern CNC systems possess a diagnostics capability that monitors certain aspects of the machine tool to detect malfunctions or signs of impending malfunctions or to diagnose system breakdowns.


The Machine Control Unit (MCU) for CNC

The MCU is the hardware that distinguishes CNC from conventional NC. The general configuration of the MCU in a CNC system is illustrated in Figure 2. The MCU consists of the following components and subsystems: (1) Central Processing Unit, (2) Memory, (3) Input/Output Interface, (4) Controls for Machine Tool Axes and Spindle Speed, and (5) Sequence Controls for Other Machine Tool Functions. These subsystems are interconnected by means of a system bus, which communicates data and signals among the components of a network.

      Central Processing Unit : The central processing unit (CPU) is the brain of the MCU. It manages the other components in the MCU based on software contained in main memory. The CPU can be divided into three sections: (1) control section, (2) arithmetic-logic unit, and (3) immediate access memory. The control section retrieves commands and data from memory and generates signals to activate other components in the MCU. In short, it sequences, coordinates, and regulates all the activities of the MCU computer. The arithmetic-logic unit (ALU) consists of the circuitry to perform various calculations (addition, subtraction, multiplication), counting, and logical functions required by software residing in memory. The immediate access memory provides a temporary storage of data being processed by the CPU. It is connected to main memory of the system data bus.

      Memory :  The immediate access memory in the CPU is not intended for storing CNC software. A much greater storage capacity is required for the various programs and data needed to operate the CNC system. As with most other computer systems, CNC memory can be divided into two categories: (1) primary memory, and (2) secondary memory.  Main memory (also known as primary storage) consists of ROM (read-only memory) and RAM (random access memory) devices. Operating system software and machine interface programs are generally stored in ROM. These programs are usually installed by the manufacturer of the MCU. Numerical control part programs are stored in RAM devices. Current programs in RAM can be erased and replaced by new programs as jobs are changed.

Figure 2 Configuration of CNC machine control unit

High-capacity secondary memory (also called auxiliary storage or secondary storage) devices are used to store large programs and data files, which are transferred to main memory as needed. Common among the secondary memory devices are hard disks and portable devices that have replaced most of the punched paper tape traditionally used to store part programs. Hard disks are high-capacity storage devices that are permanently installed in the CNC machine control unit. CNC secondary memory is used to store part programs, macros, and other software.

      Input/Output Interface : The I/O interface provides communication software between the various components of the CNC system, other computer systems, and the machine operator. As its name suggests, The I/O interface transmits and receives data and signals to and from external devices, several of which are illustrated in Figure 2. The operator control panel is the basic interface by which the machine operator communicates to the CNC system. This is used to enter commands related to part program editing, MCU operating mode (e.g., program control vs. manual control), speeds and feeds, cutting fluid pump on/off, and similar functions. Either an alphanumeric keypad or keyboard is usually included in the operator control panel. The I/O interface also includes a display (CRT or LED) for communication of data and information from the MCU to the machine operator. The display is used to indicate current status of the program as it is being executed and to warn the operator of any malfunctions in the CNC system.

Also included in the I/O interface are one or more means of entering the part program into storage. As indicated previously, NC part programs are stored in a variety of ways. Programs can also be entered manually by the machine operator or stored at a central computer site and transmitted via local area network (LAN) to the CNC system. Whichever means is employed by the plant, a suitable device must be included in the I/O interface to allow input of the program into MCU memory.

      Controls for Machine Tool Axes and Spindle Speed : These are hardware components that control the position and velocity (feed rate) of each machine axis as well as the rotational speed of the machine tool spindle. The control signals generated by MCU must be converted to a form and power level suited to the particular position control systems used to drive the machine axes. Positioning systems can be classified as open loop or closed loop, and different hardware components are required in each case.  

Depending on the type of machine tool, the spindle is used to drive either (1) workpiece or (2) a rotating cutter. Turning exemplifies the first case, whereas milling and drilling exemplify the second. Spindle speed is a programmed parameter for most CNC machine tools. Spindle speed components in the MCU usually consist of s drive control circuit and a feedback sensor interface. The particular hardware components depend on the type of spindle drive.

      Sequence Controls for Other Machine Tool Functions :

In addition to control of table position, feed rate, and spindle speed, several additional functions are accomplished under part program control. These auxiliary functions are generally on/off (binary) actuations, interlocks, and discrete numerical data. To avoid overloading the CPU, a programmable logic controller is sometimes used to manage the I/O interface for these auxiliary functions.

Classification Of CNC Machine Tools

(1) Based on the motion type 'Point-to-point & Contouring systems’

There are two main types of machine tools and the control systems required for use with them differ because of the basic differences in the functions of the machines to be controlled. They are known as point-to-point and contouring controls.

(1.1)Point-to-point systems

Some machine tools for example drilling, boring and tapping machines etc, require the cutter and the work piece to be placed at a certain fixed relative positions at which they must remain while the cutter does its work. These machines are known as point-to-point machines as shown in figure 3 (a) and the control equipment for use with them are known as point-to-point control equipment. Feed rates need not to be programmed. In these machine tools, each axis is driven separately. In a point-to-point control system, the dimensional information that must be given to the machine tool will be a series of required position of the two slides. Servo systems can be used to move the slides and no attempt is made to move the slide until the cutter has been retracted back. (1.2) Contouring systems (Continuous path systems)

Other type of machine tools involves motion of work piece with respect to the cutter while cutting operation is taking place. These machine tools include milling, routing machines etc. and are known as contouring machines as shown in figure 3 (b), 3 (c) and the controls required for their control are known as contouring control. Contouring machines can also be used as point-to-point machines, but it will be uneconomical to use them unless the work piece also requires having a contouring operation to be performed on it. These machines require simultaneous control of axes. In contouring machines, relative positions of the work piece and the tool should be continuously controlled. The control system must be able to accept information regarding velocities and positions of the machines slides. Feed rates should be programmed.

                                             
                                   Figure 3 (a) Point-to-point system                            Figure 3 (b) Contouring system

 
Figure 3 (c) Contouring systems

(2)  Based on the control loops ‘Open loop & Closed loop systems’

(2.1) Open loop systems (Fig 4(a)):
Programmed instructions are fed into the controller through an input device. These instructions are then converted to electrical pulses (signals) by the controller and sent to the servo amplifier to energize the servo motors. The primary drawback of the open-loop system is that there is no feedback system to check whether the program position and velocity has been achieved. If the system performance is affected by load, temperature, humidity, or lubrication then the actual output could deviate from the desired output. For these reasons the open -loop system is generally used in point-to-point systems where the accuracy requirements are not critical. Very few continuous-path systems utilize open-loop control.

(2.2) Closed loop systems (Fig 4(b)):
The closed-loop system has a feedback subsystem to monitor the actual output and correct any discrepancy from the programmed input. These systems use position and velocity feed back. The feedback system could be either analog or digital. The analog systems measure the variation of physical variables such as position and velocity in terms of voltage levels. Digital systems monitor output variations by means of electrical pulses. To control the dynamic behavior and the final position of the machine slides, a variety of position transducers are employed. Majority of CNC systems operate on servo mechanism, a closed loop principle. If a discrepancy is revealed between where the machine element should be and where it actually is, the sensing device signals the driving unit to make an adjustment, bringing the movable component to the required location.
Closed-loop systems are very powerful and accurate because they are capable of monitoring operating conditions through feedback subsystems and automatically compensating for any variations in real-time.

Figure 4 (c) Closed loop system
(3)  Based on the number of axes ‘2, 3, 4 & 5 axes CNC machines’

(3.1) 2& 3 axes CNC machines:
CNC lathes will be coming under 2 axes machines. There will be two axes along which motion takes place. The saddle will be moving longitudinally on the bed (Z-axis) and the cross slide moves transversely on the saddle (along X-axis). In 3-axes machines, there will be one more axis, perpendicular to the above two axes. By the simultaneous control of all the 3 axes, complex surfaces can be machined.
(3.2) 4 & 5 axes CNC machines (Fig. 5):
4 and 5 axes CNC machines provide multi-axis machining capabilities beyond the standard 3axis CNC tool path movements. A 5-axis milling centre includes the three X, Y, Z axes, the A axis which is rotary tilting of the spindle and the B-axis, which can be a rotary index table.

Figure 5: Five axes CNC machine

Importance of higher axes machining:

Reduced cycle time by machining complex components using a single setup. In addition to time savings, improved accuracy can also be achieved as positioning errors between setups are eliminated.
      Improved surface finish and tool life by tilting the tool to maintain optimum tool to part contact all the times.
      Improved access to under cuts and deep pockets. By tilting the tool, the tool can be made normal to the work surface and the errors may be reduced as the major component of cutting force will be along the tool axis.
      Higher axes machining has been widely used for machining sculptures surfaces in aerospace and automobile industry. 
(4)  Based on the power supply ‘Electric, Hydraulic & Pneumatic systems’
Mechanical power unit refers to a device which transforms some form of energy to mechanical power which may be used for driving slides, saddles or gantries forming a part of machine tool. The input power may be of electrical, hydraulic or pneumatic.



(4.1) Electric systems :

Electric motors may be used for controlling both positioning and contouring machines. They may be either a.c. or d.c. motor and the torque and direction of rotation need to be controlled. The speed of a d.c. motor can be controlled by varying either the field or the armature supply. The clutch-controlled motor can either be an a.c. or d.c. motor. They are generally used for small machine tools because of heat losses in the clutches. Split field motors are the simplest form of motors and can be controlled in a manner according to the machine tool. These are small and generally run at high maximum speeds and so require reduction gears of high ratio.
Separately excited motors are used with control systems for driving the slides of large machine tools.

(4.2) Hydraulic systems:

These hydraulic systems may be used with positioning and contouring machine tools of all sizes. These systems may be either in the form of rams or motors. Hydraulic motors are smaller than electric motors of equivalent power. There are several types of hydraulic motors. The advantage of using hydraulic motors is that they can be very small and have considerable torque. This means that they may be incorporated in servosystems which require having a rapid response.

CNC MACHINING CENTERS

  
The machining centre, developed in the late 50’s is a machine tool capable of multiple machining operations on a work part in one setup under NC program control.

Classification

Machining centres are classified as vertical, horizontal, or universal. The designation refers to the orientation of the machine spindle.

1.      A vertical machining centre has its spindle on a vertical axis relative to the work table. A vertical machining centre (VMC) is typically used for flat work that requires tool access from top. E.g. mould and die cavities, Large components of aircraft

2.      A horizontal machining centre (HMC) is used for cube shaped parts where tool access can be best achieved on the sides of the cube.

3.      A universal machining centre (UMC) has a work head that swivels its spindle axis to any angle between horizontal and vertical making this a very flexible machine tool.   E.g.:  Aerofoil shapes, Curvilinear geometries.

The term “Multi tasking machine” is used to include all of these machine tools that accomplish multiple and often quite different types of operations. The processes that might be available on a single multi tasking machine include milling, drilling, tapping, grinding and welding. Advantage of this new class of highly versatile machine compared to more conventional CNC machine tolls include: 

      Fewer steps, 
      Reduced part handling,
      Increased accuracy and repeatability because the parts utilize the same fixture through out their processing
      Faster delivery of parts in small lot sizes.                

Features of CNC machining centers:

CNC machining centers are usually designed with features to reduce non productive time. The features are:

      Automatic tool changer :

The tools are contained in a storage unit that is integrated with the machine tool. When a cutter needs to be changed, the tool drum rotates to the proper position and an automatic tool changer (ATC) operating under program control, exchanges the tool in the spindle for the tool in the tool storage unit. Capacities of tool storage unit commonly range from 16 to 80 cutting tools.




      Automatic work part positioner:

 Many horizontal and vertical machining centers have the capability to orient the work part relative to the spindle. This is accomplished by means of a rotary table on which work part is fixtured. The table can be oriented at any angle about a vertical axis to permit the cutting tool to access almost the entire surface of the part in a single setup.

      Automatic  pallet changer:

Machining centers are often equipped with two (or more) separate pallets that can be presented to the cutting tool using an automatic pallet changer. While machining is performed with one pallet in position at the machine, the other pallet is in a safe location away from the spindle. In this location, the operator can unload the finished part and then fixture the raw work part for next cycle.

Axes Designation in horizontal and vertical machining centres



 CNC PART PROGRAMMING



(1)  Programming fundamentals

Machining involves an important aspect of relative movement between cutting tool and workpiece. In machine tools this is accomplished by either moving the tool with respect to workpiece or vice versa. In order to define relative motion of two objects, reference directions are required to be defined. These reference directions depend on type of machine tool and are defined by considering an imaginary coordinate system on the machine tool. A program defining motion of tool / workpiece in this coordinate system is known as a part program. Lathe and Milling machines are taken for case study but other machine tools like CNC grinding, CNC hobbing, CNC filament winding machine, etc. can also be dealt with in the same manner.  

(1.1) Reference Point
Part programming requires establishment of some reference points. Three reference points are either set by manufacturer or user.
a)  Machine Origin

The machine origin is a fixed point set by the machine tool builder. Usually it cannot be changed. Any tool movement is measured from this point. The controller always remembers tool distance from the machine origin.

b)  Program Origin

It is also called home position of the tool. Program origin is point from where the tool starts for its motion while executing a program and returns back at the end of the cycle. This can be any point within the workspace of the tool which is sufficiently away from the part. In case of CNC lathe it is a point where tool change is carried out.

c)  Part Origin

The part origin can be set at any point inside the machine's electronic grid system. Establishing the part origin is also known as zero shift, work shift, floating zero or datum. Usually part origin needs to be defined for each new setup. Zero shifting allows the relocation of the part. Sometimes the part accuracy is affected by the location of the part origin. Figure 1 and 2 shows the reference points on a lathe and milling machine.



1.2  )Axis Designation  
An object in space can have six degrees of freedom with respect to an imaginary Cartesian coordinate system. Three of them are liner movements and other three are rotary. Machining of simple part does not require all degrees of freedom. With the increase in degrees of freedom, complexity of hardware and programming increases. Number of degree of freedom defines axis of machine.

Axes interpolation means simultaneous movement of two or more different axes generate required contour.
For typical lathe machine degree of freedom is 2 and so it called 2 axis machines. For typical milling machine degree of freedom is , which means that two axes can be interpolated at a time and third remains independent. Typical direction for the lathe and milling machine is as shown in figure 1 and figure 2.  

1.3  ) Setting up of Origin

In case of CNC machine tool rotation of the reference axis is not possible. Origin can set by selecting three reference planes X, Y and Z. Planes can be set by touching tool on the surfaces of the workpiece and setting that surfaces as X=x, Y=y and Z=z.  

(1.4 ) Coding Systems

The programmer and the operator must use a coding system to represent information, which the controller can interpret and execute. A frequently used coding system is the Binary-Coded Decimal or BCD system. This system is also known as the EIA Code set because it was developed by Electronics Industries Association. The newer coding system is ASCII and it has become the ISO code set because of its wide acceptance.

(2) CNC Code Syntax

The CNC machine uses a set of rules to enter, edit, receive and output data. These rules are known as CNC Syntax, Programming format, or tape format. The format specifies the order and arrangement of information entered. This is an area where controls differ widely. There are rules for the maximum and minimum numerical values and word lengths and can be entered, and the arrangement of the characters and word is important. The most common CNC format is the word address format and the other two formats are fixed sequential block address format and tab sequential format, which are obsolete. The instruction block consists of one or more words. A word consists of an address followed by numerals. For the address, one of the letters from A to Z is used. The address defines the meaning of the number that follows. In other words, the address determines what the number stands for. For example it may be an instruction to move the tool along the X axis, or to select a particular tool.


Most controllers allow suppressing the leading zeros when entering data. This is known as leading zero suppression. When this method is used, the machine control reads the numbers from right to left, allowing the zeros to the left of the significant digit to be omitted. Some controls allow entering data without using the trailing zeros. Consequently it is called trailing zero suppression. The machine control reads from left to right, and zeros to the right of the significant digit may be omitted.

No comments:

Post a Comment

Thank you for Contacting Us.

Post Top Ad