Parametric programming: Difference between revisions

Content deleted Content added
ref
Citation bot (talk | contribs)
Removed parameters. | Use this bot. Report bugs. | Suggested by Dominic3203 | Category:Optimization algorithms and methods | #UCB_Category 105/168
 
Line 30:
 
=== In CNC programming ===
Parametric programming in the context of CNC ([[numerical control|computer numerical control]]) is defining part-cutting cycles in terms of variables with reassignable values rather than via hardcoded/hardwired instances. An [[wikt:archetype#Noun|archetypically simple]] example is writing a [[G-code]] program to machine a family of [[washer (hardware)|washers]]: there is often no need to write 15 programs for 15 members of the family with various hole diameters, outer diameters, thicknesses, and materials, when it is practical instead to write 1 program that calls various variables and reads their current values from a table of assignments. The program then instructs the machine slides and spindles to move to various positions at various velocities, accordingly, addressing not only the sizes of the part (i.e., OD, ID, thickness) but also even the [[speeds and feeds]] needed for any given material (e.g., low-carbon steel, high-carbon steel; stainless steel of whichever grade; bronze, brass, or aluminum of whichever grade; polymer of whichever type). Custom Macros are often used in such programming.<ref name="Lynch-2023-05-12">{{cite web |last1=Lynch |first1=Mike |date=2023-05-12 |title=5 Reasons Why You Should Know How to Write Custom Macros. Custom macros enhance what can be done in G-code programs, giving users the ability to code operations that were previously not possible |url=https://www.mmsonline.com/articles/5-reasons-why-you-should-know-how-to-write-custom-macros |website=www.mmsonline.com |access-date=2023-05-20 |language=en |postscript=.}}</ref>
 
==References==