Files
linuxcncAllWasm/nc_files/plasmac/metric_squares.ngc
2026-08-20 06:17:39 +08:00

28 lines
479 B
Plaintext

(metric squares)
#1 = 50 (Scale)
#2 = 3 (Iterations)
#3 = 762 (Feed Rate)
#4 = 0.5
#5 = [#1*#2*#4]
G21 (metric units)
G64 P0.125 (path tolerance)
M52 P1 (enable adaptive feed)
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 (start plasma torch)
G1 Y[#5+#4*#1]
G1 X[#5+#4*#1]
G1 Y[#5-#4*#1]
G1 X[#5-#4*#1]
M5 $0 (stop plasma torch)
#4 = [#4+0.5]
o100 endrepeat
G0 X0 Y0
M2 (end program)