Postprocessor Validation: The Short Version
Postprocessor validation is the proof that a CNC post writes code your machine runs exactly as NX programmed it: reference programs covering every function, a G-code-driven simulation, a dry run in single block, a test part and a protocol both sides sign. inteliScience CAM engineers accept every post they build on the real machine, with a signed protocol.
| Stage | What it proves | What it cannot see |
|---|---|---|
| Reference programs and coverage check | Every function your shop uses is exercised | Whether the output is right |
| Desk review and regression compare | The NC text matches what was accepted last time | How control and machine react |
| G-code-driven simulation | Motion, travel limits, collisions inside the model | Anything the model leaves out |
| Program test on the control | The control accepts syntax, cycles and parameters | Real axis motion |
| Air cut in single block | Real kinematics, rotary signs, M functions | Cutting forces, programmed feeds under load |
| Test part and signed protocol | The whole chain, for one post version and one NX release | The next change |
The Problem: One Good Part Is Not a Validated Post
Many posts are accepted on one good part and then trusted for years. The first program a new post writes gets watched block by block. The two-hundredth runs on trust, after an NX upgrade, a control software update and three small edits that nobody tested together.
Siemens itself draws the line between what NX shows and what the machine runs. Its NX Manufacturing blog put it plainly: in-CAM toolpath simulation “can differ from the G-code that runs the machine” (Siemens NX Manufacturing blog, March 2020). A green Verify window says the toolpath is fine. About the post, it says nothing.
Meanwhile the post keeps gaining logic. In NX for Manufacturing 2606, released on 19 June 2026, tool-setting calls are generated through the postprocessor infrastructure, and Siemens adds that they “follow the same customization and validation pipeline” as all other NC output (Siemens, What’s new in NX for Manufacturing 2606). That sentence assumes your shop has a validation pipeline. A lot of shops have a habit instead: post, cut air, watch the first part.
The calendar adds pressure. NX ships twice a year, in June and December, and release 2612 went through Siemens’ Early Access Program between 31 August and 25 September 2026. Each release asks every post the same question again.
We’d advise against calling any post “validated” because one part came out right. Validation is a fixed set of reference programs, a fixed order of checks and a record of what was proven on which release, and that set is what you run again when anything changes. How posts, Post Hub and Post Configurator fit together is covered in our overview of how NX CAM posts work; this guide is only about proving them.
What Postprocessor Validation Has to Cover
Validation covers every function the post writes for your shop, not a demo part. Write the list first: program start and end, every tool change situation, each cycle, cutter compensation, arcs in every plane, tilted planes, tool center point output, feed modes, user-defined events and probing calls. Then build one small reference program per group, so a failure points to one function.
| Test case | What the post must write (Fanuc / SINUMERIK examples) | Proven at |
|---|---|---|
| Program start and safe block | Units, plane, absolute mode, compensation and cycle cancel, work offset | Desk review, program test |
| Tool change: first tool, same tool twice, last tool | T and M6, length offset G43 H, preselect of the next tool | Single block on the machine |
| Spindle and coolant | M3/M4 with S, the coolant variants the machine has, order relative to the first move | Air cut |
| Every cycle in use | G81 to G89 or CYCLE81 to CYCLE89, rigid tapping (M29 or CYCLE84), cycle cancel | Simulation, test part |
| Cutter compensation | G41/G42 with lead-in and lead-out, register, cancel | Test part, measured |
| Arcs and helices | G2/G3 in G17, G18 and G19, I/J/K or R as the control expects | Test part |
| Tilted working plane (3+2) | G68.2 with G53.1, or CYCLE800, cancelled before the tool change | Simulation, single block |
| Simultaneous 5-axis | G43.4 or TRAORI, feed mode (G93 inverse time where used), rotary limits | Simulation, air cut, test part |
| User-defined events and probing | Optional stop, operator message, tool setter and probe calls | Single block |
| Program end | Retract, spindle and coolant off, rotary axes home, M30 | Dry run |
Name each NX program group after its function, such as REF_04_TILTED_PLANES, and keep it small. Then add the edge cases that demo parts never reach: a tool change while a plane is still tilted, the same tool called twice in a row, an arc that crosses a quadrant, a program that starts with a tilt. Posts rarely fail on the obvious block. They fail on the transition between two functions.
A reference set has gaps you cannot see by reading operation names in NX. The script below reads the posted output instead and lists which functions actually appear, and which never do:
# coverage_check.py: which functions do the posted reference programs exercise?
# Python 3.9+, standard library only. Read-only.
# Usage: python coverage_check.py posted/MILL5_FANUC_TT/NX2606_v1.4
import re
import sys
from pathlib import Path
# One entry per function the shop uses. Patterns are for Fanuc-style ISO code;
# adapt them to your controller and your machine builder's codes.
REQUIRED = {
"tool change": r"\bT\d+\s*M0?6\b",
"tool length offset": r"\bG43\s*H\d+",
"length/TCP cancel": r"\bG49\b",
"work offset": r"\bG5[4-9]\b",
"cutter compensation": r"\bG4[12]\b",
"drilling cycle": r"\bG8[1-3]\b",
"rigid tapping": r"\bM29\b",
"boring cycle": r"\bG8[5-9]\b|\bG76\b",
"tilted work plane": r"\bG68\.2\b",
"tilt cancel": r"\bG69\b",
"tool center point": r"\bG43\.4\b",
"inverse time feed": r"\bG93\b",
"optional stop": r"\bM0?1\b",
"program end": r"\bM30\b",
}
folder = Path(sys.argv[1])
hits = {name: [] for name in REQUIRED}
for nc in sorted(p for p in folder.iterdir() if p.is_file()):
code = re.sub(r"\(.*?\)", "", nc.read_text(encoding="latin-1")) # drop comments
for name, pattern in REQUIRED.items():
if re.search(pattern, code):
hits[name].append(nc.name)
for name, files in hits.items():
print(f"{name:20} {len(files):2} {', '.join(files) if files else 'NOT COVERED'}")
sys.exit(1 if any(not files for files in hits.values()) else 0)
It checks that a function appears, not that it is right. A “NOT COVERED” line means the next NX upgrade could break that function without any reference program noticing.
Post the Reference Set the Same Way Every Time
Post the reference programs with a script, not by hand, so every run uses the same groups, the same post and a predictable output folder. One folder per NX release and post version turns the comparison with the last accepted output into a single command, and it leaves a record you can point to in the protocol.
This NXOpen journal uses PostprocessWithSetting from the public NXOpen.CAM.CAMSetup API. Open the part that holds the reference programs in Manufacturing and play it as a journal:
# post_reference_set.py: post every reference program group of the open CAM part
# with the post under test, into one folder per NX release and post version.
# NXOpen Python journal. Run it in the Manufacturing application (Play Journal).
import os
import NXOpen
import NXOpen.CAM
POST = "MILL5_FANUC_TT" # post name as registered in template_post.dat
NX_RELEASE = "2606"
POST_VERSION = "1.4"
GROUPS = ["REF_01_START_TOOLCHANGE", "REF_02_CYCLES", "REF_03_COMP_ARCS",
"REF_04_TILTED_PLANES", "REF_05_TCP_5AXIS", "REF_06_EVENTS_END"]
OUT = os.path.join(r"C:\post_validation", POST, f"NX{NX_RELEASE}_v{POST_VERSION}")
session = NXOpen.Session.GetSession()
setup = session.Parts.Work.CAMSetup
lw = session.ListingWindow
lw.Open()
os.makedirs(OUT, exist_ok=True)
for name in GROUPS:
try:
group = setup.CAMGroupCollection.FindObject(name)
except NXOpen.NXException:
lw.WriteLine(f"MISSING {name}")
continue
target = os.path.join(OUT, name + ".nc")
setup.PostprocessWithSetting(
[group], POST, target,
NXOpen.CAM.CAMSetup.OutputUnits.PostDefined,
NXOpen.CAM.CAMSetup.PostprocessSettingsOutputWarning.PostDefined,
NXOpen.CAM.CAMSetup.PostprocessSettingsReviewTool.Off)
lw.WriteLine(f"posted {name} -> {target}")
For the comparison, use a line-by-line diff that ignores block numbers and comments. The script in our Post Builder migration guide does exactly that, and it works just as well for upgrades and edits as for migrations: point it at the last accepted folder and the new one.
Keep the accepted output in version control, next to the post files. When the protocol says “accepted”, those NC files define what accepted means.
Simulation, and How to Compare It With the Machine
Only a simulation driven by the posted NC code tells you anything about the post. Toolpath verification shows what NX calculated; G-code-driven machine simulation shows what the post wrote, moving a model of your machine. And the simulation has to be compared with the real machine once, or its green result is a guess.
| Simulation level | What it reads | Proves the post? | Blind spot |
|---|---|---|---|
| Toolpath verification in NX | The internal toolpath | No | Everything the post adds or changes |
| G-code-driven machine simulation | The posted NC code, on a machine model | Yes, within the model | Fixtures and details not in the model, the control’s own interpretation |
| Virtual controller (SINUMERIK VNCK) | The NC code, executed by the controller’s own software kernel | Closest to the machine | SINUMERIK only, needs the real machine’s parameters |
Siemens describes G-code-driven simulation as a 3D model of the machine, with part, fixtures and tooling, that “moves in the way the machine tool will move”, and its NX CAM product page lists more than 1,000 machine kits in Post Hub (Siemens, retrieved 9 October 2026). A kit is a good start. Check its kinematics against your machine before you trust it: pivot distances, travel limits, rotary limits and the tool change position.
Compare the simulation against the real machine
Put optional stops at four to six checkpoints in the 5-axis reference program, using the optional stop event in NX: after each tilt, inside a tool center point section, before and after a tool change. On the machine, at each stop, note the machine coordinates of every axis from the control’s position display. In the simulation, step to the same block and read the axis positions there.
They should agree. A difference in a rotary axis points to a sign or to the choice between two rotary solutions. A difference in the linear axes after a tilt usually means the pivot lengths in the model, or the tool length the post assumed, do not match the machine.
Then compare time. G-code-based simulation estimates machining time, which Siemens lists among the things it validates; set that estimate beside the run time the control reports for the test part. A gap you cannot explain points to feed output, such as inverse time against feed per minute, or to dynamics the model does not know.
A simulation model that has never been compared with its machine is a drawing of a machine. Do this comparison once per machine, record it in the protocol, and the simulation becomes something you can rely on for every later program. Holder checks and collision layers on the NX side are a separate topic, covered in our walkthrough of tool axis and collision checking in NX CAM 5-axis.
Dry Run, Single Block and the Air Cut
On the machine, prove motion before you prove cutting. Start with the control’s own program test, then an air cut with the real offsets and no blank, rapid override down and single block through every tool change, tilt and tool center point switch. Finish with one continuous run in the air. Each mode hides something, which is why they come in sequence.
| Control mode | What it does | What it proves about the post | What it hides |
|---|---|---|---|
| Program test (SINUMERIK PRT, Fanuc machine lock) | Runs the program without moving the axes | The control accepts syntax, cycles and parameters | Real motion and rotary direction. Whether spindle, coolant and tool change still execute depends on the control’s settings |
| Dry run | Replaces programmed feeds with a dry-run feed (and, depending on a machine parameter, rapids too) | Path and sequence at a speed the operator can follow | Programmed F values and feed modes |
| Single block | Stops after every block until cycle start | Each tool change, tilt and TCP switch on its own | Continuous behavior, look-ahead and smoothing |
| Optional stop (M01) | Stops at programmed checkpoints when switched on | Positions for the comparison with the simulation | Nothing between checkpoints |
| Reduced rapid or rapid override | Slows rapid traverse | Time to stop a wrong approach | Real cycle time |
| Air cut without blank | Runs with real offsets and fixture, no stock | Real kinematics, rotary signs, clamping, retracts | Cutting forces, surface, dimensions |
Our recommendation for the order: program test, then the air cut in single block with rapid override low, then the same air cut continuously at programmed feeds, then the test part. The operator stays at the control with a hand on feed hold; the person who built the post has the posted code, and the simulation if there is one, open at the same block.
One trap on 5-axis machines: an air cut “50 mm above the part” made by raising the work offset in Z. That shift follows the part coordinate system, so on many setups it stops pointing up once a table tilts, and the “safe” path moves sideways toward the fixture. Cut air without the blank instead, with the real offsets.
Reference programs, a compared simulation and a clean air cut are a validation plan. What is still missing for production: a test part on the real machine, an acceptance protocol both sides sign, and a regression run before every NX release reaches the shop floor. Our CAM engineers deliver the test part and the signed protocol with every post, and the regression run as maintenance for NX upgrades: NX postprocessor development, one machine and one post from €5,000.
The Test Part and the Acceptance Protocol
A post test part exercises the post; it does not measure the machine’s accuracy. It carries one feature per risky function: a compensated contour, holes from every cycle, a tapped hole, arcs in each plane, faces at the tilt angles you use and, on a 5-axis machine, a simultaneous surface. What you measure is what the post controls.
Machine acceptance test pieces, such as those defined in ISO 10791-7 for machining centres, answer a different question: how accurate is the machine. Keep the two apart, because a test part that comes out wrong needs a diagnosis before anyone changes post code:
| Finding on the test part | Points to |
|---|---|
| Contour too large or too small by about a tool diameter per side | Compensation side or register in the post |
| Hole depth wrong by a constant amount | Reference plane or depth parameter in the cycle output |
| Tapped thread damaged or pitch wrong | Tapping cycle output: rigid mode, feed per revolution against feed per minute |
| Tilted face at the right angle but on the wrong side | Rotary axis sign or tilting solution |
| Step where two 5-axis passes meet | Tool center point mode or the tool length used in the output |
| Every dimension off by the same small amount | Machine or setup, not the post: check those first |
At IMTS 2026 in Chicago (14 to 19 September), Siemens’ Mark Hindsbo summed up why this step stays: “Manufacturing truth has always ultimately been at the machine” (Siemens NX Manufacturing blog, 22 September 2026).
The protocol turns all of this into something you can check a year later. It records the machine and its internal ID, the control type, software version and enabled options, the post name and version, the NX release, the reference programs with a result per test case, the simulation comparison, the test part measurements and the result: accepted, accepted with listed remarks, or not accepted. Every remark gets an owner and a date. It is signed by your production or CAM lead and by whoever built the post.
Add a fingerprint of the post files. Then, when a program behaves differently next year, you can prove in seconds whether the post on the shop floor is still the one that was accepted:
# post_fingerprint.py: SHA-256 of every file in a post folder, for the protocol.
# Python 3, standard library only. Usage: python post_fingerprint.py C:\posts\MILL5_FANUC_TT
import hashlib
import sys
from pathlib import Path
root = Path(sys.argv[1])
for f in sorted(p for p in root.rglob("*") if p.is_file()):
digest = hashlib.sha256(f.read_bytes()).hexdigest()
print(f"{digest[:16]} {f.relative_to(root)}")
After an NX Upgrade: What to Re-Check
Re-validate in proportion to the change. After an NX upgrade with unchanged post files, post the full reference set on the new release and compare it with the last accepted output; machine time is needed only for test cases whose output changed. Post edits, control updates and machine changes each need a different depth.
| Change | On the desk | On the machine |
|---|---|---|
| NX upgrade, post files unchanged | Full reference set on the new release, compared; machine kit loaded and one program simulated | Only test cases whose output changed |
| Post edit (new cycle, header, event) | Full reference set, compared: an edit can change more than its target | Changed test cases in single block, test-part feature if it cuts |
| Control software update or new option | The NC text does not change | Program test and air cut of the reference set |
| Retrofit, new head or table | Simulation model updated, full set compared | Full validation with test part |
| Same machine type, new control generation | Treat it as a new post | Full validation with test part |
For the NX upgrade itself, six checks belong on the list:
- Release notes. Read the Manufacturing notes for anything that touches NC output, such as the tool-setting and probing calls that 2606 writes through the post layers.
- Registration and environment. The entries in
template_post.datand the post directory settings must carry over to the new installation. A post missing from the list should be found on the desk, not at the machine. - Reference set and comparison. No differences after normalization: update the protocol with the new release and date, no machine time needed. Any difference: explain it, then retest the affected test cases on the machine.
- Machine kit. It loads in the new release, and one reference program runs through the simulation.
- User-defined events. Their dialogs still appear in NX and write the same output.
- Header. The post writes the new NX release into the program header, so the shop floor can tell which release posted a program.
One 2606 change deserves its own line. Siemens lets TCL snippets in CAM Notes execute as Post Configurator commands during NC output generation. That is post logic living outside the post files: the fingerprint stays the same while the output changes. Decide who may write such snippets, and if your shop uses them, put one into the reference set.
Run the regression during your evaluation of a new release, before rollout, not after the first odd program. Shops that upgrade once a year instead of twice compare against the last accepted output, not against the release they skipped.
Who Owns the Reference Programs
The shop owns the reference programs and the accepted output, whoever builds the post. A provider can write them, run them and sign the protocol, but they stay with you, next to the post, so the next upgrade, the next edit and the next provider start from proof instead of memory.
A team that knows NX CAM and its controls can run this routine itself once the reference set exists. Outside CAM engineers save the most time when the set is built for the first time, on 5-axis and mill-turn machines, and before an upgrade nobody has time for.
inteliScience is a Siemens NX, NXOpen and Teamcenter specialist delivering nearshore from Cluj-Napoca, Romania, one hour ahead of CET. Every post our CAM engineers build is proven with reference programs, a dry run, a test part on your machine and a signed protocol, with machine simulation as an add-on, and it is accepted with its reference programs and output. Posts are written and tested by engineers, not by AI: NC code that moves a machine needs a person who answers for it.
Frequently Asked Questions
What is postprocessor validation in CNC machining?
Postprocessor validation is the documented proof that a CNC postprocessor writes NC code that one specific machine and controller execute exactly as the CAM system programmed it. It combines reference programs that cover every function in use, a review of the posted code, G-code-driven simulation, a dry run and a test part, and it ends in an acceptance record tied to one post version, one CAM release and one machine. Because posts, CAM releases and controls change, the reference programs are run again after every change.
Can G-code-driven machine simulation replace a test cut when validating a postprocessor?
No. A G-code-driven simulation such as the one in Siemens NX CAM reads the posted NC code and moves a machine model with it, so it catches wrong axis positions, travel limit violations and collisions that the model contains. It cannot see what the model leaves out: fixtures that were never modeled, the control’s own interpretation of a function, or the real machine’s dynamics. Use the simulation to make the first run safe, then confirm with an air cut and a test part.
Dry run vs single block vs machine lock: which CNC test modes prove new G-code from a new postprocessor?
They prove different things, so a new postprocessor needs more than one of them. Machine lock, or the control’s program test, checks that the control accepts the code without moving the axes; dry run moves the axes at a substitute feed, which shows path and sequence but not the programmed feeds; single block stops after every block and is the safe way to watch tool changes, tilts and tool center point switches for the first time. A continuous air cut and a test part at programmed feeds come last.
How much does it cost to validate a CNC postprocessor?
The cost is driven mostly by machine time, not desk time: reference programs, code review and simulation are cheap compared with the hours a machine and an operator spend on dry runs and a test part. A 5-axis or mill-turn machine needs more test cases and more single-block time than a 3-axis mill, and few providers publish prices for validation on its own. At inteliScience, validation is part of every post we build; the entry offer of €5,000 for one 3-axis milling machine with one controller includes reference programs, a test part on your machine and a protocol signed by both sides.
What can change in the NC output after a Siemens NX upgrade if the postprocessor files are unchanged?
Several things can, even if nobody touched the post: a new NX release can bring updated Siemens libraries that a Post Configurator post builds on, changed defaults, and new functions that write through the post, such as the tool-setting and probing calls in NX 2606. Since 2606, TCL snippets in CAM Notes can also run as Post Configurator commands during output, which changes NC code without changing the post files. The reliable check is to post the same reference programs on the new release and compare them line by line with the last accepted output before rollout.
Next Step
Pick the post you trust least, or the one due for your next NX upgrade. Send us the machine, the controller and two or three NC programs your operators trust. A CAM engineer tells you which test cases your reference set needs and what proving the post on your machine involves.
Related Topics
- NX postprocessor development, proven on your machine
- When to switch from Post Builder to Post Configurator
- Post Configurator training for your own CAM team
References
- Siemens NX Manufacturing blog, “How NX CAM simulation capabilities validate machines and processes”, 2 March 2020: https://blogs.sw.siemens.com/nx-manufacturing/how-nx-cam-simulation-capabilities-validate-machines-and-processes/ (retrieved 9 October 2026)
- Siemens NX Manufacturing blog, “What’s new in NX for Manufacturing 2606 (June 2026)”, 19 June 2026: https://blogs.sw.siemens.com/nx-manufacturing/whats-new-in-nx-for-manufacturing-2606-june-2026/ (retrieved 9 October 2026)
- Siemens, Early Access Program for release 2612 (31 August to 25 September 2026): https://resources.sw.siemens.com/en-US/presentation-welcome-to-the-nx-early-access-program/ (retrieved 9 October 2026)
- Siemens, “Postprocessing and machining simulation”, NX CAM product page: https://www.siemens.com/en-us/products/nx-manufacturing/cam-software/postprocessing-simulation/ (retrieved 9 October 2026)
- Siemens NX Manufacturing blog, “Siemens at IMTS 2026: Industrial AI, digitalization and the future of part manufacturing”, 22 September 2026: https://blogs.sw.siemens.com/nx-manufacturing/siemens-at-imts-2026-industrial-ai-digitalization-and-the-future-of-part-manufacturing/ (retrieved 9 October 2026)
- Siemens NXOpen .NET Reference Guide, NXOpen.CAM.CAMSetup (Postprocess, PostprocessWithSetting): https://docs.sw.siemens.com/documentation/external/PL20191127135844554/en-US/nx_api_sc/nx/1926/nx_api_sc/en_US/nxopen_net/a02792.html (retrieved 9 October 2026)

