REPEATING SUBROUTINES REFERENCE

REPEATING SUBROUTINES REFERENCE

Subroutines can be repeated a finite number of times using the repeat/endrepeat keyword.

Repeat example:

(Mill 5 diagonal shapes)

G91 (Incremental mode)

o103 repeat [5]

… (insert milling code here)

G00 X1 Y1 (diagonal move to next position)

o103 endrepeat

G90 (Absolute mode)

REPEATING SUBROUTINES REFERENCE