
12. NC COMMAND PROGRAM (PMC-SC)
B–61863E–1/06
PMC LIBRARY
286
SC/SC3/SC4 NB/NB2 16i/18i/21i 15i–A
f f
[Name]
pl_nc_dwnend
[Description]
Executes processing to stop outputting (downloading) the data of the
NC command to be registered.
[Format]
ret = pl_nc_dwnend() ;
short ret ;
[Input]
______
[Output]
______
[Returns]
ret Complete code (–11, –2, 0, 5, 8)
–11: The NC has not yet terminated or executed processing to start
outputting the data of the NC command to be registered.
–2: The NC has entered the reset state.
0: The NC has normally terminated downloading.
5: When compared to the previous data output, the data specified
for the NC command is incorrect. This completion code is
returned when the identical program number has already been
registered or when the specified data of the NC command is
incorrect.
8: An overflow occurred in the memory area on the tape of the NC.
No more NC command data can be registered.
[Remarks]
Before this termination command is issued, ’%’ (25H) must be output
in the data of the NC command.
12.3
EXECUTING
PROCESSING TO
STOP OUTPUTTING
(DOWNLOADING)
THE DATA OF THE
NC COMMAND TO BE
REGISTERED