๐Ÿ“‹ Sample fix report โ€” this is what you receive for every job

Get my own fix โ†’
cncpostfix.ai
Fix Report
Request ID
mazak-integrex-sample
Date
26 March 2026
Machine
Mazak Integrex i-400
Control / CAM
MAZATROL SmoothX / Fusion 360
โœ… High Confidence

โš ๏ธ Warnings โ€” Read Before Running

What Changed & Why

Root Cause

Three issues were identified in the Fusion 360 post-processor for the Mazak Integrex i-400 with MAZATROL SmoothX control.

The immediate symptom was an "Undefined Tool" alarm on every tool change โ€” caused by the post outputting 2-digit T codes (T01) where the Integrex controller requires 4-digit TTOO format (T0101). This is a known limitation of the default Fusion 360 Mazak post and is widely reported in the Autodesk Community forums.

What Was Fixed

1. T code format โ€” Changed toolFormat width from 2 to 4. The Integrex tool command format is TTOO โ€” first two digits are the tool slot number, last two digits are the offset register. This resolves the "Undefined Tool" alarm immediately.

2. G12.1 polar interpolation โ€” Removed the isFirstSection() guard so G12.1 is output at the start of every C-axis milling section, not just the first one. Operations after the first milling op were running without polar interpolation active.

3. G13.1 cancel โ€” Added G13.1 to the section end block for milling operations. Without it, polar interpolation stays active across tool changes into turning operations. See MAZATROL SmoothX G-Code Reference ยง6.4.

How to Verify

Post a program with at least one tool change โ€” confirm no "Undefined Tool" alarm. Post a program with C-axis milling followed by a turning operation โ€” confirm G12.1 / G13.1 appear correctly. Run a dry cycle (single block) to verify transitions execute cleanly.

Changes (3)

Change 1 โ€” Line 43 Issue #1
Before
var toolFormat = createFormat({decimals:0, width:2, zeropad:true});
After
var toolFormat = createFormat({decimals:0, width:4, zeropad:true});
Fusion 360's default Mazak post outputs 2-digit tool numbers (T01, T02). The Mazak Integrex requires 4-digit T codes in the format TTOO where TT = tool number and OO = offset number (e.g. T0101, T0202). Without this fix the controller throws an "Undefined Tool" alarm on every tool call. Confirmed in MAZATROL SmoothX EIA/ISO Programming Manual ยง3.2 โ€” Tool Command Format. This is a widely reported issue in the Autodesk Community forums for Mazak Integrex users on Fusion 360.
Change 2 โ€” Line 287 Issue #2
Before
if (isFirstSection()) {
  writeBlock(gFormat.format(12.1));
}
After
writeBlock(gFormat.format(12.1));
The post was only outputting G12.1 (polar coordinate interpolation ON) at the start of the first section. On the Integrex, G12.1 must be output at the beginning of every C-axis milling operation because G13.1 (cancel) is issued at section end. Subsequent milling operations were running without polar interpolation active, causing incorrect XY motion on the C-axis.
Change 3 โ€” Line 301 Issue #3
Before
onSectionEnd = function() {
  writeBlock(mFormat.format(9));
  writeBlock(gFormat.format(28), "U0", "W0");
};
After
onSectionEnd = function() {
  if (currentSection.isMultiAxis()
      || isTurningOperation) {
    // no G13.1 needed
  } else {
    writeBlock(gFormat.format(13.1));
  }
  writeBlock(mFormat.format(9));
  writeBlock(gFormat.format(28), "U0", "W0");
};
G13.1 (polar coordinate interpolation cancel) was missing from the section end block for milling operations. Leaving G12.1 active across tool changes causes the controller to apply polar interpolation to subsequent turning operations, resulting in incorrect axis movements and potential collision. G13.1 must be output at the end of every C-axis milling section. See MAZATROL SmoothX G-Code Reference ยง6.4.

Documentation Referenced

SourcePageTopic
MAZATROL SmoothX EIA/ISO Programming Manual47Tool Command Format (TTOO)
MAZATROL SmoothX G-Code Reference203G12.1 / G13.1 Polar Interpolation
Fusion 360 Post Processor Reference โ€” createFormat()โ€”toolFormat width parameter
Autodesk Community Forum โ€” Mazak Integrex post reviseโ€”T code 4-digit format