Siemens CNC | MCALL code | Cycle Repeat


Introduction

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.

Code Format

MCALL

Usage with Cycles

MCALL CYCLE81 (RTP, RFP, SDIS, DP, DPR) ;
….
….
MCALL ;

MCALL Examples

With CYCLE81

Siemens CNC MCALL program example with CYCLE81

O1234 ;
G90 G54;
M6 T08 D8;
S1500 M03;
G0 X30 Y15 Z20;
F400;
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;
M30;