summaryrefslogtreecommitdiff
path: root/res/shapes
diff options
context:
space:
mode:
authorLibravatar Martin Michalec <martin@michalec.dev>2026-02-22 03:18:43 +0000
committerLibravatar Martin Michalec <martin@michalec.dev>2026-02-22 03:18:43 +0000
commit627a8943856c70ef12232e5dbaa1397587198f98 (patch)
treeaba005dc18caed4cb77e3578243a9733757d884f /res/shapes
parentadd build.sh (diff)
downloadrs274ngc-627a8943856c70ef12232e5dbaa1397587198f98.tar.gz
add RS274/NGC samplesHEADmaster
Diffstat (limited to 'res/shapes')
-rw-r--r--res/shapes/circle.nc11
-rw-r--r--res/shapes/square.nc41
2 files changed, 52 insertions, 0 deletions
diff --git a/res/shapes/circle.nc b/res/shapes/circle.nc
new file mode 100644
index 0000000..9d7a755
--- /dev/null
+++ b/res/shapes/circle.nc
@@ -0,0 +1,11 @@
1G17 G20 G90 G94 G54
2G0 Z0.25
3X-0.5 Y0.
4Z0.1
5G01 Z0. F5.
6G02 X0. Y0.5 I0.5 J0. F2.5
7X0.5 Y0. I0. J-0.5
8X0. Y-0.5 I-0.5 J0.
9X-0.5 Y0. I0. J0.5
10G01 Z0.1 F5.
11G00 X0. Y0. Z0.25
diff --git a/res/shapes/square.nc b/res/shapes/square.nc
new file mode 100644
index 0000000..bfcc24f
--- /dev/null
+++ b/res/shapes/square.nc
@@ -0,0 +1,41 @@
1(Exported by FreeCAD)
2(Post Processor: linuxcnc_post)
3(Output Time:2026-02-17 23:27:08.902610)
4/(begin preamble)
5G17 G54 G40 G49 G80 G90
6G21
7(begin operation: Fixture)
8(machine units: mm/min)
9G54
10(finish operation: Fixture)
11(begin operation: TC: Default Tool)
12(machine units: mm/min)
13(TC: Default Tool)
14M5
15M6 T1
16G43 H1
17(finish operation: TC: Default Tool)
18(begin operation: Profile)
19(machine units: mm/min)
20(Profile)
21(Compensated Tool Path. Diameter: 5.0)
22G0 Z15.000
23G0 X51.768 Y51.768
24G0 Z13.000
25G1 X51.768 Y51.768 Z0.000
26G2 X52.500 Y50.000 Z0.000 I-1.768 J-1.768
27G1 X52.500 Y0.000 Z0.000
28G2 X50.000 Y-2.500 Z0.000 I-2.500 J0.000
29G1 X0.000 Y-2.500 Z0.000
30G2 X-2.500 Y0.000 Z0.000 I0.000 J2.500
31G1 X-2.500 Y50.000 Z0.000
32G2 X0.000 Y52.500 Z0.000 I2.500 J-0.000
33G1 X50.000 Y52.500 Z0.000
34G2 X51.768 Y51.768 Z0.000 I-0.000 J-2.500
35G0 Z15.000
36G0 Z15.000
37(finish operation: Profile)
38(begin postamble)
39M05
40G17 G54 G90 G80 G40
41M2