Pro codes · Grbl

$$ $# $G $C $N $J= — Grbl system commands (Grbl)

Grbl system commands. Grbl 1.1 has system commands that are not G-code: $$ lists all settings, $# shows the work offsets and probe result, $G the active modal state, $C turns check mode on…

By cnccode · Updated
On this page
  1. What it does
  2. Example
  3. Tips
  4. More: hidden and service
  5. Frequently asked questions
PropertyValue
Code$$ $# $G $C $N $J=
ControlGrbl
TopicHidden and service
Syntax$$ · $# · $G · $I · $C · $N0=<block> · $J=G91 X10 F500 · $X · $H

What it does

Grbl 1.1 has system commands that are not G-code: $$ lists all settings, $# shows the work offsets and probe result, $G the active modal state, $C turns check mode on (the program runs without motion and reports errors), $N0= and $N1= store startup blocks that run after every reset, $J= jogs without changing the modal state, $X unlocks after an alarm and $H homes. FluidNC and grblHAL support the same basics.

Example

Grbl
$C              (CHECK MODE ON)
(send the program, read the errors)
$C              (CHECK MODE OFF)
$N0=G21 G90 G54 (SAFE START STATE AFTER EVERY RESET)

Tips

  • Check mode is the fastest way to test a long program on a hobby machine.
  • All Grbl errors and alarms are explained in the alarm list.

Careful: Startup blocks run after every reset; do not put motion commands into them.

Options, numbers and parameters depend on the control model, the software version and the options the machine builder installed. Check the operator and parameter manual of your machine before you use a code for the first time, and run it in single block with low overrides.

More: hidden and service

Frequently asked questions

What is $$ $# $G $C $N $J= on Grbl?
Grbl system commands. Grbl 1.1 has system commands that are not G-code: $$ lists all settings, $# shows the work offsets and probe result, $G the active modal state, $C turns check mode on (the program runs without motion and reports errors), $N0= and $N1= store startup blocks…
Was this page helpful?