Multi-axis machining with Fusion
Published

Custom Macro Enables Automated CNC Program Generation

Rex Materials Group uses a custom macro from DP Technology to automate CNC programming.

Share

Automation doesn’t always have to take the form of robots or unattended machining cells. Rex Materials Group used a custom macro from DP Technology (Camarillo, California) to automate CNC programming of custom-engineered insulation products. In fact, the macros completely eliminated engineering from the production process, enabling the company to produce the product faster and at a lower price.

Fowlerville, Michigan-based Rex Materials specializes in high-temperature insulation products made from materials including vacuum-formed ceramic fiber, fused silica, insulating refractory and a ceramic/ceramic-metal matrix composite. These products are custom-formed to fit water heaters, kilns, injection molding barrels and more. Production involves mixing components, such as fiberglass flakes, water and other chemicals, in a batch tank, pumping the mixture into a mold and baking it in an oven. Normally, the products are cast to near net shape and then cut to final dimensions on a CNC machine.

One of Rex Materials’ newest products, Rex TCS, is designed to control barrel temperature in plastic extrusion and injection molding applications. To ensure the product line’s competitiveness, the company needed to decrease the cost by reducing the manufacturing engineering time needed to ready the design for production. “There’s a lot of variability in the lengths and diameters of barrels, which require a custom layout for the different heaters,” explains Adam Boyd, Rex Materials manufacturing engineer. Depending on the complexity of the part, it can take 2 to 12 hours to program the company’s MultiCAM and CNT Motion cutting machines. “If this product was going to make it to the widest possible market, we had to reduce programming time,” Mr. Boyd says.

The first step in achieving this goal was moving the TCS from manual to CNC production. A year and a half earlier, the company had adopted Esprit CNC programming software from supplier DP Technology in an effort to reduce engineering time. Esprit’s KnowledgeBase CAM software helps determine the best method to machine a given part or feature by automatically selecting the most appropriate machining cycles, cutting tools and machining parameters. “We bought Esprit because we were trying to avoid the expense of having an engineer look at every part,” Mr. Boyd explains. “Having software that could make some of the machining decisions would be a step toward that.”

A programmer begins by importing a SolidWorks CAD model into Esprit and selecting and organizing part features. The next step is defining machining operations. For each toolpath, the programmer selects a tool and defines its diameter, length, toolholder and speeds and feeds. After the toolpath is generated, the programmer uses the software’s simulation functionality to visualize the cutting process. The entire machining process, including each individual cut, is rendered in dynamic 3D solids. The program also generates a representation of the finished part for comparison to the original design.

Esprit helps program complex parts quickly, Mr. Boyd says, because the software can recognize and apply tool paths to complex curvatures. The mold function enables the operator to apply a roughing operation first, if necessary, and tells the software what can and cannot be touched. It then runs simulation to ensure the operation performs as expected. In addition to saving time, Esprit saves the cost of having to purchase special tools.

For the TCS, Mr. Boyd decided to take advantage of Esprit’s macro programming functionality. Macros simplify the creation of CNC programs by prompting the programmer to enter dimensions and other basic information for each type of part. He says the macro is well-suited for TCS production because the length, height and width of the products vary according to the shapes of customers’ injection barrels.

Esprit’s macro programming language is based on the industry-standard programming language Microsoft Visual Basic for Applications (VBA). Esprit enables programmers to use VBA to access virtually all of its capabilities. However, rather than developing the macro in-house, Mr. Boyd decided to have DP Technology create it for the company. He supplied a model of the basic heater, which is a hollow cylinder, and indicated all the dimensions and how they could vary. He also provided a sample CNC program to show the cutting strategy.

The macro that DP Technology created completely eliminates engineering from the TCS production process. “It uses information obtained by the sales person to automatically generate the CNC file,” Mr. Boyd says. A sales person enters values for the length, height, outside diameter and inside diameter of the product into a configurator. Special instructions, such as needing a flat instead of a rounded top, can also be entered into the configurator. The information then is exported into a Microsoft Excel file. In Esprit, a technician opens the macro and selects the Excel file. “Nearly everyone coming into our plant knows how to use Microsoft Windows, and that’s all they need to know to create the TCS machining programs,” Mr. Boyd says. Using the information in the Excel file, the macro writes the CNC program. As an added benefit, it also creates a drawing and a bill of materials.

Before implementing the Esprit macro, the company’s traditional programming process took at least 2 hours per part. Now, the TCS products can be automatically generated in 15 to 20 minutes. At 40 such programs a month, the macro saves 13 hours per month. Also, because the work is done by a technician rather an engineer, the cost savings enables the company to sell the new product at a more competitive price.

ProShop
Surface finishing in Fusion
HCL CAMworks
SmartCAM
Paperless Parts
World Machine Tool Survey
Discover a variety of the best CNC machines
An ad for Formnext Chicago on April 8-10, 2025.
VERISURF
Gardner Business Intelligence
DN Solutions
The Automated Shop Conference

Related Content

Basics

Choosing a Five-Axis Machine Tool With Automation in Mind

While much focus is placed on the machinery that moves parts, the features most important for automating five-axis machining are arguably found in the machine tool itself.

Read More
IMTS

Weiler to Debut New Automation Features For Its Lathes

Weiler’s V 110 four-way precision lathe introduces features new to the U.S.

Read More
Sponsored

Building a 5-Axis Cell

5-axis machining has taken over the metalworking industry, but what goes into a high-functioning 5-axis machining cell?

Read More
Top Shops

CNC Machine Shop Honored for Automation, Machine Monitoring

From cobots to machine monitoring, this Top Shop honoree shows that machining technology is about more than the machine tool.

Read More

Read Next

Encountering Surface Finishes in the Everyday World

Surface measurement is becoming increasingly important to ensure proper performance of a manufactured product. Advanced surface measurement tools are not only beneficial in the manufacturing industry but also have unconventional applications.

Read More
Basics

Obscure CNC Features That Can Help (or Hurt) You

You cannot begin to take advantage of an available feature if you do not know it exists. Conversely, you will not know how to avoid CNC features that may be detrimental to your process.

Read More
Micromachining

A History of Precision: The Invention and Evolution of Swiss-Style Machining

In the late 1800s, a new technology — Swiss-type machines — emerged to serve Switzerland’s growing watchmaking industry. Today, Swiss-machined parts are ubiquitous, and there’s a good reason for that: No other machining technology can produce tiny, complex components more efficiently or at higher quality.

Read More
SmartCAM