System information
SECTION FIVE - MISCELLANEOUS FUNCTIONS (M CODES)
Notes on Subprograms
Note 1: If the subprogram number specified cannot be found, a 603 error “program
O#### does not exist” message is displayed.
Note 2: A subprogram call M98___ cannot be executed from MDI. In this case write a
short program to call the subprogram.
0XXXX
M98PXXX
M02 Then execute it in the run mode.
Note 3: If a subprogram modifies the floating zero, (normally G92 X0 Y0 on the first
block of the subroutine), the floating zero will be restored to the same offset value
as it was when entering the subprogram. This can be useful for cutting the same
pattern at different locations.
Example:
0#### O0002
X1 Y2 G92 X0 Y0
M98 P2 (cut part at X1 Y2) .
X3 Y5 .
.
M98 P2 (cut part at X3 Y5) .
M2 M99
Note 4: If you use the “call” statement, you can call subprograms with full DOS names.
Example: Call C:\Test\Parts\XYZ.PRG
Custom M codes
Custom M codes can be created to execute a user-defined function. To set up the new custom M
code first create a text program – numbered from 9020 to 9029 – that defines the
new M code. Next, enter the number of the new custom code in the F3 (Power) parameter
section after the newly created text program. A three-digit number can be used to number the
newly created custom code.
320










