4.AUTOMATIC OPERATION
OPERATION
B-63944EN/03
- 1124 -
4.5
EXTERNAL SUBPROGRAM CALL (M198)
During memory operation, you can call and execute a subprogram
registered in an external device (such as a Memory Card, Handy File,
or Data Server) connected to the CNC.
Format
M198 Pxxxxxxxx Lyyyyyyyy ;
↑
↑
Pxxxxxxxx : Program number (or file number)
Lyyyyyyyy : Number of repetitive calls
When address L is omitted, the number of repetitive calls is
assumed to be 1.
FS16 compatible command format
(The following command format is valid only when a 4-digit
program number is used.)
M198 Pxxxx yyyy ;
↑
↑
xxxx : Number of repetitive calls
yyyy : Program number (or file number)
When the number of repetitive calls is omitted, it is assumed
to be 1.
Explanation
M code M198 specifies an external subprogram call. You can also
call an external subprogram using an M code set in parameter No.
6030. (When an M code other than M198 is set as an M code for
calling an external subprogram, M198 is executed as a normal M
code.)
Specify a program number (file number) registered in an external
device at address P. If the specified program number (file number) is
not registered in the connected external device, an alarm (PS1079) is
issued.