B-75044EN/02 1. ABOUT FA SYSTEM FOR PC
-15-
Subprogram File Names
Subprogram file names must be specified in the following format:
“O” + 4-digit number + “.” + 3-letter extension
Example: O0001.DAT
Register the extension in the [Subprogram Extension] in the [General] panel
in the Machine Setup menu.
Subprogram File Format
Only one O number and M99 code each are both required in the subprogram
file. See Example 3 in “1.4 About NC Program Format.”
Subprogram files containing repeated O numbers and M99 codes cannot be
sent. Calling a subprogram containing an M02 or M30 code instead of an
M99 code will result in an error.
Subprogram File Directory
Up to three directories for storing subprogram files can be set in the
[Subprogram Search Directory 1 to 3] in the [Download] panel in the
Machine Setup menu. The subprogram search order of priority is set to the
three directories. For example, if the No.1 directory and No.2 directory hold a
program having the same name, the subprogram in the No.1 directory is sent.
Subprogram Non-call Setting
You can disable subprogram transfer even if a subprogram is called by the
main program. For example, you can set “Not to send subprograms in lines
8000 to 9000 as they are stored in NC memory.” You can set this in 1000-line
units in the [Subprograms Not To Send] in the [Download] panel in the
Machine Setup menu.
Subprogram Call Code Setting
You can set the call code by which the subprogram is sent. Call types M98,
G65 and G66 are supported, and subprogram transfer is carried out only for
the call type you have set.
Set the call code in the [Call Type] in the [Download] panel in the Machine
Setup menu.
NOTE
Subprograms are searched only from the directories set in the
[Subprogram Search Directory 1 to 3]. To store a subprogram in the
default directory, specify the same directory as the default directory
somewhere in the [Subprogram Search Directory 1 to 3].