Description
Universal Fanuc Driver
Fanuc Focas Library CD
Declaration
Arguments
Specify the library handle. See "Library handle" for details.
Specify the hard_num=1 at first time.
Data information is sequentially acquired. Please add one to hard_num acquired at the end since the second times.
Pointer to the number of hardware informations to be read.
This function returns the number of data which was read actually.
An effective range of the data which can be specified is 1-25.
When any data cannot read, read_num= 0 is returned.
Pointer to the ODBSYSH structure for the data of the hardware configuration of CNC.
The number of array must be required so as to store the 'read_num'.
The ODBSYSH structure is as follows.
typedef struct odbsysh {
unsigned long id1 ; /* ID-1(ID) */
unsigned long id2 ; /* ID-2(additional information) */
short group_id ; /* group ID */
short hard_id ; /* hardware ID */
short hard_num ; /* hardware number */
short slot_no ; /* slot number */
short id1_format ; /* display format for ID-1 */
short id2_format ; /* display format for ID-2 */
} ODBSYSH ;
- id1
- Hardware ID is stored.
- id2
- Additional information of hardware is stored.
- group_id
- Group ID of hardware
- The value for the group of each hardware is stored.
- Group ID for main hardware is as follows.
- (When data increases newly, ID is added.)
0100H : MAIN BOARD 0200H : OPTION BOARD 0400H : BUS EXTN 0500H : (UNKNOWN) 0600H : DISPLAY 0700H : OTHERS 0f00H : CERTIFY ID - hard_id
- Hardware ID
- The value for each hardware is stored.
- Main hardware ID is as follows.
- (When data increases newly, ID is added.)
0100H : MAIN BOARD 0101H : CPU CARD 0102H : SERVO CARD 0103H : PMC MODULE 0110H : FROM/SRAM 0200H : FAST ETHER 0210H : FL-NET 0211H : ETHER BOARD 0212H : ETHER CARD 0220H : PROFI MASTER 0230H : PROFI SLAVE 0240H : C LANGUAGE 0250H : HSSB 2CH 0260H : HSSB 1CH 0270H : TPU 0280H : ADD SPDL 0290H : ADD AXIS 02A0H : DEVNT MASTER 02B0H : ADD CPU 02C0H : DEVNT SLAVE 0400H : BUS EXTN 0500H : (QFS) 0510H : (WRC) 0520H : (ETC) 0530H : (LIME) 0540H : (NBG) 0550H : (LSC) 0560H : (PHI) 0570H : (NEW) 0601H : LCD BOARD 0602H : DISP ID 0603H : GUI CARD 0604H : GUI BOARD 0605H : GUI ID 0701H : MDI ID 0702H : B.UNIT ID 0f00H : CERTIFY ID-1 0f01H : CERTIFY ID-2 0f02H : CERTIFY ID-3 - hard_num
- The number of hardware information is stored.
- slot_no
- The slot number is stored.
- id1_format
- Display format of ID-1.
- id2_format
- Display format of ID-2.
- The display format for ID-1 and ID-2 which is displayed on the system configuration screen is stored.
0 : No display. 1 : The hexadecimal number is displayed by the binary number of two digits. 2 : The hexadecimal number is displayed by the binary number of four digits. 3 : The hexadecimal number is displayed by the binary number of six digits. 4 : The hexadecimal number of two digits is displayed. 5 : The hexadecimal number of four digits is displayed according to examples 1. Ex.1) 1234 -> 12/34 Slash (/) is inserted between characters. 6 : The hexadecimal number of eight digits is displayed. 7 : The hexadecimal number of eight digits is sorted according to example 2 and space is inserted between characters. Ex.2) 01234567 -> 56723 40 1 -
Note : If the formatted value is smaller than that width, display with leading zeros. Ex.) In case of id1_format = 3 : 0002H -> 000010
/**** Example of data ****************************************************** * group_id/hard_id/ id1 /id1_format/ id2 /id2_format/slot_no/hard_num * * * * 0100H 0100H 00010003 7 0 0 1 * * 0100H 0101H 00060004 7 800C1104 6 0 2 * * 0100H 0110H 0000C103 5 0 0 3 * * * * 0200H 0200H 00011007 7 0 1 4 * * * * 0200H 0220H 00041007 7 0 2 5 * * * * 0600H 0602H 00000005 2 0 0 6 * ****************************************************************************/ /* Example of display************************* * 1.HARDWARE CONFIGURATION * * NAME ID-1 ID-2 SLOT * * +-------------+----------+--------+----+ * * MAIN BOARD * * MAIN BOARD 00301 00 0 * * CPU CARD 00406 00 0 800C1104 * * FROM/SRAM C1/03 * * * * OPTION BOARD * * FAST ETHER 00701 10 0 1 * * PROFI(M) 00704 10 0 2 * * * * DISPLAY * * DISP ID 0101 * *********************************************/
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 |
---|---|
(5) |
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 0i-D/F, 30i, 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