Description
Reads the load information of the serial spindle. The load information of the serial spindle is stored in "data[0]" of "ODBSPN".
All spindle can be read at a time by specifying ALL_SPINDLES for "sp_no". In that case, an load information of each serial spindle is stored in the data array of ODBSPN.
Universal Fanuc Driver
Fanuc Focas Library CD
Declaration
Arguments
Specify the library handle. See "Library handle" for details.
Specify spindle number to read.
ALL_SPINDLES | : | for all spindles (ALL_SPINDLES: -1) |
1,..,MAX_SPINDLE | : | for each spindle |
- Series 15/15i, 16i/18i/21i, 16i/18i/21i, 0i-A/B/C MAX_SPINDLE : 4
- Series 30i, 0i-D/F MAX_SPINDLE : 8
- Power Mate i-D MAX_SPINDLE : 1
Pointer to the ODBSPN structure including the load information of the serial spindle. The ODBSPN structure is as follows.
typedef struct odbspn {
short datano; /* Spindle number. */
short type; /* Not used. */
short data[MAX_SPINDLE]; /* Spindle data. */
} ODBSPN ; /* MAX_SPINDLE is maximum number of spindle. */
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) |
The specification of spindle number (sp_no) is illegal. |
(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
This function need the following CNC option.
- Series 16/18/21, 16i/18i/21i, 0i, 30i, Power Mate i The serial spindle function
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 | X |
"O" | : | Both Ethernet and HSSB | |
"E" | : | Ethernet | |
"H" | : | HSSB | |
"X" | : | Cannot be used | |
"-" | : | None |
Note) 0i-C does not support the HSSB function.