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: continue
    • 1: enter MDI mode
    • 2: 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 .ini file (default: no ini file)
  • -T β€” call task_init()
  • -l β€” specify the log_level (default: -1)
not me pointing out that -i, -T and -l show 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 Β© 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 πŸ¦‹πŸ’–βœ¨