HOME

TheInfoList



OR:

Computer numerical control (CNC) or CNC machining is the automated control of
machine tool A machine tool is a machine for handling or machining metal or other rigid materials, usually by cutting, Boring (manufacturing), boring, grinding (abrasive cutting), grinding, shearing, or other forms of deformations. Machine tools employ some s ...
s by a computer. It is an evolution of numerical control (NC), where machine tools are directly managed by data storage media such as
punched card A punched card (also punch card or punched-card) is a stiff paper-based medium used to store digital information via the presence or absence of holes in predefined positions. Developed over the 18th to 20th centuries, punched cards were widel ...
s or
punched tape file:PaperTapes-5and8Hole.jpg, Five- and eight-hole wide punched paper tape file:Harwell-dekatron-witch-10.jpg, Paper tape reader on the Harwell computer with a small piece of five-hole tape connected in a circle – creating a physical program ...
. Because CNC allows for easier programming, modification, and real-time adjustments, it has gradually replaced NC as computing costs declined. A CNC machine is a motorized maneuverable tool and often a motorized maneuverable platform, which are both controlled by a computer, according to specific input instructions. Instructions are delivered to a CNC machine in the form of a sequential program of machine control instructions such as
G-code G-code (abbreviation for geometric code; also called RS-274, standardized today in ISO 6983-1) is the most widely used computer numerical control (CNC) and 3D printing programming language. It is used mainly in computer-aided manufacturing t ...
and M-code, and then executed. The program can be written by a person or, far more often, generated by graphical
computer-aided design Computer-aided design (CAD) is the use of computers (or ) to aid in the creation, modification, analysis, or optimization of a design. This software is used to increase the productivity of the designer, improve the quality of design, improve c ...
(CAD) or
computer-aided manufacturing Computer-aided manufacturing (CAM) also known as computer-aided modeling or computer-aided machining is the use of software to control machine tools in the manufacturing of work pieces. This is not the only definition for CAM, but it is the most ...
(CAM) software. In the case of 3D printers, the part to be printed is "sliced" before the instructions (or the program) are generated. 3D printers also use G-Code. CNC offers greatly increased productivity over non-computerized machining for repetitive production, where the machine must be manually controlled (e.g. using devices such as hand wheels or levers) or mechanically controlled by pre-fabricated pattern guides (see pantograph mill). However, these advantages come at significant cost in terms of both capital expenditure and job setup time. For some prototyping and small batch jobs, a good machine operator can have parts finished to a high standard whilst a CNC workflow is still in setup. In modern CNC systems, the design of a mechanical part and its manufacturing program are highly automated. The part's mechanical dimensions are defined using CAD software and then translated into manufacturing directives by CAM software. The resulting directives are transformed (by " post processor" software) into the specific commands necessary for a particular machine to produce the component and then are loaded into the CNC machine. Since any particular component might require the use of several different tools –
drill A drill is a tool used for making round holes or driving fasteners. It is fitted with a drill bit for making holes, or a screwdriver bit for securing fasteners. Historically, they were powered by hand, and later mains power, but cordless b ...
s,
saw A saw is a tool consisting of a tough blade, Wire saw, wire, or Chainsaw, chain with a hard toothed edge used to cut through material. Various terms are used to describe toothed and abrasive saws. Saws began as serrated materials, and when man ...
s, touch probes etc. – modern machines often combine multiple tools into a single "cell". In other installations, several different machines are used with an external controller and human or robotic operators that move the component from machine to machine. In either case, the series of steps needed to produce any part is highly automated and produces a part that meets every specification in the original CAD drawing, where each specification includes a tolerance.


Description

Motion is controlling multiple axes, normally at least two (X and Y), and a tool spindle that moves in the Z (depth). The position of the tool is driven by direct-drive stepper motors or servo motors to provide highly accurate movements, or in older designs, motors through a series of step-down gears. Open-loop control works as long as the forces are kept small enough and speeds are not too great. On commercial
metalworking Metalworking is the process of shaping and reshaping metals in order to create useful objects, parts, assemblies, and large scale structures. As a term, it covers a wide and diverse range of processes, skills, and tools for producing objects on e ...
machines, closed-loop controls are standard and required to provide the accuracy, speed, and
repeatability Repeatability or test–retest reliability is the closeness of the agreement between the results of successive measurements of the same measure, when carried out under the same conditions of measurement. In other words, the measurements are take ...
demanded.


Parts description

As the controller hardware evolved, the mills themselves also evolved. One change has been to enclose the entire mechanism in a large box as a safety measure (with safety glass in the doors to permit the operator to monitor the machine's function), often with additional safety interlocks to ensure the operator is far enough from the working piece for safe operation. Most new CNC systems built today are 100% electronically controlled. CNC-like systems are used for any process that can be described as movements and operations. These include
laser cutting Laser cutting is a technology that uses a laser to vaporize materials, resulting in a cut edge. While typically used for industrial manufacturing applications, it is now used by schools, small businesses, architecture, and hobbyists. Laser cutt ...
,
welding Welding is a fabrication (metal), fabrication process that joins materials, usually metals or thermoplastics, primarily by using high temperature to melting, melt the parts together and allow them to cool, causing Fusion welding, fusion. Co ...
, friction stir welding, ultrasonic welding, flame and
plasma cutting Plasma cutting is a process that cuts through electrically conductive materials by means of an accelerated jet of hot plasma. Typical materials cut with a plasma torch include steel, stainless steel, aluminum, brass and copper, although other ...
,
bending In applied mechanics, bending (also known as flexure) characterizes the behavior of a slender structural element subjected to an external Structural load, load applied perpendicularly to a longitudinal axis of the element. The structural eleme ...
, spinning, hole-punching, pinning, gluing, fabric cutting, sewing, tape and fiber placement, routing, picking and placing, and sawing.


History

The first NC machines were built in the 1940s and 1950s, based on existing tools that were modified with motors that moved the tool or part to follow points fed into the system on
punched tape file:PaperTapes-5and8Hole.jpg, Five- and eight-hole wide punched paper tape file:Harwell-dekatron-witch-10.jpg, Paper tape reader on the Harwell computer with a small piece of five-hole tape connected in a circle – creating a physical program ...
. These early
servomechanism In mechanical and control engineering, a servomechanism (also called servo system, or simply servo) is a control system for the position and its time derivatives, such as velocity, of a mechanical system. It often includes a servomotor, and ...
s were rapidly augmented with analog and digital computers, creating the modern CNC machine tools that have revolutionized machining processes.


Today

Now the CNC in the processing manufacturing field has been very extensive, not only the traditional
milling Milling may refer to: * Milling (minting), forming narrow ridges around the edge of a coin * Milling (grinding), breaking solid materials into smaller pieces by grinding, crushing, or cutting in a mill * Milling (machining), a process of using ro ...
and turning, other machines and equipment are also installed with the corresponding CNC, which makes the manufacturing industry in its support, greatly improving the quality and efficiency. Of course, the latest trend in CNC is to combine traditional subtractive manufacturing with additive manufacturing (3D printing) to create a new manufacturing method - hybrid additive subtractive manufacturing (HASM). Another trend is the combination of AI, using a large number of
sensor A sensor is often defined as a device that receives and responds to a signal or stimulus. The stimulus is the quantity, property, or condition that is sensed and converted into electrical signal. In the broadest definition, a sensor is a devi ...
s, with the goal of achieving flexible manufacturing.L.C. Moreira, W. Li, X. Lu, M.E. Fitzpatrick Supervision controller for real-time surface quality assurance in CNC machining using artificial intelligence Comput. Ind. Eng., 127 (2019), pp. 158-168


Examples of CNC machines


Other CNC tools

Many other tools have CNC variants, including: *
3D printing 3D printing, or additive manufacturing, is the construction of a three-dimensional object from a CAD model or a digital 3D model. It can be done in a variety of processes in which material is deposited, joined or solidified under computer ...
* CNC riveting * CNC router * Canned cycle * Cylindrical grinders *
Drill A drill is a tool used for making round holes or driving fasteners. It is fitted with a drill bit for making holes, or a screwdriver bit for securing fasteners. Historically, they were powered by hand, and later mains power, but cordless b ...
s * Embroidery machines *
Glass cutting A glass cutter is a tool used to make a shallow score in one surface of a piece of glass (normally a flat one) that is to be broken in two pieces, for example to fit a window. The scoring makes a split in the surface of the glass which encourages ...
* Hot-wire foam cutters * Induction hardening machines *
Laser cutting Laser cutting is a technology that uses a laser to vaporize materials, resulting in a cut edge. While typically used for industrial manufacturing applications, it is now used by schools, small businesses, architecture, and hobbyists. Laser cutt ...
*
Lathe A lathe () is a machine tool that rotates a workpiece about an axis of rotation to perform various operations such as cutting, sanding, knurling, drilling, deformation, facing, threading and turning, with tools that are applied to the w ...
s * Leather cutter *
Milling machine Milling is the process of machining using rotary cutters to remove material by advancing a cutter into a workpiece. This may be done by varying directions on one or several axes, cutter head speed, and pressure. Milling covers a wide variety of ...
* Oxy-fuel * Plasma cutters * Sheet metal works ( Turret punch) * Submerged arc welding * Surface grinder * Tube, pipe and wire bending machines * Vinyl cutter *
Water jet cutter A water jet cutter, also known as a water jet or waterjet, is an industrial tool capable of cutting a wide variety of materials using an extremely high-pressure jet of water, or a mixture of water and an abrasive substance. The term abrasive je ...
s * Wood routers


Tool/machine crashing

In CNC, a "crash" occurs when the machine moves in such a way that is harmful to the machine, tools, or parts being machined, sometimes resulting in bending or breakage of cutting tools, accessory clamps, vises, and fixtures, or causing damage to the machine itself by bending guide rails, breaking drive screws, or causing structural components to crack or deform under strain. A mild crash may not damage the machine or tools but may damage the part being machined so that it must be scrapped. Many CNC tools have no inherent sense of the absolute position of the table or tools when turned on. They must be manually "homed" or "zeroed" to have any reference to work from, and these limits are just for figuring out the location of the part to work with it and are no hard motion limit on the mechanism. It is often possible to drive the machine outside the physical bounds of its drive mechanism, resulting in a collision with itself or damage to the drive mechanism. Many machines implement control parameters limiting axis motion past a certain limit in addition to physical limit switches. However, these parameters can often be changed by the operator. Many CNC tools also do not know anything about their working environment. Machines may have load sensing systems on spindle and axis drives, but some do not. They blindly follow the machining code provided and it is up to an operator to detect if a crash is either occurring or about to occur, and for the operator to manually abort the active process. Machines equipped with load sensors can stop axis or spindle movement in response to an overload condition, but this does not prevent a crash from occurring. It may only limit the damage resulting from the crash. Some crashes may not ever overload any axis or spindle drives. If the drive system is weaker than the machine's structural integrity, then the drive system simply pushes against the obstruction, and the drive motors "slip in place". The machine tool may not detect the collision or the slipping, so for example the tool should now be at 210mm on the X-axis, but is, in fact, at 32mm where it hit the obstruction and kept slipping. All of the next tool motions will be off by −178mm on the X-axis, and all future motions are now invalid, which may result in further collisions with clamps, vises, or the machine itself. This is common in open-loop stepper systems but is not possible in closed-loop systems unless mechanical slippage between the motor and drive mechanism has occurred. Instead, in a closed-loop system, the machine will continue to attempt to move against the load until either the drive motor goes into an overload condition or a servo motor fails to get to the desired position. Collision detection and avoidance are possible, through the use of absolute position sensors (optical encoder strips or disks) to verify that motion occurred, or torque sensors or power-draw sensors on the drive system to detect abnormal strain when the machine should just be moving and not cutting, but these are not a common component of most hobby CNC tools. Instead, most hobby CNC tools simply rely on the assumed accuracy of stepper motors that rotate a specific number of degrees in response to magnetic field changes. It is often assumed the stepper is perfectly accurate and never missteps, so tool position monitoring simply involves counting the number of pulses sent to the stepper over time. An alternate means of stepper position monitoring is usually not available, so crash or slip detection is not possible. Commercial CNC metalworking machines use closed-loop feedback controls for axis movement. In a closed-loop system, the controller monitors the actual position of each axis with an absolute or incremental encoder. Proper control programming will reduce the possibility of a crash, but it is still up to the operator and programmer to ensure that the machine is operated safely. However, during the 2000s and 2010s, the software for machining simulation has been maturing rapidly, and it is no longer uncommon for the entire machine tool envelope (including all axes, spindles, chucks, turrets, tool holders, tailstocks, fixtures, clamps, and stock) to be modeled accurately with 3D solid models, which allows the simulation software to predict fairly accurately whether a cycle will involve a crash. Although such simulation is not new, its accuracy and market penetration are changing considerably because of computing advancements.


Numerical precision and equipment backlash

Within the numerical systems of CNC programming, the code generator can assume that the controlled mechanism is always perfectly accurate, or that precision tolerances are identical for all cutting or movement directions. While the common use of ball screws on most modern NC machines eliminates the vast majority of backlash, it still must be taken into account. CNC tools with a large amount of mechanical
backlash Backlash may refer to: Literature * '' Backlash: The Undeclared War Against American Women'', a 1991 book by Susan Faludi * ''Backlash'' (Star Wars novel), a 2010 novel by Aaron Allston * Backlash (Marc Slayton), a comic book character from ...
can still be highly precise if the drive or cutting mechanism is only driven to apply cutting force from one direction, and all driving systems are pressed tightly together in that one cutting direction. However, a CNC device with high backlash and a dull cutting tool can lead to cutter chatter and possible workpiece gouging. The backlash also affects the precision of some operations involving axis movement reversals during cutting, such as the milling of a circle, where axis motion is sinusoidal. However, this can be compensated for if the amount of backlash is precisely known by linear encoders or manual measurement. The high backlash mechanism itself is not necessarily relied on to be repeatedly precise for the cutting process, but some other reference object or precision surface may be used to zero the mechanism, by tightly applying pressure against the reference and setting that as the zero references for all following CNC-encoded motions. This is similar to the manual machine tool method of clamping a micrometer onto a reference beam and adjusting the Vernier dial to zero using that object as the reference.


Positioning control system

In numerical control systems, the position of the tool is defined by a set of instructions called the part program. Positioning control is handled using either an open-loop or a closed-loop system. In an open-loop system, communication takes place in one direction only: from the controller to the motor. In a closed-loop system, feedback is provided to the controller so that it can correct for errors in position, velocity, and acceleration, which can arise due to variations in load or temperature. Open-loop systems are generally cheaper but less accurate. Stepper motors can be used in both types of systems, while servo motors can only be used in closed systems.


Cartesian coordinates

The G & M code positions are all based on a three-dimensional
Cartesian coordinate system In geometry, a Cartesian coordinate system (, ) in a plane (geometry), plane is a coordinate system that specifies each point (geometry), point uniquely by a pair of real numbers called ''coordinates'', which are the positive and negative number ...
. This system is a typical plane often seen in mathematics when graphing. This system is required to map out the machine tool paths and any other kind of actions that need to happen in a specific coordinate. Absolute coordinates are what are generally used more commonly for machines and represent the (0,0,0) point on the plane. This point is set on the stock material to give a starting point or "home position" before starting the actual machining.


Coding


G-codes

G-code G-code (abbreviation for geometric code; also called RS-274, standardized today in ISO 6983-1) is the most widely used computer numerical control (CNC) and 3D printing programming language. It is used mainly in computer-aided manufacturing t ...
s are used to command specific movements of the machine, such as machine moves or drilling functions. The majority of G-code programs start with a percent (%) symbol on the first line, then followed by an "O" with a numerical name for the program (i.e. "O0001") on the second line, then another percent (%) symbol on the last line of the program. The format for a G-code is the letter G followed by two to three digits; for example G01. G-codes differ slightly between a mill and lathe application, for example: : 00 Rapid Motion Positioning: 01 Linear Interpolation Motion: 02 Circular Interpolation Motion-Clockwise: 03 Circular Interpolation Motion-Counter Clockwise: 04 Dwell (Group 00) Mill: 10 Set offsets (Group 00) Mill: 12 Circular Pocketing-Clockwise: 13 Circular Pocketing-Counter Clockwise


M-codes

ode Miscellaneous Functions (M-Code) M-codes are miscellaneous machine commands that do not command axis motion. The format for an M-code is the letter M followed by two to three digits; for example: : 01 Operational stop: 02 End of Program: 03 Start Spindle - Clockwise: 04 Start Spindle - Counter Clockwise: 05 Stop Spindle: 06 Tool Change: 07 Coolant on mist coolant: 08 Flood coolant on: 09 Coolant off: 10 Chuck open: 11 Chuck close: 12 Spindle up: 13 BOTH M03&M08 Spindle clockwise rotation & flood coolant: 14 BOTH M04&M08 Spindle counter clockwise rotation & flood coolant: 15 BOTH M05&M09 Spindle stop and Flood coolant off : 16 Special tool call: 19 Spindle orientate: 29 DNC mode: 30 Program reset & rewind: 38 Door open:
39 Door close 39 may refer to: * 39 (number) * one of the years: ** 39 BC ** AD 39 ** 1939 ** 2039 * 39 (album), ''39'' (album), a 2000 studio album by Mikuni Shimokawa * '39", a 1975 song by Queen * "Thirty Nine", a song by Karma to Burn from the album ''Almos ...
: 40 Spindle gear at middle: 41 Low gear select: 42 High gear select: 53 Retract Spindle(raises tool spindle above current position to allow operator to do whatever they would need to do) : 68 Hydraulic chuck close: 69 Hydraulic chuck open: 78 Tailstock advancing: 79 Tailstock reversing


Example

% O0001 G20 G40 G80 G90 G94 G54(Inch, Cutter Comp. Cancel, Deactivate all canned cycles, moves axes to machine coordinate, feed per min., origin coordinate system) M06 T01 (Tool change to tool 1) G43 H01 (Tool length comp. in a positive direction, length compensation for the tool) M03 S1200 (Spindle turns CW at 1200RPM) G00 X0. Y0. (Rapid Traverse to X=0. Y=0.) G00 Z.5 (Rapid Traverse to z=.5) G00 X1. Y-.75 (Rapid traverse to X1. Y-.75) G01 Z-.1 F10 (Plunge into part at Z-.25 at 10in per min.) G03 X.875 Y-.5 I.1875 J-.75 (CCW arc cut to X.875 Y-.5 with radius origin at I.625 J-.75) G03 X.5 Y-.75 I0.0 J0.0 (CCW arc cut to X.5 Y-.75 with radius origin at I0.0 J0.0) G03 X.75 Y-.9375 I0.0 J0.0(CCW arc cut to X.75 Y-.9375 with radius origin at I0.0 J0.0) G02 X1. Y-1.25 I.75 J-1.25 (CW arc cut to X1. Y-1.25 with radius origin at I.75 J-1.25) G02 X.75 Y-1.5625 I0.0 J0.0 (CW arc cut to X.75 Y-1.5625 with same radius origin as the previous arc) G02 X.5 Y-1.25 I0.0 J0.0 (CW arc cut to X.5 Y-1.25 with same radius origin as the previous arc) G00 Z.5 (Rapid traverse to z.5) M05 (spindle stops) G00 X0.0 Y0.0 (Mill returns to origin) M30 (Program End) % Having the correct speeds and feeds in the program provides for a more efficient and smoother product run. Incorrect speeds and feeds will cause damage to the tool, machine spindle, and even the product. The quickest and simplest way to find these numbers would be to use a calculator that can be found online. A formula can also be used to calculate the proper speeds and feeds for a material. These values can be found online or in
Machinery's Handbook ''Machinery's Handbook'' ''for machine shop and drafting-room; a reference book on machine design and shop practice for the mechanical engineer, draftsman, toolmaker, and machinist'' (the full title of the 1st edition) is a classic reference ...
.


See also

* Automatic tool changer *
Binary cutter location A cutter location (CLData) refers to the position which a CNC milling machine has been instructed to hold a milling cutter by the instructions in the program (typically G-code). Each line of motion controlling G-code consists of two parts: the t ...
* CNC plunge milling * Computer-aided technologies ** Computer-aided engineering (CAE) * Coordinate-measuring machine (CMM) *
Design for manufacturability Design for manufacturability (also sometimes known as design for manufacturing or DFM) is the general engineering practice of designing products in such a way that they are easy to manufacture. The concept exists in almost all engineering discipl ...
*
Direct numerical control Direct numerical control (DNC), also known as distributed numerical control (also DNC), is a common manufacturing term for networking CNC machine tools. On some CNC machine controllers, the available memory is too small to contain the machining p ...
(DNC) * EIA RS-274 * EIA RS-494 *
Gerber format The Gerber format is an open, ASCII, vector format for printed circuit board (PCB) designs. It is the ''de facto'' standard used by PCB industry software to describe the printed circuit board images: copper layers, solder mask, legend, drill d ...
* Home automation *
Maslow CNC Maslow CNC is an Open-source model, open-source CNC router project. It is the only commercially available vertical CNC router and is notable for its low cost of US$500. Although the kit is advertised at $500, like many tools, additional initial ...
* Multiaxis machining * Optical tracer * Part program *
Robotics Robotics is the interdisciplinary study and practice of the design, construction, operation, and use of robots. Within mechanical engineering, robotics is the design and construction of the physical structures of robots, while in computer s ...
* Touch probe * List of computer-aided manufacturing software


References


Further reading

* * * * * * * Herrin, Golden E
"Industry Honors The Inventor Of NC"
''Modern Machine Shop'', 12 January 1998. * Siegel, Arnold. "Automatic Programming of Numerically Controlled Machine Tools", ''Control Engineering'', Volume 3 Issue 10 (October 1956), pp. 65–70. * * Christopher jun Pagarigan (Vini) Edmonton Alberta Canada. CNC Infomatic, ''Automotive Design & Production''. * Fitzpatrick, Michael (2019), "Machining and CNC Technology".


External links

* {{DEFAULTSORT:Numerical Control Articles containing video clips fr:Machine-outil à commande numérique