Computer numerical control: Difference between revisions

Content deleted Content added
m adding link to touch probe
See also: List of 3D printing software
 
(46 intermediate revisions by 31 users not shown)
Line 1:
{{Short description|Computer control of machine tools}}
{{Redirect-multi|Numerics2|CNC|numerics|the field of computer science|Numericalnumerical analysis|other uses}}
{{Redirect|CNC}}
{{Redirect|Numerics|the field of computer science|Numerical analysis}}
[[File:CNC machine.jpg|thumb|A CNC machine that operates on wood]]
[[File:Wheel Machining.jpg|thumb|[[CNC machine]]machines pouringtypically use some kind of coolant, typically a water-miscible oil, to keep the tool and parts from getting hot.]]
[[File:Cnc lathe.png|thumb|A CNC [[metal lathe]] machinewith the door open.]]
'''Computer numerical control''' ('''CNC''') or '''CNC machining''' is the [[Automation|automated control]] of [[machine tool]]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]]s or [[punched tape]]. Because CNC allows for easier programming, modification, and real-time adjustments, it has gradually replaced NC as computing costs declined.<ref>{{cite web | url=https://www.pcmag.com/encyclopedia/term/numerical-control | title=Definition of numerical control }}</ref><ref>{{Cite web|title=What Is A CNC Machine? |url=https://cncmachines.com/what-is-a-cnc-machine|access-date=2022-02-04|website=CNC Machines }}</ref><ref>{{cite encyclopedia |last=Groover |first=Mikell P. |date=2024-10-28 |title=Automation - Numerical Control, Robotics, Manufacturing |url=https://www.britannica.com/technology/automation/Numerical-control#ref390752 |access-date=2025-03-18 |encyclopedia=[[Encyclopædia Britannica]]}}</ref>
 
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]] and M-code, and then executed. The program can be written by a person or, far more often, generated by graphical [[computer-aided design]] (CAD) or [[computer-aided manufacturing]] (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.<ref name=":1">{{Cite web |last=3ERP |date=2022-06-24 |title=What is CNC Milling and How Does it Work: Everything You Need to Know - 3ERP |url=https://www.3erp.com/blog/cnc-milling-everything-you-need-to-know/ |access-date=20222025-0603-3018 |website=Rapid Prototyping & Low Volume Production |language=en-US3ERP}}</ref>
In [[machining]], '''numerical control''', also called '''computer numerical control''' ('''CNC'''),<ref>{{Cite web|title=What Is A CNC Machine? {{!}} CNC Machines|url=https://cncmachines.com/what-is-a-cnc-machine|access-date=2022-02-04|website=cncmachines.com}}</ref> is the [[automation|automated control]] of tools by means of a [[computer]]. It is used to operate tools such as [[drill]]s, [[lathe]]s, [[Milling (machining)|mills]], [[Grinding machine|grinders]], [[CNC router|routers]] and [[3D printer]]s. CNC transforms a piece of material ([[metal]], [[plastic]], wood, ceramic, stone, or composite) into a specified shape by following coded programmed instructions and without a manual operator directly controlling the machining operation.
 
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]] and M-code, and then executed. The program can be written by a person or, far more often, generated by graphical [[computer-aided design]] (CAD) or [[computer-aided manufacturing]] (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.<ref name=":1">{{Cite web |last=3ERP |date=2022-06-24 |title=What is CNC Milling and How Does it Work: Everything You Need to Know - 3ERP |url=https://www.3erp.com/blog/cnc-milling-everything-you-need-to-know/ |access-date=2022-06-30 |website=Rapid Prototyping & Low Volume Production |language=en-US}}</ref>
 
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#Milling machines|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 production|batch]] jobs, a good machine operator can have parts finished to a high standard whilst a CNC workflow is still in setup.
Line 27 ⟶ 25:
==History==
{{Main article|History of numerical control}}
The first CNCNC 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]].<ref name=":1" /> These early [[servomechanism]]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 (machining)|milling]] 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<ref>{{Cite web |last=CapableMaching |title=CNC Machining Industry: new & important trend |url=https://capablemachiningcapablemaching.com/cnc-machining-industry/ |website=}}</ref> is to combine traditional [[Machining|subtractive manufacturing]] with [[3D printing|additive manufacturing]] (3D printing) to create a new manufacturing method<ref>Chang Y C, Pinilla J M, Kao J H, et al. Automated layer decomposition for additive/subtractive solid freeform fabrication[C]. 1999 International Solid Freeform Fabrication Symposium, 1999.</ref> - hybrid additive subtractive manufacturing (HASM).<ref>{{Cite journal |last=W. Grzesik/ |date=2018 |title=HYBRIDHybrid ADDITIVEAdditive ANDand SUBTRACTIVESubtractive MANUFACTURINGManufacturing PROCESSES...Processes and Systems: A Review |url=https://bibliotekanauki.pl/articles/99525.pdf |journal=Journal of Machine Engineering |volume=18 |issue=4 |pages=5–24|doi=10.5604/01.3001.0012.7629 |doi-broken-date=1 July 2025 }}</ref> Another trend is the combination of [[Artificial intelligence|AI]], using a large number of [[sensor]]s, with the goal of achieving [[Flexible manufacturing system|flexible manufacturing]].<ref>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</ref>
 
==Examples of CNC machines==
Line 39 ⟶ 37:
| [[Milling (machining)|Mill]] || Translates programs consisting of specific numbers and letters to move the spindle (or workpiece) to various locations and depths. Can either be a Vertical Milling Center (VMC) or a Horizontal Milling Center, depending on the orientation of the spindle. Many use [[G-code]]. Functions include: face milling, shoulder milling, tapping, drilling and some even offer turning. Today, CNC mills can have 3 to 6 axes. Most CNC mills require placing the workpiece on or in them and must be at least as big as the workpiece, but new 3-axis machines are being produced that are much smaller.||
|-
| [[Lathe]] || Cuts workpieces while they are rotated. Makes fast, precision cuts, generally using [[Cutting tool (machining)#Cutting tools with inserts (indexable tools)|indexable]] tools and drills. Effective for complicated programs designed to make parts that would be unfeasible to make on manual lathes. Similar control specifications to CNC mills and can often read [[G-code]]. Generally have two axes (X and Z), but newer models have more axes, allowing for more advanced jobs to be machined. Most modern lathes have live tooling, allowing for limited milling operations to take place without having to remove the part from the lathe spindle. Second operations can be completed by using a sub-spindle, which is co-axial to the main spindle, but faces the other direction. This allows the part to be removed from the main spindle, and for additional features to be machined in the back side of the part.||
|-
| [[Plasma cutter]] || Involves cutting a material using a [[plasma torch]]. Commonly used to cut steel and other metals, but can be used on a variety of materials. In this process, gas (such as [[compressed air]]) is blown at high speed out of a nozzle; at the same time, an electrical arc is formed through that gas from the nozzle to the surface being cut, turning some of that gas to [[Plasma (physics)|plasma]]. The plasma is sufficiently hot to melt the material being cut and moves sufficiently fast to blow molten metal away from the cut.|| [[File:CNC Plasma Cutting.ogv|thumb|CNC plasma cutting]]
|-
| [[Electric discharge machining]] || (EDM), also known as spark machining, spark eroding, burning, die sinking, or wire erosion, is a manufacturing process in which the desired shape is obtained using electrical discharges (sparks). Material is removed from the workpiece by a series of rapidly recurring [[Electric current|current]] discharges between two electrodes, separated by a [[dielectric fluid]] and subject to an electric [[voltage]]. One of the electrodes is called the tool electrode, or simply the "tool" or "electrode", while the other is called the workpiece electrode, or "workpiece". || [[File:EDMWorkpiece.jpg|thumb|Master at the top, badge die workpiece at bottom, oil jets at left (oil has been drained). Initial flat stamping will be "dapped" to give a curved surface.]]
EDM can be broadly divided into "sinker" type processes, where the electrode is the positive shape of the resulting feature in the part, and the electric discharge erodes this feature into the part, resulting in the negative shape, and "wire" type processes. Sinker processes are rather slow as compared to conventional machining, averaging on the order of 100 mm<sup>3</sup>/min,<ref>{{Cite journal |last1=Klocke |first1=F. |last2=Schwade |first2=M. |last3=Klink |first3=A. |last4=Veselovac |first4=D. |date=2013-01-01 |title=Analysis of Material Removal Rate and Electrode Wear in Sinking EDM Roughing Strategies using Different Graphite Grades |journal=Procedia CIRP |series=Proceedings of the Seventeenth CIRP Conference on Electro Physical and Chemical Machining (ISEM) |volume=6 |pages=163–167 |doi=10.1016/j.procir.2013.03.079 |issn=2212-8271|doi-access=free }}</ref> as compared to 8 million mm<sup>3</sup>/min for conventional machining, but it can generate features that conventional machining cannot. Wire EDM operates by using a thin conductive wire, typically brass, as the electrode, and discharging as it runs past the part being machined. This is useful for complex profiles with inside 90 degree corners that would be challenging to machine with conventional methods.
 
|-|
 
[[File:EDMWorkpiece.jpg|thumb|Sinker EDM. Electrolyte solution saturates the workpiece, and voltage is applied between the sinker, top, and workpiece, bottom.]]
|-
| Multi-spindle machine || Type of [[Automatic lathe|screw machine]] used in mass production. Considered to be highly efficient by increasing productivity through automation. Can efficiently cut materials into small pieces while simultaneously utilizing a diversified set of tooling. Multi-spindle machines have multiple spindles on a drum that rotates on a horizontal or vertical axis. The drum contains a drill head which consists of several spindles that are mounted on [[ball bearing]]s and driven by [[gear]]s. There are two types of attachments for these drill heads, fixed or adjustable, depending on whether the center distance of the drilling spindle needs to be varied.<ref>{{Cite news|url=https://www.davenportmachine.com/multi-spindle-machines/|title=Multi Spindle Machines - An In-Depth Overview|work=Davenport Machine|access-date=2017-08-25|language=en-US}}</ref> ||
|-
| [[Water jet cutter]] || Also known as a "waterjet", is a tool capable of slicing into metal or other materials (such as [[granite]]) by using a jet of water at high velocity and pressure, on the order of 60,000 PSI, or a mixture of water and an [[abrasive]] substance, such as sandgarnet powder. It is often used during the fabrication or manufacture of parts for machinery and other devices. Waterjet cutting is the preferred machining method when the materials being cut are sensitive to the high temperatures generated by other methods. It has found applications in a diverse number of industries from mining to aerospace where it is used for operations such as [[cutting]], shaping, [[carving]], and [[reaming]]. The thickness of material processable via waterjet machining is generally limited by the pressure of the waterjet, and by the dispersion of the jet as it gets further from the nozzle. Some waterjet cutters have a 5-axis cutting head, allowing for much more complex shapes to be cut, and to compensate for the angle of the kerf to leave the angled wall on the stock instead of on the finished part. ||[[File:Waterjet cutting machine.jpg|alt=Thibaut Waterjet cutting machine|thumb|[[Water jet cutter|Waterjet]] cutting machine for all materials]]
| Wire EDM || Also known as wire cutting EDM, wire burning EDM, or traveling wire EDM, this process uses [[spark erosion]] to machine or remove material from any electrically conductive material, using a traveling wire electrode. The wire electrode usually consists of [[brass]]- or [[zinc]]-coated brass material. Wire EDM allows for near 90-degree corners and applies very little pressure on the material.<ref>{{Cite news|url=http://parts-badger.com/machining-types/|title=Machining Types - Parts Badger|work=Parts Badger|access-date=2017-07-07|language=en-US}}</ref> Since the wire is eroded in this process, a wire EDM machine feeds fresh wire from a spool while chopping up the used wire and leaving it in a bin for [[recycling]].<ref name=":0">{{Cite web|url=http://todaysmachiningworld.com/magazine/how-it-works-wire-edm/|title=How it Works – Wire EDM {{!}} Today's Machining World|website=todaysmachiningworld.com|language=en-US|access-date=2017-08-25}}</ref> ||
|-
| Sinker EDM || Also called cavity type EDM or volume EDM, a sinker EDM consists of an electrode and workpiece submerged in oil or another dielectric fluid. The electrode and workpiece are connected to a suitable power supply, which generates an electrical potential between the two parts. As the electrode approaches the workpiece, dielectric breakdown occurs in the fluid forming a [[plasma channel]] and small spark jumps. Production dies and molds are often made with sinker EDM. Some materials, such as soft [[Ferrite (magnet)|ferrite]] materials and epoxy-rich bonded magnetic materials are not compatible with sinker EDM as they are not electrically conductive.<ref>{{Cite web|url=http://www.qualityedm.com/sinkeredm.html|title=Sinker EDM - Electrical Discharge Machining|website=www.qualityedm.com|access-date=2017-08-25}}</ref> ||
|-
| [[Water jet cutter]] || Also known as a "waterjet", is a tool capable of slicing into metal or other materials (such as [[granite]]) by using a jet of water at high velocity and pressure, or a mixture of water and an [[abrasive]] substance, such as sand. It is often used during the fabrication or manufacture of parts for machinery and other devices. Waterjet is the preferred method when the materials being cut are sensitive to the high temperatures generated by other methods. It has found applications in a diverse number of industries from mining to aerospace where it is used for operations such as [[cutting]], shaping, [[carving]], and [[reaming]]. ||[[File:Waterjet cutting machine.jpg|alt=Thibaut Waterjet cutting machine|thumb|[[Water jet cutter|Waterjet]] cutting machine for all materials]]
|-
| [[Punch press]] || Used to rapidly punch holes and cut thin materials. Such as sheet metal, plywood, thin bar stock, and tubing. Punch presses are generally used when a CNC mill would be inefficient or unfeasible. CNC punch presses can come in the C frame, where the sheet material is clamped onto a machining table and a hydraulic ram pushes down on the material, or they can come in a portal frame variant where bar stock/tubing is fed into the machine.
Line 58 ⟶ 57:
 
==Other CNC tools==
[[File:Cortadora Laser - FabLAB Newton.jpg|thumb|[[Laser cutter]] at a [[fab lab]]]]
Many other tools have CNC variants, including:
{{div col begin}}
* [[3D printing]]
* [[CNC riveting]]
* [[CNC router]]
* [[Canned cycle]]
Line 96 ⟶ 97:
 
==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. ThisWhile isthe notcommon alwaysuse aof true[[Ball conditionscrew|ball screws]] on most modern NC machines eliminates the vast majority of CNCbacklash, it still must be taken into toolsaccount. CNC tools with a large amount of mechanical [[backlash (engineering)|backlash]] 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 (device)|micrometer]] onto a reference beam and adjusting the [[Vernier scale|Vernier]] dial to zero using that object as the reference.{{citation needed|date=November 2017}}
Line 138 ⟶ 139:
:[M16 Special tool call]
:[M19 Spindle orientate]
:[M29 DNC mode ]
:[M30 Program reset & rewind]
:[M38 Door open]
Line 179 ⟶ 180:
 
==See also==
{{Portal|Manufacturing}}
*[[Automatic tool changer]]
*[[Binary cutter ___location]]
Line 196 ⟶ 198:
*[[Part program]]
*[[Robotics]]
*[[Touch_probeTouch probe]]
*[[Wireless DNC]]
*[[List of computer-aided manufacturing software]]
*[[List of 3D printing software]]
 
==References==
Line 214 ⟶ 216:
* {{Smid2008}}
* Christopher jun Pagarigan (Vini) Edmonton Alberta Canada. CNC Infomatic, ''Automotive Design & Production''.
* [https://www.engtechgroup.com/cnc-machines-evolution/ The Evolution of CNC Machines (2018).] Retrieved October 15, 2018, from Engineering Technology Group
* Fitzpatrick, Michael (2019), "Machining and CNC Technology".
 
Line 237 ⟶ 238:
[[Category:Numerical control| ]]
[[Category:Articles containing video clips]]
 
[[fr:Machine-outil à commande numérique]]