
B–61863E–1/06
12. NC COMMAND PROGRAM (PMC-SC)PMC LIBRARY
305
SC/SC3/SC4 NB/NB2 16i/18i/21i 15i–A
f f
[Name]
pl_nc_dwnstart2
[Description]
Executes preparatory processing to output (downloading) the NC
command data to be registered.
[Format]
ret = pl_nc_dwnstart2(P1);
short ret ;
unsigned short P1 ;
[Input]
P1 Tool post specification
1 : Tool post on side 1
2 : Tool post on side 2
For systems other than the TT system, set 0 for the tool post
specification.
[Output]
______
[Returns]
ret Complete code : –1, 0, 1 or 7
–1 : The request to prepare to output NC command data to be
registered was rejected.
If an attempt is made to execute this command, this completion
code is returned while background editing is being performed
on the NC, during uploading, or when the MDI mode or alarm
status is set.
0 : Preparation to output (download) NC command data to be
registered has terminated normally.
1 : A value other than 1 or 2 was specified for tool post
specification.
7 : Memory protection is set for the NC.
[Remarks]
______
12.20
PREPARING TO
OUTPUT
(DOWNLOAD) OF NC
COMMAND DATA TO
BE REGISTERED