
B–61863E–1/06
12. NC COMMAND PROGRAM (PMC-SC)PMC LIBRARY
291
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 (–2, 0, 2, 5)
–11: The NC has not terminated or executed the processing to start
outputting the data of the NC command to be used for
operation.
2: The NC has entered the reset state. Output of the data of the NC
command to be used for operation must be stopped and
termination processing must be executed.
0: The NC has normally terminated operation using the NC
command data.
2: The specified data length is incorrect.
5: The data of the NC command is incorrect.
[Remarks]
Characters are represented in ASCII code and stored in bytes. The
EOB code of the NC command must be set to LF (0AH). The code
’%’ (25H) must be output at the end of the data of the NC command
to be used for operation.
12.8
OUTPUTTING THE
DATA OF THE NC
COMMAND TO BE
USED FOR
OPERATION