使用說明
符號約定:「=」代表後面需接參數;「<…>」代表可變內容。
某些語法依韌體/外掛可能略有差異,已在「備註」欄標示需確認之處。
🛠 Motion & Machine Control(運動與機器控制)
| Command | English (Original) | 中文解釋 | 備註 / Example |
|---|
| $G | output parser state (active G-codes). | 輸出解析器狀態(當前 G-code) | |
| $J=<…> | jog machine with specified G-code. | 使用指定 G-code 執行 Jog 移動 | Example: $J=G91 X1 F200 |
| $X | unlock machine. | 解鎖機器 | |
| $H | home configured axes. | 回零已配置軸 | |
| $HSS | report homing switch status. | 報告回零開關狀態 | |
| $C | enable check mode (dry run). | 啟用檢查模式(模擬執行) | |
| $SLP | enter sleep mode. | 進入睡眠模式 | |
⚙️ Settings & Parameters(設定與參數)
| Command | English (Original) | 中文解釋 | 備註 / Example |
|---|
| $# | output offsets, tool table, probing, home position. | 輸出偏移、刀具表、探測、回零位置 | |
| $#=<n> | output value for parameter n. | 輸出參數 n 的值 | |
| $<n> | output setting n value. | 輸出設定 n 的值 | 原文件僅寫「$」;常見用法為 $<n>(依控制器實作) |
| $=<n>=<v> | assign value to setting n. | 將設定 n 設為指定值 | |
| $$ | output all setting values. | 輸出所有設定值 | |
| $$=<n> | output details for setting n. | 輸出設定 n 的詳細資訊 | |
| $+ | output all setting values (alternate). | 輸出所有設定值(另一種方式) | |
| $SED=<n> | output description for setting n. | 輸出設定 n 的描述 | |
| $RST=* | restore/reset all settings. | 重置所有設定 | |
| $RST=$ | restore default settings. | 恢復預設設定 | |
| $RST=& | restore driver/plugin defaults. | 恢復驅動/插件預設 | |
| $RST=# | reset offsets and tool data. | 重置偏移與刀具數據 | |
| $EG | enumerate setting groups. | 枚舉設定群組 | |
| $ES | enumerate settings. | 枚舉設定 | |
| $ESG | enumerate settings (Grbl format). | 枚舉設定(Grbl 格式) | |
| $ESH | enumerate settings (grblHAL format). | 枚舉設定(grblHAL 格式) | |
🔧 Tool & Spindle(工具與主軸)
| Command | English (Original) | 中文解釋 | 備註 / Example |
|---|
| $TLR | set tool offset reference. | 設定刀具偏移參考 | |
| $TPW | probe tool plate. | 探測刀具測板 | |
| $SPINDLES | enumerate spindles (human readable). | 枚舉主軸(人類可讀) | |
| $SPINDLESH | enumerate spindles (machine readable). | 枚舉主軸(機器可讀) | |
📊 Diagnostics & Status(診斷與狀態)
| Command | English (Original) | 中文解釋 | 備註 / Example |
|---|
| $EA | enumerate alarms. | 枚舉警報 | |
| $EAG | enumerate alarms (Grbl format). | 枚舉警報(Grbl 格式) | |
| $EE | enumerate status codes. | 枚舉狀態碼 | |
| $EEG | enumerate status codes (Grbl format). | 枚舉狀態碼(Grbl 格式) | |
| $E* | enumerate alarms, status codes, settings. | 枚舉警報、狀態碼、設定 | |
| $PINS | enumerate pin bindings. | 枚舉引腳綁定 | |
| $PINSTATE | output auxiliary pin states. | 輸出輔助引腳狀態 | |
| $PORTS | enumerate UART ports. | 枚舉 UART 埠 | |
| $LEV | output last control signal events. | 輸出最後控制信號事件 | |
| $LIM | output current limit pins. | 輸出限位引腳狀態 | |
| $RTC | output current time. | 輸出當前時間 | |
| $RTC=<time> | set current time. | 設定當前時間 | |
| $NETIF | network interface info. | 提供網路介面資訊 | |
📂 File & SD Card Management(檔案與 SD 卡管理)
| Command | English (Original) | 中文解釋 | 備註 / Example |
|---|
| $FM | mount SD card. | 掛載 SD 卡 | |
| $FU | unmount SD card. | 卸載 SD 卡 | |
| $FF=yes | format SD card. | 格式化 SD 卡 | This is destructive. |
| $F | list files (filtered). | 列出檔案(過濾) | |
| $F=<name> | run file. | 執行檔案 | |
| $F+ | list all files. | 列出所有檔案 | |
| $FR | enable rewind mode. | 啟用回放模式 | |
| $FD=<name> | delete file. | 刪除檔案 | This is destructive. |
| $F<= | dump file to output. | 輸出檔案內容 | |
🖥 System & Startup(系統與啟動)
| Command | English (Original) | 中文解釋 | 備註 / Example |
|---|
| $I | output system info. | 輸出系統資訊 | |
| $I=<text> | set build info string. | 設定編譯資訊字串 | |
| $I+ | extended system info. | 輸出擴展系統資訊 | |
| $N | output startup lines. | 輸出啟動行 | |
| $N0=<gcode> | set startup line 0. | 設定啟動行 0 | |
| $N1=<gcode> | set startup line 1. | 設定啟動行 1 | |
| $REBOOT | hard reset controller. | 重啟控制器 | |
| $HELP | output help topics. | 輸出幫助主題 | 原文件另列「help for specific topic」但命令同為 $HELP;建議確認語法 |
| $DWNGRD | toggle downgrade setting flags. | 切換降級設定標誌 | |
🧩 Execution Control(執行控制)
| Command | English (Original) | 中文解釋 | 備註 / Example |
|---|
| $B | toggle block delete. | 切換刪除區塊開關 | |
| $S | toggle single stepping. | 切換單步執行開關 | |
| $O | toggle optional stop (M1). | 切換可選停(M1) | |