Menu Close

Macro Programming… Keeping It All “In the Family”

Through the use of standard canned cycles on today’s advanced CNC, Randy Pearson of Siemens Industry shows how the programmer can use much higher levels of language without the need for custom writes, when transitioning among part family members.

Through the use of standard canned cycles on today’s advanced CNC, the programmer can use much higher levels of language without the need for custom writes, when transitioning among part family members.

When programming for families of products on previous generations of CNC technology, there was always the need to re-code every part for front and back, left and right, top and bottom, hole diameters, hole positions, thread depths, etc.  This created a lot of needless duplication of effort.  (Yes, I can see many heads nodding out there.) 

Today, with the advancements in CNC technology, it is now possible to configure part options on the first program, then through truly conditional jumps (if/then options) and rewritable variables, all kinds of calculations and predetermined offsets can be used to produce an entire family – a really big family – of parts, without the need for endless rewrites.

Quick examples include something simple, like the same hole being transitioned 1 in inside a bracket and the more complex math calculation of multiple holes staggered on variable centers on sister parts of different thicknesses.

Through a canned cycle on the CNC, a plain language name such as “Bracket One” could be established for a particular program, with all the parameters for that part included. Next, the program gets stored in an open cycle area on the control.

Subsequently, any part program requiring any element from “Bracket One” can be developed by a simple cut-and-past operation. Note that this feature is entirely managed by the shop programmer, not the control supplier or the machine tool builder.

A further enhancement of this feature on the most advanced CNC is the nesting capability, where a sub-routine can call up another sub-routine to create families of parts within other families of parts.

I like to say the only limitation on this feature is the programmer’s imagination. (I can see you guys smiling now.) That’s because this feature is pure math. Direct math symbols are used in doing macros with variable calculations, then the programs are named with plain language tags, rather than a number series, making identification for both programmer and operator much easier and safer in use.

With the same knowledge of trigonometry, geometry and calculus that made you a good programmer in the first place, you can use the features of an advanced CNC to get the fastest and most flexible production you’ve ever “imagined” from your shop’s machine tools. Just keeps getting better, doesn’t it?

In the end, whether your parts are nearly identical siblings or just distant cousins, CNC technology has advanced to a point where you can craft the programs to produce each part in far less time and with far more repeatable accuracy than ever, owing to expanded macro programming features and cycle storage capacity.

Subscribe to learn the latest in manufacturing.

Leave a Reply

Your email address will not be published. Required fields are marked *

Industry News

The facility is equipped with state-of-the-art machinery, testing labs, and collaborative workspaces designed to meet the diverse needs of its customers and partners.
Star Cutter has named Adam Chipman to support sales and service of the company’s line of TRU TECH centerless and cylindrical grinding machines.
The local customer service team in North America will be led by Fernando Ramos, appointed as the customer service manager for North America. Joining Ramos is Ricardo Herrera, appointed as the spare parts and warehouse manager at HSG Laser U.S.

Sign Up For e-Newsletter

eNewsletter Signup

Upcoming Events

Organized by Fastenal
20 May
  • Webinars
Tue, May 20, 2025 - 12:00 pm
Tue, May 20, 2025 - 12:30 pm
Organized by SME
08 Sep
  • Trade Shows
Mon, Sep 08, 2025 - 9:00 am
Thu, Sep 11, 2025 - 5:00 pm
2301 S. Dr. Martin Luther King Jr. Drive, Chicago, IL, United States, 60616
  • Trade Shows
Wed, Apr 02, 2025 - 12:00 am
Fri, Apr 04, 2025 - 11:59 pm
221 S. 4th St., Louisville, KY, United States, 40202