
B–61863E–1/06
12. NC COMMAND PROGRAM (PMC-SC)PMC LIBRARY
301
SC/SC3/SC4 NB/NB2 16i/18i/21i 15i–A
f f
[Name]
pl_nc_progdir
[Description]
Inputs the list of numbers of the machining programs registered in the
NC.
When the data area provided by the application program is quite large,
program numbers may be read several times. This function must be
called until %(25H) is input.
[Format]
ret = pl_nc_progdir(P1,P2) ;
short ret ;
char *P1 ;
unsigned short *P2 ;
[Input]
*P2 Number of input characters
[Output]
P1 List of program numbers (string of 256 or less characters
represented in ASCII code)
(a) Reading only the program numbers
’O’
’1’
’1’
’O’
’1’
’2’
’O’
’1’
’2’
’3’
’4’
’%’
1) Zeros to the left of the most significant digits of a program
number are suppressed.
2) When values other than zero are specified as the first and last
program numbers in the function for starting input of the list
of program numbers, all program numbers within the
specified range are set in the program number list. When
zeros are specified as the first and last program numbers, the
numbers of all registered programs are set in the program
number list in ascending order.
3) When no programs are found within the specified range of the
program numbers, or when no programs have been
registered, only ’%’ is set in the program number list.
12.18
INPUTTING THE LIST
OF PROGRAM
NUMBERS
0
1
2
3
4
5
6
7
8
9
10
11
N–1
N
P1
Program number O0011
Program number O0012
Program number O1234