aboutsummaryrefslogtreecommitdiffstats
path: root/nc_files/plasmac/metric_squares.ngc
blob: ac566f2c53ad498667ea937840cd6122ae9594a5 (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
;metric squares

#1 = 50  (Scale)
#2 = 3   (Iterations)
#3 = 762 (Feed Rate)
#4 = 0.5
#5 = [#1*#2*#4]

G21
G64 P0.005
M52 P1 ;to enable reverse-run
F#<_hal[plasmac.cut-feed-rate]> ; feed rate from cut parameters

o100 repeat [#2]
  G0 X[#5-#4*#1] Y[#5-#4*#1]
  M3 $0 S1 (select plasma torch)
  G1 Y[#5+#4*#1]
  G1 X[#5+#4*#1]
  G1 Y[#5-#4*#1]
  G1 X[#5-#4*#1]
  M5 $0
  #4 = [#4+0.5]
o100 endrepeat

G0 X0 Y0
M2
bues.ch cgit interface