
12. NC COMMAND PROGRAM (PMC-SC)
B–61863E–1/06
PMC LIBRARY
288
SC/SC3/SC4 NB/NB2 16i/18i/21i 15i–A
f f
[Name]
pl_nc_verify
[Description]
Outputs the data of the NC command registered in the NC and the data
of the NC command to be checked.
[Format]
ret = pl_nc_verify(P1, P2) ;
short ret ;
char *P1 ;
unsigned short P2 ;
[Input]
*P1 Data of the NC command to be checked (string of 256 or less
characters represented in ASCII code)
P2 Number of characters contained in the data of the NC command
to be checked
[Output]
______
[Returns]
ret Complete code (–11, –2, 0, 2, 5)
–11: The NC has not terminated or executed processing to start
outputting the data of the NC command to be checked.
–2: The NC has entered the reset state.
0: The NC has normally terminated checking the data of the NC
command.
2: The specified data length is incorrect.
5: The data specified for the NC command is incorrect. This
completion code is returned when the data of the NC command
has not been normally checked, when the machining program
of the NC to be checked has been selected in the foreground,
or when the NC command data has been specified incorrectly.
[Remarks]
Characters are represented in ASCII code and stored in bytes. At the
beginning of the data of the NC command to be checked, O
****
;
must be output. 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 checked.
12.5
OUTPUTTING THE
DATA OF THE NC
COMMAND TO BE
CHECKED