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.
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.
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.
var toolFormat = createFormat({decimals:0, width:2, zeropad:true});var toolFormat = createFormat({decimals:0, width:4, zeropad:true});if (isFirstSection()) {
writeBlock(gFormat.format(12.1));
}writeBlock(gFormat.format(12.1));
onSectionEnd = function() {
writeBlock(mFormat.format(9));
writeBlock(gFormat.format(28), "U0", "W0");
};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");
};| Source | Page | Topic |
|---|---|---|
| MAZATROL SmoothX EIA/ISO Programming Manual | 47 | Tool Command Format (TTOO) |
| MAZATROL SmoothX G-Code Reference | 203 | G12.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 |