
B–61863E–1/06
13. NC COMMAND PROGRAM
(PMC-NB/NB2/15i–A)
PMC LIBRARY
339
SC/SC3/SC4 NB/NB2 16i/18i/21i 15i–A
f f
[Name]
pl_nc_dnc
[Description]
Outputs the data of the NC command to be used for operation.
[Format]
ret = pl_nc_dnc(P1, P2) ;
short ret ;
char *P1 ;
unsigned short P2 ;
[Input]
*P1 Data of the NC command to be used for operation (string of 256
or less characters represented in ASCII code)
P2 Number of characters contained in the data of the NC command
to be used for operation
[Output]
______
[Returns]
ret Complete code: –11, –10, –4 or 0
–11: The NC has not terminated or executed the processing to start
outputting the data of the NC command to be used for
operation.
–10: A function is being processed. Call the function repeatedly
until a value other than –10 is returned.
4: The program operation terminated normally or abnormally.
Call the pl_nc_dncend function described below.
0: The NC has normally terminated operation using the NC
command data.
[Remarks]
The program is represented in ASCII code and stored in bytes. Mark
EOB of the NC command with LF (0AH). The NC program for
operation is output in the NC tape format.
13.8
OUTPUTTING THE
DATA OF THE NC
COMMAND TO BE
USED FOR
OPERATION