B-75044EN/02 4. FA LIBRARY
4.3.9 Establishing DNC1 Connection < F_EstablishDnc1 >
In case of the synchronous treatment
VB Function EstablishDnc1 (ByVal MachineNumber As Long) As Boolean
C++ BOOL F_EstablishDnc1(LONG MachineNumber);
In case of the asynchronous treatment
VB Function EstablishDnc1Ex(ByVal MachineNumber As Long) As Long
C++ LONG F_EstablishDnc1Ex(LONG MachineNumber);
F_EstablishDnc1(Ex) indicates both of the synchronous and the
Proceed to the following procedure 1,2 in case of the synchronous treatment.
Proceed to the following procedure 1,3,4 in case of the asynchronous
1 F_EstablishDnc1(Ex) establishes the DNC1 connection of the NC
specified by MachineNumber. The function is effective to the machine
registered to DNC1 in the Machine Configuration screen.
2 F_EstablishDnc1 doesn’t return until the treatment is finished. You
can know whether the function has succeeded or not by the return value.
3 F_EstablishDnc1Ex requests the system to make connection with the
NC, and returns at once. The return value is the descriptor ID for
pointing the result. You must check whether the request is finished or not,
and whether its result is success or not by calling F_Response.
4 Call F_FreeID to free the descriptor ID after getting the result of
F_EstablishDnc1Ex by calling F_Response.
TRUE is returned if F_EstablishDnc1 succeeds, FALSE is returned if it
F_EstablishDnc1Ex returns the positive integer of the descriptor ID for
pointing the result if it succeeds. The value of 0 is returned if it fails.
In failure, an error code can be acquired when F_GetLastError is carried