RS274(1)
π RS274(1) β bestie, it's the standalone G-code interpreter π
okay so this is a manual page from the LinuxCNC docs, and it lives in section 1 (RS274(1)), which is the section for user commands. The whole thing is about rs274, a standalone G-code interpreter. Think of it as the little engine that reads your G-code without needing the whole LinuxCNC machine around it. So slay, let's get into it π
β¨ NAME β¨
rs274 β standalone G-code interpreter π
π¦ SYNOPSIS π¦
rs274 [-p interp.so] [-t tool.tbl] [-v var-file.var] [-n 0|1|2]
[-b] [-s] [-g] [input file [output file]]
πΈ DESCRIPTION πΈ
rs274 is the standalone G-code interpreter interface. That's the whole vibe. π«Ά
Usage:
rs274 [-p interp.so] [-t tool.tbl] [-v var-file.var] [-n 0|1|2]
[-b] [-s] [-g] [input file [output file]]
π OPTIONS π
-pβ pick which pluggable interpreter to use, bestie. Choose your fighter.-tβ say which.tbl(tool table) file to use. Your tools, your rules π§-vβ say which.var(parameter) file to use. Parameter files are lowkey iconic.-nβ pick the continue mode. Your choices are literally:0: continue1: enter MDI mode2: stop (default)
-bβ toggle the 'block delete' flag (default: OFF)-sβ toggle the 'print stack' flag (default: OFF)-gβ toggle the 'go (batch mode)' flag (default: OFF)-iβ specify the.inifile (default: no ini file)-Tβ calltask_init()-lβ specify thelog_level(default:-1)
not me pointing out that-i,-Tand-lshow up in this list but not in the synopsis above π they're still very much real, just keep them in mind, iykyk
π Example π
Wanna see the output of a loop? Say less. We can run rs274 on the file below and watch that loop never end. To break out of the loop, use Ctrl Z. You need these two files to run the example, periodt.
test.ngc
----
#<test> = 123.352
o101 while [[#<test> MOD 60 ] NE 0]
(debug,#<test>)
#<test> = [#<test> + 1]
101 endwhile
M2
----
test.tbl
----
T1 P1 Z0.511 D0.125 ;1/8 end mill
T2 P2 Z0.1 D0.0625 ;1/16 end mill
T3 P3 Z1.273 D0.201 ;#7 tap drill
----
command
----
rs274 -g test.ngc -t test.tbl
----
π SEE ALSO π
There is so much more info about LinuxCNC and HAL in the LinuxCNC and HAL User Manuals, found at /usr/share/doc/LinuxCNC/. Go read them, they're giving main character energy πβ¨
π BUGS π
None known at this time. We're literally unbothered. π
π AUTHOR π
This man page written by andypugh, as part of the LinuxCNC project. Thank you andypugh, you ate π«Ά
π REPORTING BUGS π
Found something? Report bugs at https://github.com/LinuxCNC/linuxcnc/issues
π COPYRIGHT π
Copyright Β© 2020 andypugh.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. (Read that again, bestie β no warranty, fr fr. π)
okay that's the whole page, mwah π it came from the LinuxCNC Documentation, dated 2020-08-26, and it's page RS274(1). bye bestie, go interpret some G-code π¦πβ¨
π¦ where this page comes from
- debian bookworm: linuxcnc-uspace 2.9.0~pre1+git20230208.f1270d6ed7-1+deb12u2 Β· GFDL-1.1-or-later
- debian trixie: linuxcnc-uspace 1:2.9.4-2+deb13u1 Β· GFDL-1.1-or-later
- ubuntu questing: linuxcnc-uspace 1:2.9.4-2ubuntu2
- ubuntu resolute: linuxcnc-uspace 1:2.9.4-2ubuntu4 Β· GFDL-1.1-or-later
- ubuntu stonking: linuxcnc-uspace 1:2.9.4-2ubuntu4 Β· GFDL-1.1-or-later
- Copyright (c) 2020 andypugh
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms