Skip to content

Fichiers G code

Manu edited this page Nov 4, 2026 · 2 revisions

Noms des fichiers

Option Fichiers écrits
Un fichier par outil Projet - 1 - T302 - VCarve 1.nc, Projet - 2 - T102 - Drilling + Pocket + Cutout.nc… dans l'ordre d'usinage.
Fichier unique (M0) Projet.nc
Aperçu SVG Projet - apercu.svg en plus

Les parcours qui utilisent le même outil sont regroupés dans un même fichier, pour ne changer d'outil qu'une fois.

Format

  • Grbl 1.1 standard, compatible grblHAL : Candle, Universal G-Code Sender, LaserGRBL, Carbide Motion…
  • Millimètres (G21), coordonnées absolues (G90), avance en mm/min (G94), plan XY (G17).
  • ASCII strict : Grbl prend certains octets accentués pour des commandes temps réel, même dans un commentaire. Les accents des commentaires sont donc retirés.
  • Les arcs sont écrits en petits segments droits (pas de G2 / G3), comme le fait Carbide Create.

Déroulement d'un fichier

  1. En-tête en commentaires : projet, outil, dimensions du brut, rappel du zéro.
  2. Montée à la hauteur de sécurité (la hauteur de retrait du projet, entre 2 et 50 mm).
  3. Mise en rotation de la broche (M3 S…), puis 2 secondes d'attente au premier démarrage.
  4. Usinage : approche rapide jusqu'à 1 mm au-dessus du brut, plongée à la vitesse de plongée, puis passes à la vitesse d'avance.
  5. Fin : montée à la hauteur de sécurité, arrêt de la broche (M5), retour au-dessus de X0 Y0, fin de programme (M2).

Les avertissements du projet sont recopiés dans le G-code, en commentaires ATTENTION, au début de l'opération concernée.

Aperçu SVG

Aperçu SVG des parcours recalculés

Le brut en beige, une couleur par opération, le dessin en gris et les déplacements rapides en pointillés. Il s'ouvre dans n'importe quel navigateur.

🇬🇧 English - G-code files

File names

Option Files written
One file per tool Project - 1 - T302 - VCarve 1.nc, Project - 2 - T102 - Drilling + Pocket + Cutout.nc… in machining order.
Single file (M0) Project.nc
SVG preview Project - apercu.svg in addition

Toolpaths using the same tool are grouped in the same file, so each tool is changed only once.

Format

  • Standard Grbl 1.1, grblHAL-compatible: Candle, Universal G-Code Sender, LaserGRBL, Carbide Motion…
  • Millimetres (G21), absolute coordinates (G90), feed in mm/min (G94), XY plane (G17).
  • Strict ASCII: Grbl treats some accented bytes as real-time commands, even inside a comment. Accents in comments are therefore removed.
  • Arcs are written as small straight segments (no G2 / G3), as Carbide Create does.

What a file does

  1. Header comments: project, tool, stock size, zero reminder.
  2. Rise to safe height (the project's retract height, between 2 and 50 mm).
  3. Spindle start (M3 S…), then a 2-second wait on first start.
  4. Machining: rapid approach down to 1 mm above the stock, plunge at plunge rate, then passes at feed rate.
  5. End: rise to safe height, spindle stop (M5), return above X0 Y0, end of program (M2).

Project warnings are copied into the G-code, as ATTENTION comments, at the start of the relevant operation.

SVG preview

SVG preview of the recomputed toolpaths

Stock in beige, one color per operation, the design in grey and rapid moves as dashed lines. It opens in any browser.

Clone this wiki locally