Programming manual
486
CNC 8070
15.
STATEMENTS AND INSTRUCTIONS
Programming statements
(SOFT V02.0X)
424
Considerations about the modal character of the subroutine
The modal subroutine will not be executed in the motion blocks
programmed inside the subroutine itself or in the subroutines
associated with T or M6. It will not be executed either, when
programming a number of block repetitions using a NR value of ·0·.
If a motion block contains a number of repetitions NR other than 0
while a modal subroutine is active, both the movement and the
subroutine will be repeated NR times.
If while a subroutine is selected as modal, a block containing the
instruction #MCALL is executed, the current subroutine will stop being
modal and the new selected subroutine will become modal.
#MDOFF Turning the function into non-modal
The instruction #MDOFF means that the subroutine that became
modal with the instruction #MCALL stops being modal in this block.