4. FA LIBRARY B-75044EN/02
-156-
At F_DncFileNumber(Ex), specify the file number by FileNumber. Any
value from 1 to 9999 can be specified.
At F_DncFileName(Ex), specify the file name by FileName.
At F_DncONumber(Ex), specify the NC program by ONumber.
At D_DncFilePath(Ex), specify the full path of the file by FilePath.
Section 1.3 describes the rules for transferring NC programs specified by
“file number,” “file name” and “NC program number.”
When files to be transferred are specified by “file order”, specified files
in ASCII sorted order are subject to DNC operation.
When files are specified by “file name,” files having the same name are
subject to DNC operation.
When files are specified by “NC program number,” files having a name
in the format “Oxxxx” (xxxx: specified NC program number) followed
by an extension are subject to DNC operation.
When files are specified by “full path of file,” files having the full
specified path are transferred regardless of the above rules.
2 F_Dnc... is a synchronous process. So, there is no return value from the
function until DNC operation ends. The return value is used for judging
whether processing succeeded or failed.
3 F_Dnc... is an synchronous process. So, there is a return value from the
function immediately after DNC operation is requested. The return value
becomes the descriptor ID to the processing results.
When F_Response is executed, whether or not processing ends lets you
know where processing succeeded or failed.
4 When processing ends, execute F_FreeID to release the descriptor ID.
RETURN VALUE
TRUE is returned if F_Dnc... succeeds, FALSE is returned if it fails.
F_Dnc...Ex returns a descriptor ID to the parameter if it succeeds. If it fails, a
value of 0 is returned.
If processing fails, an error code can be acquired by calling F_GetLastError.