Description
Diagnosis data regarding the output of downloading DNC program is returned.
The purpose of this function is the maintenance of DNC operation or 198 operation.
Universal Fanuc Driver
Fanuc Focas Library CD
Declaration
Arguments
Specify the library handle. See "Library handle" for details.
The pointer to a structure 'ODBDNCDGN' that returns diagnosis data.
The structure of ODBDNCDGN is as follows.
typedef struct odbdncdgn {
short ctrl_word;
short can_word;
char nc_file[16];
unsigned short read_ptr;
unsigned short write_ptr;
unsigned short empty_cnt;
unsigned long total_size;
} ODBDNCDGN;
- ctrl_word
- Data that shows an operation demand from CNC is set.
- can_word
- Data that shows an operation stop demand from CNC is set.
- nc_file
- Program number/program name specified as an operation start demand is set.
- As for program name, 15 characters from the head are acquired.
- read_ptr
- Read pointer of buffer for DNC operation is set.
- write_ptr
- Write pointer of buffer for DNC operation is set.
- empty_cnt
- Number indicating how many times the read pointer caught up with the write pointer
at outputting the NC part program is set.
This count shows the total of the events from the power-up of CNC. - total_size
- Total number of characters output as the NC part program after
cnc_dncstart2
was executed is set.
This value is cleared by each cnc_dncstart2 execution.
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 |
---|---|
(6) |
The extended driver/library function is necessary. |
(9) |
Following CNC parameter must be set. 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)
8706#1 = 1 (must be set)
0020 = 15 (must be set)
This function is not related to CNC parameter.
CNC mode
This function can be used in any 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_dncend2