Description
Notifies the termination of outputting NC part program for DNC operation or M198 operation to the CNC.
The application must call this function with the result indicating whether the output process of NC part program is terminated normally or not.
In case that EW_RESET was returned by cnc_dnc2, this function must be called with specifying DNC_CANCEL as the result.
This function is not available to Embedded Ethernet. |
Universal Fanuc Driver
Fanuc Focas Library CD
Declaration
Arguments
Specify the library handle. See "Library handle" for details.
DNC_NORMAL | : | normal termination |
DNC_CANCEL | : | aborted from CNC side |
DNC_OPENERR | : | open error of NC part program. In case of 30i, 0i-D/F and PMi-A at HSSB connection, the "SR5553" alarm occurs. |
DNC_NOFILE | : | file of NC part program not found. In case of 30i, 0i-D/F and PMi-A at HSSB connection, the "SR1079" alarm occurs. |
DNC_READERR | : | read from NC part program failed. In case of 30i, 0i-D/F and PMi-Aat HSSB connection, the "SR5554" alarm occurs. |
This function returns EW_DATA if other value is specified as the 'result'.
Return
EW_OK is returned on successful completion, otherwise any value except EW_OK is returned.
The major error codes are as follows.
Return code | Meaning/Error handling |
---|---|
(1) |
|
(5) |
The invalid value is specified as the 'result'. |
(6) |
The extended driver/library function is necessary. |
(9) |
Following CNC parameter must be specified. Series 15/15i 7713#0 = 1 Series 16/18/21, 16i/18i/21i, 0i-A/B/C 8706#1 = 1 |
As for the other return codes or the details, see "Return status of Data window function"
CNC option
For HSSB connection,
For Ethernet connection,
The Ethernet function and the extended driver/library function are necessary. However, in case of Series 16i/18i/21i-B, 0i-B/C/D/F, Series 30i and PMi-A, the required CNC option is as follows. When Embedded Ethernet is used,above two optional functions are not required.
When Ethernet board is used,
- only Ethernet function is required.
CNC parameter
This function is related to the following CNC parameter.
See the manual of CNC parameter for details.
7713#0 = 1 (must be set)
0020 = 15 (must be set)
0020 = 15 (must be set)
8706#0 (influenced by setting) (This parameter is effective only in path 1. Set 0 except the 1st path.)
8706#1 = 1 (must be set)
0020 = 15 (must be set)
0020 = 16 (must be set)(In case of HSSB PORT2 function)
0020 = 15 (must be set)
0020 = 16 (must be set)(In case of HSSB PORT2 function and NCGuidePro)
0020 = 6 (must be set)
0020 = 6 (must be set)
CNC mode
Available CNC
0i-A | 0i-B/C(Note) | 0i-D | 0i-F | 15 | 15i | 16 | 18 | 21 | 16i-A | 18i-A | 21i-A | 16i-B | 18i-B | 21i-B | 30i-A | 30i-B | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
M (Machining) | |||||||||||||||||
T (Turning) | - | ||||||||||||||||
LC (Loader) | - | - | - | - | - | - | - | - |
0i-D | 0i-F | 16i | 18i | 30i-A | 30i-B | |
---|---|---|---|---|---|---|
P (Punch press) | - | |||||
L (Laser) | - | - | - | - | ||
W (Wire) | - | - |
Power Mate i-D | |
Power Mate i-H | |
Power Motion i-A | O |
"O" | : | Both Ethernet and HSSB | |
"E" | : | Ethernet | |
"H" | : | HSSB | |
"X" | : | Cannot be used | |
"-" | : | None |
Note) 0i-C does not support the HSSB function.
See Also
cnc_dncstart2 cnc_dnc2 cnc_rddncdgndt
Example(C Language)
Example(C#)