User Tools

Site Tools


mycnc:subroutines

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mycnc:subroutines [2020/03/06 14:44] ivanmycnc:subroutines [2020/12/10 09:09] (current) ivan
Line 1: Line 1:
 ======Subroutines in myCNC====== ======Subroutines in myCNC======
 +
 +{{youtube>h69QymaY6PE?large}}
  
 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. 
Line 28: Line 30:
 {{:mycnc:forum-mar2020-020-vis-subroutine.png}} {{:mycnc:forum-mar2020-020-vis-subroutine.png}}
  
 +Subroutines are called using the following syntax:
 +
 +<code>M98 P[SUBROUTINE NUMBER] L[NUMBER OF REPETITIONS]</code>
 +
 +As can be seen in the code above, this takes the form of 
 +
 +<code>M98 P100 L5</code>
 +
 +The M99 code is used inside the subroutine that is being called to indicate the end of that subroutine. 
  
mycnc/subroutines.txt · Last modified: 2020/12/10 09:09 by ivan

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki