mycnc:subroutines
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
mycnc:subroutines [2020/03/06 14:41] – created ivan | mycnc:subroutines [2020/03/06 14:44] – ivan | ||
---|---|---|---|
Line 2: | Line 2: | ||
Subroutines in myCNC are done in a manner similar to other industrial CNC systems. | Subroutines in myCNC are done in a manner similar to other industrial CNC systems. | ||
+ | |||
+ | Sample code of a G-code program containing subroutines #100 and #101: | ||
+ | |||
+ | < | ||
+ | G90 G0 Z10 F500 | ||
+ | #100=[10] | ||
+ | #101=[10] | ||
+ | G0 X#100 Y#101 | ||
+ | M98 P101 L5 | ||
+ | M2 | ||
+ | O100 | ||
+ | G0 X#100Y#101 | ||
+ | G1Z0 | ||
+ | G2 X#100 Y#101 I10 | ||
+ | # | ||
+ | G0 Z10 | ||
+ | M99 | ||
+ | O101 | ||
+ | M98 P100 L5 | ||
+ | #100=[10] | ||
+ | # | ||
+ | M99</ | ||
+ | |||
+ | The resultant program will look the following way: | ||
+ | {{: | ||
+ | |||
+ |
mycnc/subroutines.txt · Last modified: 2020/12/10 09:09 by ivan