rs274.txt
1 [[cha:rs274]] 2 3 = Stand Alone Interpreter 4 5 The rs274 stand alone interpreter is available for use via the command line. 6 7 == Usage 8 9 ---- 10 Usage: rs274 [-p interp.so] [-t tool.tbl] [-v var-file.var] [-n 0|1|2] 11 [-b] [-s] [-g] [input file [output file]] 12 13 -p: Specify the pluggable interpreter to use 14 -t: Specify the .tbl (tool table) file to use 15 -v: Specify the .var (parameter) file to use 16 -n: Specify the continue mode: 17 0: continue 18 1: enter MDI mode 19 2: stop (default) 20 -b: Toggle the 'block delete' flag (default: OFF) 21 -s: Toggle the 'print stack' flag (default: OFF) 22 -g: Toggle the 'go (batch mode)' flag (default: OFF) 23 -i: specify the .ini file (default: no ini file) 24 -T: call task_init() 25 -l: specify the log_level (default: -1) 26 ---- 27 28 == Example 29 30 To see the output of a loop for example we can run rs274 on the following file 31 and see that the loop never ends. To break out of the loop use Ctrl Z. The 32 following two files are needed to run the example. 33 34 .test.ngc 35 ---- 36 #<test> = 123.352 37 38 o101 while [[#<test> MOD 60 ] NE 0] 39 (debug,#<test>) 40 #<test> = [#<test> + 1] 41 o101 endwhile 42 43 M2 44 ---- 45 46 .test.tbl 47 ---- 48 T1 P1 Z0.511 D0.125 ;1/8 end mill 49 T2 P2 Z0.1 D0.0625 ;1/16 end mill 50 T3 P3 Z1.273 D0.201 ;#7 tap drill 51 ---- 52 53 .command 54 ---- 55 rs274 -g test.ngc -t test.tbl 56 ----