In NC programming, subroutines and cycles can be called modally. This feature (MCALL) is of particular importance for drilling cycles.
You generate a modal subroutine call by programming the keyword MCALL (modal subroutine call) in front of the subroutine name. This function causes the subroutine to be called and executed automatically after each block that contains traversing movement. The function is deactivated by programming MCALL without a following subroutine name or by modally calling another subroutine.
Note: Nesting of modal calls is not permissible, i.e., subroutines that are called modally cannot contain any further modal subroutine calls. Any number of modal drilling cycles can be programmed, the number is not limited to a certain number of G functions reserved for this purpose.
Supported CNC Series
|Siemens CNC 802D, 810D, 840D, 840D sl, 840Di, 840Di sl series controllers.|
Usage with Cycles
|MCALL CYCLE81 (RTP, RFP, SDIS, DP, DPR) ;
M6 T08 D8;
G0 X30 Y15 Z20;
MCALL CYCLE81(10,0,5,-18,0) ; Repeat cycle for each coordinate until next MCALL code
G0 X30 Y15; Hole 1 coordinate
G0 X30 Y40; Hole 2 coordinate
G0 X80 Y40; Hole 3 coordinate
G0 X80 Y15; Hole 4 coordinate
MCALL; Mcall cancel
G91 G28 Z0;