M98 Sub Program Call


{\rtf1\ansi\ansicpg1252\deff0\deflang2057{\fonttbl{\f0\fnil MS Sans Serif;}{\f1\fnil\fcharset0 MS Sans Serif;}{\f2\fnil\fcharset0 Verdana;}}
{\colortbl ;\red255\green0\blue0;\red0\green0\blue0;}
\viewkind4\uc1\pard\qc\cf1\b\f0\fs24 M\f1 98 Sub Program Call
\par
\par \pard\cf2\b0\fs20 This code will cause the machine controller to jump across from the main program to read a different program in its memory (called a sub program).\cf1\b\f0\fs24
\par
\par \cf2\f1\fs20 M98 P1000
\par :1000
\par ..
\par
\par ..
\par M99
\par \b0 The P value defines the sub program name. Firstly the program will look for the sub program after the end of the main program and then on the hard drive.
\par
\par Repeat sub program:
\par
\par Adding a number before the program call will define the number of times to repeat the sub routine.
\par
\par \b M98 P51000 \b0 Repeat five times.
\par \b :10000\b0
\par \cf1\b\f0\fs24
\par \cf0\b0\f2\fs16
\par }


Wyszukiwarka