Validate the Robot Postprocessor Before Trusting an Offline Program
Restaurant Serving Robot Pilot: How to Measure Aisle Bottlenecks and Staff Handoff
Dec 04, 2026
Exoskeleton Trial Productivity Metrics: Measure Output Without Hiding Quality
Nov 19, 2026
AMR Handoffs to Weighing Stations: Stable Placement, Tare, and Load–Record Matching
Nov 19, 2026
Empty-Pallet Supply for Robotic Palletizing: Dispensers, Stack Quality, Detection, and Recovery
Nov 18, 2026
The simulation was clean. The reach study was signed off, the cycle time looked right, and the collision check passed on every pose the programmer could think of. Then the program was generated and run on the actual controller, and the first move went somewhere nobody expected, in a configuration nobody had simulated, and stopped against an axis limit.
Related reading: drag teaching and offline programming.

The offline program was not wrong about the path. It was wrong about the instructions it used to describe the path, and the gap between those two things is exactly the size of the postprocessor.
A postprocessor is the step in offline programming that turns a simulated path into a program for a specific robot controller. RoboDK's own documentation defines it in almost those words: robot programming must follow manufacturer-specific rules, those rules are implemented in the postprocessor, and each robot is bound to a postprocessor that determines its programming style. That definition is worth taking literally. The postprocessor does not verify the path. It translates it, according to rules someone else wrote, into a language someone else defined.
Most buyers treat that translation as plumbing and spend their attention on the simulation. This article argues the opposite: the postprocessor is where the confidence either gets earned or gets faked, and it can be validated before anything moves.
Name the Exact Export Target
The first failure mode is not a bug in the code. It is a mismatch between what the buyer asked for and what was produced, and it happens because “generate the robot program” sounds like one thing and is actually a family of things.
RoboDK ships a large library of postprocessors, covering more than fifty robot manufacturers and controllers by its own count, and offering over a hundred postprocessors by default. Each one is a Python file. That combination, wide coverage plus open source files, is genuinely useful and genuinely dangerous: it means a postprocessor almost certainly exists for your robot, and it means the one that exists may not be the one you need.
The question to put to a supplier is not whether a KUKA postprocessor exists. It is which one, named precisely. RoboDK's own list makes the granularity obvious. In the current default list, the KUKA entries include KRC2, KRC2_CamRob, KRC2_DAT, KRC4, KRC4_Config, KRC4_DAT, and KUKA IIWA. For ABB they include RAPID IRC5, IRC5 Robtargets, and S4C. For FANUC, R30iA, R30iA Arc, and RJ3. Those are not cosmetic variants. They produce different program structures. The list itself changes between releases, so treat any enumeration in an article as an illustration of the granularity and check the official list for the version you are actually installing.
Two of those distinctions are worth spelling out because they illustrate the general problem.
KRC4 versus KRC4_DAT is a question of where target coordinates live. RoboDK's documentation lists them as two separate entries, and describes the DAT variant as the one for KRC4 controllers that also includes the DAT data file. The two are not interchangeable, and the difference is visible in the files you receive rather than in the motion the robot performs. If your plant standard expects one form and you receive the other, the program may be logically correct and still rejected at the controller, or accepted and unmaintainable by the people who have to edit it.
Motoman and Yaskawa is a question of hidden prerequisites. RoboDK's documentation notes that these postprocessors need to know each axis's pulses-per-degree ratio, and that this can be extracted by uploading an ALL.PRM file. It also notes that the Cartesian variant may require a Relative Job option if the program is to be edited by hand on the controller. Neither prerequisite is a property of your robot. Both are properties of your controller's configuration, and both can be absent.
So the first section of any acceptance is a written specification of the export target, and it needs to be specific enough that two engineers reading it would produce the same file. Brand, controller family, and the exact postprocessor name. The language the controller expects. Where target data goes. Which optional controller features the program will depend on, and confirmation that those features are licensed on the actual machine.
There is a further wrinkle that catches people who switch postprocessors late. RoboDK's documentation states that the postprocessor is bound to the robot, so changing the postprocessor for one program updates all programs for that robot. That is a sensible design decision with a sharp edge: a single change intended for one new part silently re-targets the entire existing program library. If your plant has a validated program for a part that has been running for three years, that program is now generated differently, and nobody decided that.
Record the postprocessor name and version against every program in the library, the way you would record a firmware version. Then a change is visible.
Translate Intent into Instructions to Check
Once the target is named, the question becomes what to check, and the answer is not “everything.” A generated program can run to thousands of lines and no one reads thousands of lines. The productive approach is to pick the instructions that carry intent, and check those against the controller's own definitions.
The instructions that carry intent are the ones that encode a decision the programmer made. Motion type is the obvious one. Reference frame is another. Speed and acceleration handling is a third. Each of these appears in the generated program as a specific instruction with specific arguments, and each of them can be translated faithfully or translated in a way that preserves the syntax and loses the meaning.
Take reference frames as the example, because RoboDK's documentation makes the variety visible. For KUKA it lists several ways of setting a base frame: a MACHINE_DEF array, EX_AX_DATA, BAS(#ex_BASE), BAS(#BASE), and reading BASE_DATA directly. It also publishes an example of overriding the setFrame method by inheriting from the KRC2 postprocessor. Five mechanisms, one concept. A postprocessor that picks the mechanism you did not expect has not made an error, and it has produced a program your maintenance team may not recognise.
Motion type is the more consequential example. RoboDK's documentation describes, for ABB IRC5, that the absolute joint motion instruction is MoveAbsJ and that it requires a jointtarget variable, and that the change is made in the MoveJ function of the postprocessor, with the angles_2_str and pose_2_str functions determining how joint angles and poses are converted to text.
That chain of detail matters because it shows what “checking” actually means. You are not checking that the program contains a joint move. You are checking that the joint move was emitted with joint coordinates, in the argument form the controller expects, from a converter that handled the units correctly.
Which brings in the recommendation that should anchor the whole exercise. RoboDK's documentation states it plainly: it is recommended to always start the first point in a sequence of linear movements as a joint movement, specifying joint coordinates, and the stated reason is that this avoids starting a program with the wrong robot configuration and reaching a singularity or axis limits.
Read that as a specification rather than a tip. It says that a linear sequence beginning from an arbitrary starting configuration can put the robot into a configuration that is unreachable, singular, or outside its axis limits, and that the fix is structural: establish the configuration with a joint move before the linear sequence starts. A generated program that begins with a linear move from a pose is therefore not merely inelegant. It is a program that has deferred a configuration decision to run time.
This is the class of defect the postprocessor can introduce without introducing a single error message. The syntax is valid. The controller accepts it. The behaviour at run time is undefined in the way that matters.
So the check list for this section is short and specific. For each program, identify the motion instructions, the frame-setting instructions, and the speed and acceleration instructions. For each, compare the generated form against what the target controller's own programming manual specifies. Not against another robot's manual, and not against the offline software's help text.
That last point deserves emphasis because it is where reviews go wrong. The offline software's documentation tells you what the postprocessor does. The controller's manual tells you what the controller accepts and how it behaves. Those are different documents with different authority, and only one of them describes your machine.
Test Motion and Process Timing Separately
Motion and timing fail differently, and a test that mixes them will tell you which one broke only by accident.
Motion problems show up as wrong paths, wrong configurations, or unreachable poses. Timing problems show up as a path that is correct and a process that is not: the weld that starts late, the dispense that finishes early, the tool that waits where it should move. The first is a geometry defect. The second is a schedule defect. They need different evidence.
For motion, the useful test is a targeted one rather than a full-program run. Take the poses where the program makes a decision, not the poses where it merely travels. The first point of each linear sequence, per the recommendation above. The transitions between motion types. The approach and departure from each process point. The poses near the edge of the envelope. Run those, and compare the actual configuration to the simulated one.
The comparison to make is joint-space, not Cartesian. A Cartesian comparison tells you the tool got to the right place, which is necessary and not sufficient. The joint comparison tells you it got there the way the simulation said it would, which is the thing the postprocessor is responsible for. A robot that reaches the right pose in a different configuration has a program that will behave differently the next time it arrives at that pose from a different direction.
For timing, the useful test is a process trace rather than a visual check. Whatever the process is, it has a start and an end relative to motion, and those relationships are what the program encodes. If the cell has a controller trace, use it. If it does not, instrument the process: a signal on the weld start, a signal on the dispense valve, a signal on the tool, recorded against the motion.
There is a specific trap in timing that comes from speed handling. RoboDK's documentation gives an example of imposing a speed ceiling by modifying the setSpeed function so that the requested speed is clamped to a maximum, and it notes that even if the robot is programmed faster, the postprocessor will limit the speed. That is a useful capability and a hazard for validation: a program that looks correct in simulation may have been silently slowed, and the cycle time you approved in the simulation is not the cycle time the postprocessor produced.
So the timing test has to include a check on what speed the program actually requests versus what the simulation assumed. Clamping is legitimate. Clamping without a record is a change to the production plan disguised as a formatting decision.
One further separation is worth making explicit, because it is the distinction buyers most often collapse. Simulation, offline postprocessing, online driver communication, and the real controller are four different things, and evidence from one is not evidence about another. A collision-free simulation is evidence about the simulation's model. A postprocessed program is evidence about the translation. An online driver connection is evidence that two systems can talk. Only the real controller running the real program on the real cell is evidence about the cell.
Most validation failures come from treating the first as the fourth.
Check the Program's Operational Edges
A generated program that works on the happy path and fails at the edges is a program that will fail in production, because production lives at the edges.
The edges worth testing are the ones the language imposes and the ones the process imposes, and they are surprisingly concrete.
The language edges are the easiest to test and the most often skipped. RoboDK's documentation gives one directly for KUKA KRC4: a MAX_LINES_X_PROG setting, described as a maximum of 3000 lines per program, with programs exceeding it split into multiple programs called in sequence. There is also an INCLUDE_SUB_PROGRAMS flag controlling whether main and subprograms share a file.
Both of those have operational consequences that only appear at scale. A long path that generates a single program with no split will fail at the controller, and it will do so at a line count you did not choose. A split program works and changes how the cell behaves at the boundary: the ends of the subprograms become places where the motion can hesitate, where the process may need to stop and restart, and where a recovery from an interruption lands. Neither is wrong. Both need to be known before the program is trusted.
The test is to write a program deliberately long enough to trip the limit, generate it, and see what the postprocessor does. Then run it and watch what happens at the seams. It is a short test, and it prevents a class of failure nobody diagnoses correctly the first time.
The process edges are the harder ones and they come from the job. What happens at the start of the shift, when the program begins from a pose the robot has not been in. What happens after an interruption, when the program is restarted from a point other than the beginning. What happens after a fault that leaves the robot in an unexpected configuration. What happens when the operator steps the program through in manual mode.
Each of those is a place where the program's assumption about configuration is tested, and each of them is the same assumption the joint-move recommendation was protecting. A program that establishes configuration at the start of each linear sequence will survive most of these. A program that establishes it once at the top and relies on it for the rest of the run will fail the first time it is interrupted mid-sequence.
So the operational edge test is a set of deliberate interruptions, run on the real cell with the real controller, checking that the program recovers the configuration it needs rather than the configuration it happened to inherit.
There is a documentation point to add here, and it is small and saves arguments. KUKA's own material on KUKA.WorkVisual notes that potential conflicts can be identified and eliminated offline, which shortens commissioning time and reduces risk. That is a fair claim about a configuration environment and it should not be read as a claim that offline checking replaces running the program. The two activities find different things. An offline configuration check finds inconsistent settings. It does not find out what happens when the second linear sequence in a program starts from a configuration the first one left behind.
Progress from Review to Controlled Equipment Trials
The sequence matters, and it is the same sequence any competent commissioning uses: document review, then bench or dry-run, then controlled equipment trials, then production.
Related reading: simulation deliverables and hardware gaps.
Document review is what the previous four sections describe, and it is done at a desk, against the controller manual, with the generated program open. It is cheap, it finds the majority of structural defects, and it is skipped because it feels like reading rather than testing.
The dry run is the first move, and it should be deliberately unambitious. Reduced speed, no process, hand on the enabling device. The objective is not to validate the program. It is to confirm that the program does what the review said it would, in joint space, at the poses the review identified. If the dry run surprises you, the review was incomplete and should be repeated rather than patched.
Controlled equipment trials are where the process joins in, and where the pairing principle applies: change one thing at a time, and keep the previous configuration as the comparator. If a trial produces a worse result, you need the previous result to interpret it.
Two practical constraints belong in the plan. First, the trials should be run on the actual cell with the actual controller, because the entire article is about the gap between the model and the machine. Second, they should be run by someone who can read the generated program, not only by someone who can press start. The person who can do both is the person who will diagnose the first production failure.
The gate between controlled trials and production should be a specific set of evidence rather than a general sign-off. Which poses were compared, in which configuration. Which process timings were traced, against which target. Which deliberate interruptions were run, with what outcome. Which programs in the existing library were regenerated as a side effect of the postprocessor binding.
That last one is easy to forget and belongs on the gate. If the postprocessor changed, every program bound to that robot changed, and the validated set for existing parts is no longer validated in the sense it was.
Deliver a Reproducible Regression Set
The final deliverable is not a validated program. It is a validated program plus the means to re-validate it, because the program will change and the change will arrive without a label.
The changes come from everywhere. A controller firmware update. A postprocessor file edited to fix one thing and quietly changing another. A new part with a different path. A different engineer generating the program from the same project file. Every one of those is a reason the old validation no longer applies, and none of them announces itself.
A regression set is the answer: a small, fixed collection of programs and checks that can be re-run in a known time to answer one question, which is whether the translation still does what it did.
Build it from the cases that found something. The program that tripped the line limit. The sequence that needed a joint move to establish configuration. The pose that landed in an unexpected configuration. The process timing that drifted. Keep those programs, keep the outputs they should produce, and keep the record of what the output looked like when it was correct.
The set should be small enough to run whenever a postprocessor is touched, and complete enough that a pass means something. In our experience ten to fifteen cases is a reasonable starting point, drawn from the defects that actually occurred rather than from a template, and it should be revised as new defects are found. There is no published figure here to reach for, and treating a number as a standard would be a mistake.
Alongside it, keep three artefacts and keep them versioned. The postprocessor file itself, identified by name and version, so that a change is a diff rather than a rumour. The export target specification from the first section, so that a future engineer knows which KUKA variant was chosen and why. And the controller manual for the actual controller, in the version that matches the installed firmware, because that is the document that has authority over whether the generated instructions are correct.
None of those three is expensive to maintain and all three are expensive to reconstruct. This is the cheapest part of the whole exercise and it is the part that determines whether the exercise holds five years from now.
There is one boundary to state plainly at the end. Nothing in this article establishes a general rule about postprocessors, and nothing here should be transferred between brands or versions. The specifics quoted above come from RoboDK's documentation for particular controllers, and the instruction names for ABB and KUKA are as described there. They are not substitutes for the manufacturers' own programming manuals, which were not obtained for this article and which remain the authority.
What does transfer is the method. Name the export target exactly. Pick the instructions that carry intent and check them against the controller's own definitions. Test motion and timing separately, and test motion in joint space. Test the edges the language and the process impose. Move through review, dry run, and controlled trials in that order, with a defined gate. Then leave behind a small set of cases that can prove the translation still works.
That is what makes an offline program worth trusting. Not the quality of the simulation, which was never in doubt. The evidence that the translation was checked, by someone who knew what they were checking it against.
Before selecting an offline-programming package, list the controller version, postprocessor, and representative tasks. AIsirRobot can help organize the supplier evidence and ownership questions for that configuration.
Contact Us
In This Article
Restaurant Serving Robot Pilot: How to Measure Aisle Bottlenecks and Staff Handoff
Dec 04, 2026
Exoskeleton Trial Productivity Metrics: Measure Output Without Hiding Quality
Nov 19, 2026
AMR Handoffs to Weighing Stations: Stable Placement, Tare, and Load–Record Matching
Nov 19, 2026
Empty-Pallet Supply for Robotic Palletizing: Dispensers, Stack Quality, Detection, and Recovery
Nov 18, 2026