Home AI Automation Insights

One program, multiple parts: Fusion CAM and FANUC ROBODRILL at CNC Plus

FANUC ROBODRILL work area with three parts clamped in vises at CNC Plus

Multiple parts clamped in the FANUC ROBODRILL work area at CNC Plus, s.r.o.

When several identical parts are machined, maintaining duplicate toolpaths adds work without adding value. At CNC Plus, s.r.o., we therefore connected a part pattern prepared in Autodesk Fusion to a modified postprocessor for a FANUC ROBODRILL.

The result is a readable NC program that stores the path for each operation only once. Individual fixture positions are controlled through the G52 local coordinate shift, subprograms and Fanuc Macro B variables. The operator can decide at the machine how many parts—and exactly which positions—will be machined.

Quick answer

  • Customer: CNC Plus, s.r.o. in Třebíč, Czech Republic—precision milling of metals and plastics for series and one-off production.
  • CAM and machine: Autodesk Fusion CAM and FANUC ROBODRILL.
  • Solution: a custom-modified postprocessor for patterned and indexed machining.
  • Key technology: G52, local subprograms, M98 Q and Fanuc Macro B.
  • Main benefit: one reference toolpath, flexible fixture-position selection and a more readable NC output.

In this case study

  1. Multiple parts in one setup
  2. How the integration works
  3. A pattern controlled by Fanuc Macro B
  4. One path, repeated use
  5. Production-ready NC output
  6. What the solution gives CNC Plus
  7. About CNC Plus
  8. Frequently asked questions

Starting point: multiple parts in one setup

In series production, it makes sense to use the machine envelope efficiently and clamp several identical parts at once. The programmer prepares the machining for one position and creates a pattern in Fusion. The toolpath stays the same; only the location of each copy changes.

The integration had to transfer this logic into an NC program that remained easy for both the programmer and operator to read. It also had to reflect the actual fixture loading without manually copying long blocks of code.

Three aluminium workpieces clamped in separate vises inside a FANUC ROBODRILL
Three workpieces in separate vises—the same path at three precisely defined positions.

How the integration works

The programmer prepares the Setup, tools, machining operations and pattern in the normal way in Autodesk Fusion. During NC generation, the modified postprocessor identifies the positions and creates a structure tailored to the FANUC ROBODRILL control.

Model of three vises and three patterned stock positions in Autodesk Fusion CAM
Three fixture positions modelled in Autodesk Fusion.

The workflow has four layers:

  1. CAM: model, Setup, tools, operations and part pattern.
  2. Translation: the postprocessor recognizes the pattern positions.
  3. NC logic: Fanuc Macro B and the G52 local shift control active positions.
  4. Machine: M98 Q calls the reference path for the selected position.

Each unique toolpath is stored only once in a local subprogram. The main program decides which position to machine, applies the corresponding shift and safely returns it to zero afterwards.

A pattern controlled by Fanuc Macro B

The NC program begins with a separate, readable setup block. This example defines three parts with 115 mm pitch along X:

(POLE 1 - LINEARNI)
#511=3       (POCET INSTANCI VCETNE PRVNI)
#512=115.    (ROZTEC X)
#513=0.      (ROZTEC Y)
#514=1       (MASTER POLE)
#515=1       (DILEC 1 X0. Y0.)
#516=1       (DILEC 2 X115. Y0.)
#517=1       (DILEC 3 X230. Y0.)

Variable #511 sets the number of processed positions, #512 and #513 define the pitch, and the remaining variables act as switches. A value of 1 means machine the position; 0 skips it.

Multi-part fixture with many aluminium blanks inside a FANUC ROBODRILL
Real multi-part workholding in the ROBODRILL work area.

If the second blank is not loaded, for example, the operator sets #516=0. The first and third parts run normally while the second position is safely skipped. There is no need to delete program sections or post the NC code again.

For more background on variables, conditions and safe commissioning, see our guide to Fanuc Macro B and G65 CNC automation.

One path, repeated use

The machining path itself is stored as a local subprogram. Before calling it, the main program checks whether the part is active and applies the appropriate shift.

IF[#511LT2]GOTO90001
IF[#514EQ0]GOTO90001
IF[#516EQ0]GOTO90001
G52 X[#512*1] Y[#513*1] Z0.
M98 Q10
N90001
G52 X0. Y0. Z0.

Every position is calculated from the same reference origin. Whether the operation runs or is skipped, G52 X0. Y0. Z0. follows, so shifts do not accumulate from one part to the next.

This code sample belongs to the verified CNC Plus configuration. It is not a universal template for every FANUC machine. Syntax, installed options, parameters and safe sequences must be checked on the exact controller and machine.
Five workpiece positions on a fixture model in Autodesk Fusion
Five fixture positions in the CAM model. The same principle can be adapted to the actual layout.

NC output prepared for production

The postprocessor modification goes beyond the pattern itself. Program readability at production handover is equally important. The header automatically contains the date, author, postprocessor revision and a tool list with the lowest Z coordinate reached by every tool.

O1234 (413-4003-13-A)
(13.10.2026)
(MAREK SKOTAK)
(NASTROJOVY LIST)
(T1 VRTAK_9TK_L83_KL.25X70_BT.30 Z=-36.638)
(PP VERSION 1310_1230)

The postprocessor also prepares technology blocks for tool changes, coolant, optional stops before operations and indexed machining. The program therefore follows the actual process used on this machine.

After a tool change, the pattern values are loaded again and passed through a checking subprogram. It validates items such as the allowed part-count range, an integer part count and the state of each switch. If a value is invalid, the control raises an alarm before that operation starts cutting.

What the solution gives CNC Plus

  • Shorter NC program: the reference path is stored once and called again for other parts with the appropriate shift.
  • Flexible fixture loading: the operator can enable or disable individual positions in a clear variable block.
  • Better program readability: the header, operation names, tool list and comments simplify the pre-run check.
  • Consistent workflow: the pattern logic is generated automatically during post processing and matches the specific ROBODRILL process.
Production fixture holding rows of partially machined aluminium parts inside a FANUC ROBODRILL
A multi-part fixture in production—the practical result of connecting CAM preparation and NC logic.

About CNC Plus, s.r.o.

CNC Plus is based in Třebíč, Czech Republic, and specializes in precision milling of metals and plastics. The company has worked in this field since 1997 and provides both series and one-off production. Its website lists production runs from 10 to 100,000 parts, 24 machining centres and turning services.

An integration built around real production

The postprocessor was developed for the actual machine configuration and CNC Plus requirements. This was not simply a generic conversion of toolpaths into G-code; it connected Fusion preparation to the way the programmer and operator work in production.

The programmer prepares the pattern in CAM, the postprocessor generates a controlled program structure, and the operator receives a simple setup for each position. One NC output can therefore adapt to the current fixture loading without altering the toolpaths themselves.

Conclusion

The Autodesk Fusion and FANUC ROBODRILL integration at CNC Plus shows that a well-designed postprocessor can carry more than toolpath geometry. It can also add fixture logic, position selection, setup validation and the information the operator needs.

Combining G52, local subprograms and Fanuc Macro B makes it possible to reuse one reference path across multiple parts. The outcome is a flexible, readable NC program ready for everyday production.

Need to connect Autodesk Fusion to a specific CNC machine in a similar way? Explore our custom postprocessors for Autodesk Fusion or send us the machine details and a proven NC sample.

Frequently asked questions about the CNC Plus solution

How can a FANUC ROBODRILL machine several identical parts with one program?

The postprocessor stores each unique toolpath once in a local subprogram. For every active position, the main program sets a local G52 shift, calls the reference path and then resets G52 to zero.

Can the operator skip an empty fixture position?

Yes. In the CNC Plus solution, every position has a switch in the Fanuc Macro B variable block. A value of 1 enables the position and 0 skips it without deleting toolpaths or reposting the NC program.

Is the shown G52 and M98 Q code universal for every FANUC machine?

No. The example belongs to the specific CNC Plus FANUC ROBODRILL configuration. Syntax, installed options and safe sequences must be verified for the exact controller, parameters and machine-builder logic.

What does the programmer prepare in Autodesk Fusion CAM?

The programmer prepares the Setup, tools, machining operations and part pattern. The modified postprocessor converts that CAM structure into subprograms, local shifts, checks and a readable position setup block.

Marek Skoták
Marek Skoták
CAD/CAM and CNC integration specialist

Marek Skoták has 18+ years of experience in CNC, CAD/CAM integration, Autodesk Fusion postprocessor development and manufacturing automation. He develops and implements machine-specific CAM workflows for woodworking and metalworking CNC machines.

Need a postprocessor for Autodesk Fusion and your CNC machine?

Send us the machine details, a proven NC sample and the workflow you need. We will prepare a postprocessor for your controller and production process.

Discuss your application →
← Back to all articles