5238-E P-316
SECTION 13 SCHEDULE PROGRAMS
2. PSELECT Block
[Function]
A PSELECT block selects and executes main programs for a workpiece to be machined.
• This function searches a specified main program file for a specified main program to be
selected as a machining program. The function also searches a specified subprogram file, or
system subprogram file, and manufacturer subprogram file for the required subprograms and
selects them automatically.
• It repeats selected programs as specified.
[Programming format]
The commands must be specified in the following order:
Commands enclosed by [ ] may be omitted. Note that a comma "," may also be omitted if the items
that follow are all omitted.
LE33013R0301500020001
fm: Main program file name
LE33013R0301500020002
• If a device name, a file name, and/or an extension is omitted, entries of "MD1", "A", and "MIN",
respectively, are assumed to apply. If all entries for "fm" are omitted, "MD1:A.MIN" is assumed
to apply.
• An alarm will occur if "*" or "?" is used in a main program file name.
• An alarm will occur if the specified file does not exist.
pm: Main program name
LE33013R0301500020003
• If entry of "pm" is omitted, the program name of the first program in the specified main program
file is assumed to apply.
• An alarm will occur if the specified program does not exist in the selected main program file, fm.
• An alarm will occur if M02 or M30, indicating the end of the program, is not specified in the
specified main program.
{PSELECT} [fm],[pm],[fs],[n](CR) or (LF)
Entries enclosed by [ ] may be omitted.
[ :] [ ] [. ]
3 characters
Within 16 characters 3 characters
Device name
File name
Extension
Within 5 characters
0