25 min de lectura
Nivel Avanzado

¿Qué es un Post-Procesador?

Traduce las trayectorias del CAM al código G específico de tu control. Cada control tiene sintaxis diferente.

Estructura de un Post

// 1. PROPIEDADES
description = "Fanuc Generic";
vendor = "Fanuc";

// 2. FUNCIONES DE FORMATO
var xOutput = createVariable({prefix:"X"}, xyzFormat);

// 3. SECCIONES
function onOpen() { /* Encabezado */ }
function onSection() { /* Cada operación */ }
function onLinear() { /* Movimientos lineales */ }
function onClose() { /* Fin */ }

Personalización: Encabezado

function onOpen() {
  writeln("%");
  writeln("O" + programName);
  writeln("G90 G80 G40");
  writeln("G17 G21");  // Plano XY y mm
  writeln("(" + programComment + ")");
}

Posts por Sistema CAM

CAM Ubicación Lenguaje
Fusion 360 Preferences > Manufacturing JavaScript
Mastercam Mill/Posts folder PST/TXT
FreeCAD Path > Post Python