Skip to content

Gcode Export

alexandre MONNIN edited this page Feb 18, 2026 · 2 revisions

G-Code Export Technical Specifications

This page details the technical standards used by ALIG when generating G-Code files. These settings ensure compatibility with professional controllers like Mach4 as well as universal systems like GRBL.

Trajectory Logic

All trajectories are calculated using Absolute Coordinates. This ensures that every pixel of the image is tied to a fixed position relative to your origin, preventing cumulative errors or trajectory drift common in incremental modes.

Command Reference

The following table summarizes the initialization and operational commands embedded in every exported file:

Parameter Description G-Code Command
Distance Mode Absolute Positioning (Fixed precision) G90
Unit System Metric (Millimeters) G21
Plane Selection X / Y Working Plane G17
Feedrate Mode Units per Minute G94
Laser (Analog) Real-time synced modulation (Mach4/PoKeys) M67 E[0-3] Q[0-XXX]
Laser (Spindle) Universal Spindle command (GRBL/Smoothie) S[0-XXX]

File Output

  • Format: Standard text-based G-Code.

  • Extension: Files are exported with the .nc extension by default.

  • Compatibility: Optimized for Mach4 (Analog M67) and GRBL (PWM S-commands).

  • Z-Axis & Focus: Please note that A.L.I.G. does not command any Z-axis movement. * You must manually set your laser focus and your Z-zero position prior to starting the job.

    • Ensure your laser is at the optimal height for your material, as the generated G-code only manages X, Y, and Q/S (power) parameters.

Note: Ensure your machine's post-processor is configured to accept these standard commands before running the final file.

Clone this wiki locally