OPERATION4. AUTOMATIC OPERATION
B–63844EN/02
488
The subprogram call function is provided to call and execute subprogram
files stored in an external input/output device(Handy File, FLOPPY
CASSETTE, FA Card)during memory operation.
When the following block in a program in CNC memory is executed, a
subprogram file in the external input/output device is called:
1. FS10/11 tape format
M198 Pffff L∆∆∆∆ ;
Number of repetitions
File number for a file in the I/O device
I/O devices call instruction
2. Other than FS10/11 tape format
M198 Pffff ∆∆∆∆ ;
Number of repetitions
I/O devices call instruction
File number for a file
in the I/O device
The subprogram call function is enabled when parameter No.0102 for the
input/output device is set to 3. Either format 1 or 2 can be used. A different
M code can be used for a subprogram call depending on the setting of
parameter No.6030. In this case, M198 is executed as a normal M code.
The file number is specified at address P. If the SBP bit (bit 2) of parameter
No.3404 is set to 1, a program number can be specified. When a file
number is specified at address P, Fxxxx is indicated instead of Oxxxx.
Programs in memory
execution mode
N1 ;
N2 ; 0123 .... File number
N3 M198 P0003 0123 ;
N4 ;
N5 ;
: First call/return
: Second call/return
: Third call/return
Program in the external
input/output device
Fig. 4.6 Program flow when m198 is specified
4.6
SUBPROGRAM
CALL FUNCTION
(M198)
Format
Explanation