Description
Universal Fanuc Driver
Fanuc Focas Library CD
Declaration
Arguments
Specify the library handle. See "Library handle" for details.
Pointer to the ODBDIAGIF structure including the diagnosis data information.
The ODBDIAGIF structure is as follows.
typedef struct odbdiagif {
unsigned short info_no ;
/* number of diagnosis data information */
short prev_no ; /* previous diagnosis data number */
short next_no ; /* next diagnosis data number */
struct {
short diag_no ; /* diagnosis data number */
short diag_type ; /* attribute of diagnosis data */
} info[N] ; /* N is number of diagnosis data information */
} ODBDIAGIF ;
- info_no
- Number of diagnosis data information
- Number of the diagnosis data information which was read actually.
- prev_no
- Previous diagnosis data number
- Previous effective number of the diagnosis data information which was read first.
- next_no
- Next diagnosis data number
- Next effective number of the diagnosis data information which was read lastly.
- info[N].diag_no
- Setting data number
- The setting data number which exists actually.
- info[N].diag_type
- Attribute of diagnosis data
- The following attributes are set.
- For Series 15, 16/18/21, 16i/18i/21i, 0i-A/B/C, Power Mate i
- For Series 15i
- For Series 30i, 0i-D/F, PMi-A
bit 0, 1 : type attribute (It is effective when bit 3 = 0) 0 : bit type (8 bit) 1 : byte type 2 : word type 3 : 2-word type bit 2 : axis attribute 0 : without axis 1 : with axis bit 3 : type attribute 1 : bit type (1 bit) bit 4,11,12 : display attribute (only 16i/18i/21i) #04=1 : 10 digits display #11=1 : date format(yyyy/mm/dd) #12=1 : time format(hh:mm:ss) bit 5,..,10,13,..,15 : (reserve)
bit 0, 1 : (reserve) bit 2 : axis attribute 0 : without axis 1 : with axis bit 3 : (reserve) bit 4,..,6 : type attribute 0 : byte type 1 : word type 2 : 2-word type 3 : bit type (8 bit) 4 : (reserve) 5 : real type bit 7 : integer without sign (It is effective when type attribute = 0, 1, 2) 1 : without sign 0 : with sign bit 8,..,11 : array type 0 : not array 1 : array of axis 2 : array of spindle bit 12,..,15 : data unit 0 : no unit 1 : % 2 : RPM
bit 0, 1 : axis attribute (It is effective when bit 3 = 0) 0 : bit type (8 bit) 1 : byte type 2 : word type 3 : 2-word type or real type bit 2 : axis attribute 0 : without axis 1 : with axis bit 3 : type attribute 1 : bit type (1 bit) bit 7 : sign 0 : without sign 1 : with sign bit 8 : spindle parameter 0 : no spindle 1 : spindle bit 9,..,11 : (reserve) bit 12 : in case that type attribute = 3 0 : except real type 1 : real type bit 13,..,15 : (reserve)
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 |
---|---|
(3) |
Start diagnosis data number (s_number) is wrong. |
(6) |
The extended driver/library function is necessary. |
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 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_diagnoss cnc_diagnosr cnc_rddiag_ext cnc_rddiagnum