Description
Read specified spindle id information from adaptation device.
Each information is stored in member of the ODBCSPID2 structure.
Universal Fanuc Driver
Fanuc Focas Library CD
Declaration
Arguments
Specify the library handle.See "Library handle" for details.
Specify the controlled spindle number of reading spindle ID information.
Specify the type of reading data for spindle ID information. The type which can be specified is as follows.
0 | : | Main SP motor specification |
1 | : | Main SP motor serial number |
2 | : | Sub SP motor specification |
3 | : | Sub SP motor serial number |
4 | : | SP specification |
5 | : | SP serial number |
6 | : | PS specification |
7 | : | PS serial number |
8 | : | PS software series edition |
-1 | : | All of the above-mentioned data kind |
Specify the pointer to a variable of ODBCSPID2 structure for setting spindle ID information. The details of members of ODBCSPID2 structure are as follows. "NULL ('\0')" is added to the end of character strings.
typedef struct {
char mt_spc[20] ; /* Main SP motor specification */
char mt_srn[10] ; /* Main SP motor serial number */
char sbmt_spc[20] ; /* Sub SP motor specification */
char sbmt_srn[10] ; /* Sub SP motor serial number */
char spm_spc[22] ; /* SP specification */
char spm_srn[12] ; /* SP serial number */
char psm_spc[22] ; /* PS specification */
char psm_srn[12] ; /* PS serial number */
char pss_see[9] ; /* PS software series edition */
} ODBCSPID2 ;
Return
EW_OK is returned on successful completion, otherwise any value except EW_OK is returned.
As for 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 0i-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 | X |
"O" | : | Both Ethernet and HSSB | |
"E" | : | Ethernet | |
"H" | : | HSSB | |
"X" | : | Cannot be used | |
"-" | : | None |
Note) 0i-C does not support the HSSB function.