summaryrefslogtreecommitdiffstats
path: root/gcode/langloch.ngc
blob: e74664beed7d458b53eb87348d383e58cf3b8ead (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
%
G17 G40 G49 G80 G90 G94 G61 G21

G54
G0 X0 Y0 Z1

( #1 = X offset, #2 = Y offset)
O1 sub
	#10 = 0
	G0 X[#1 - 5] Y[#2]
	O2 while [#10 gt -15.5]
		G1 Z[#10] F15

		G1 Y[#2 + 1.5] F100
		G1 X[#1 + 5]
		G1 Y[#2 - 1.5]
		G1 X[#1 - 5]
		G1 Y[#2]

		#10 = [#10 - 0.4]
	O2 endwhile
	G0 Z2
O1 endsub

O1 call [-15] [0]
O1 call [15] [0]

M30
%
vim: syntax=rs274ngc ts=4 
bues.ch cgit interface