4. FA LIBRARY B-75044EN/02
-158-
4.3.23 Canceling Computer Start Upload < F_UploadCancel >
This function is valid only for machines connected by DNC1/Ethernet.
This function cancels the upload that is started by starting up your computer.
SYNOPSIS
VB Function UploadCancel
(ByVal MachineNumber As Long, ByVal ToolPostNumber As Long)
As Boolean
VC++ BOOL F_ UploadCancel (LONG MachineNumber, LONG ToolPostNumber);
DESCRIPTION
1 F_UploadCancel ends the process that was uploaded by computer startup to
the NC having the machine number specified by MachineNumber and
tool post number specified by ToolPostNumber.
2 The cancel request is reset before the upload is started even if it is started
after F_UploadCancel is executed. So, the upload is not canceled.
RETURN VALUE
TRUE is returned if F_UploadCancel succeeds, FALSE is returned if it fails.
If processing fails, an error code can be acquired by calling F_GetLastError.
If the specified machine is not in the process, FALSE is returned.
NOTE
1 To use this function, you must execute the upload of the NC program
requested by the computer asynchronously. If the upload is executed
synchronously, the application will not be returned to until the upload
function ends. For this reason, the cancel function cannot be used.
2 Processing at normal completion of this function differs from
cancellation of an actual upload. Make sure that the asynchronous
upload function ended by a cancel by the F_Response function (error
code 0x6000012c).