Description
Reads the actual rotational speed of the spindle connected to CNC.
The actual spindle speed is stored in "data[0]" of "ODBACT2".
All spindle can be read at a time by specifying ALL_SPINDLES for "sp_no". In that case, an actual spindle speed of each serial spindle is stored in the data array of ODBACT2.
cnc_acts can read only the actual spindle speed which is selected by CNC. This function can read all actual spindle speed at a time, or the actual spindle speed specified by "sp_no".
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,..,n | : | for each spindle |
n is MAX_SPINDLES(maximum number of spindle).
- Series 15i, 16i/18i/21i, 0i-A/B/C MAX_SPINDLES : 4
- Series 30i, 0i-D/F MAX_SPINDLES : 8
- Power Mate i-D MAX_SPINDLES : 1
Pointer to the ODBACT2 structure including the actual spindle speed of the serial spindle. The ODBACT2 structure is as follows.
typedef struct odbact2 {
short datano; /* Spindle number. */
short type; /* Not used. */
long data[MAX_SPINDLES]; /* Spindle data. */
} ODBACT2 ; /* MAX_SPINDLES 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. |
As for the other return codes or the details, see "Return status of Data window function"
CNC option
And this function is related to the following CNC option.
- M series of Series 16i/18i/21i, 0i and 30i Thread cutting, synchronous cutting
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.
4001#2 (influenced by setting)
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.
See Also