5238-E P-316SECTION 13 SCHEDULE PROGRAMS2. 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 beselected as a machining program. The function also searches a specified subprogram file, orsystem subprogram file, and manufacturer subprogram file for the required subprograms andselects 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 itemsthat follow are all omitted.LE33013R0301500020001fm: Main program file nameLE33013R0301500020002• 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 assumedto 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 nameLE33013R0301500020003• If entry of "pm" is omitted, the program name of the first program in the specified main programfile 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 thespecified main program.{PSELECT} [fm],[pm],[fs],[n](CR) or (LF)Entries enclosed by [ ] may be omitted.[ :] [ ] [. ]3 characters Within 16 characters 3 charactersDevice name File name ExtensionWithin 5 characters0