Subroutines, Macros
2.7 Modal subroutine (MCALL)
Job planning
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
2-19
Example
N40 FRAME P3

1)5$0(3
6XESURJUDP
0DLQSURJUDP
The subroutine FRAME must be executed 3 times in succession.
2.7 2.7 Modal subroutine (MCALL)
Function
This function causes the subroutine to be called and executed automatically after each block
that contains traversing movement. In this way you can automate the calling of subroutines
that are to be executed at different positions on the workpiece; for example, for the
production of drilling patterns.
Deactivating the modal subroutine call
With MCALL without a subroutine call or by programming a new modal subroutine call for a
new subroutine.
Parameters
MCALL Modal subroutine call
L address Subroutine number