
B–61863E–1/06
12. NC COMMAND PROGRAM (PMC-SC)PMC LIBRARY
309
SC/SC3/SC4 NB/NB2 16i/18i/21i 15i–A
f f
[Name]
pl_nc_verify2
[Description]
Outputs NC command data to be verified by comparing it with the NC
command data registered in the NC.
[Format]
ret = pl_nc_verify2(P1, P2, P3);
short ret;
unsigned short P1;
char *P2;
unsigned short P3;
[Input]
P1 Tool post specification
0 : System other than the TT system
1 : Tool post on side 1
2 : Tool post on side 2
*P2 NC command data to be verified(ASCII character string of up
to 256 characters)
P3 Number of characters in the NC command data to be verified
[Output]
______
[Returns]
ret Complete code : –11, –2, 0, 1, 2, or 5
–11: Preparation to output NC command data to be verified in the
NC is not completed or has not been executed.
–2: The NC has entered the reset status.
0: Output of the NC command data to be verified in the NC has
terminated normally.
1: A value other than 1 or 2 was set to specify the tool post.
2: The data length is not specified correctly.
5: NC command data is incorrect.
This completion code is returned when the NC command data
has not been checked correctly, the machining program to be
checked in the NC is selected in the foreground, or NC
command data is incorrect.
[Remarks]
One character is set in ASCII code in bytes. Be sure to output O
****
;
at the beginning of the NC command data to be checked. Set the NC
command EOB code to LF (0AH). Be sure to output ’%’ (25H) at the
end of the NC command data to be checked.
12.24
OUTPUTTING NC
COMMAND DATA TO
BE VERIFIED