Previous  |  Next ]     [ Up  |  First  |  Last ]     (Article 225 of 271)
 
 
CALL Statement
 
A CALL statement transfers control to any program residing in the CNC’s memory. Upon
completion of the called program or an M2, M99, or M30, control is returned to the main
program at the block immediately following the CALL statement.
 
The CALL format is as follows.
 
CALL  XXXX  
  Program  
  Name  
 
 
The call statement is similar to an M98.
 
Example:
X1 Y1
.
.
Call ABC (call to ABC)
.
.
M99 (the M99 here is optional) 
 
Note 1: Subprogram call allows nesting 50 levels deep.
Note 2: See page 6-96 for more information about using G92 in subprograms. 
Note 3: You cannot use the L option to loop when using the CALL STATEMENT.