Description
This function does the calculation for serial spindle by which the gear
ratio was considered against the rotation speed of spindle motor.
And the approximate values of spindle speed(rpm) for numbers of spindle
which was specified by specified spindle or parameter are returned.
But, only the first spindle becomes effective when there is no option
of the multi spindle. In this function, the spindle speed is
calculated by the following calculation expression.
Spindle speed | = |
Real speed(rpm) Maximum speed(rpm) |
* | Maximum speed to gear(rpm) |
* The error might be included because of the approximate value calculation.
To calculate the spindle speed correctly by the above calculation expression, it is necessary to set a correct value in the maximum speed(rpm) of spindle motor and the maximum speed(rpm) to the gear as follows. And the gear number under use must be notified to DI signal correctly.
- When there is no option of the multi spindle
- Maximum speed(rpm) of spindle motor
No spindle switching function, main spindle with spindle switching function | Parameter No.4020(S1) |
Sub spindle with spindle switching function | Parameter No.4196(S1) |
- The using gear number
In case of gear selection mode M type of M system (The spindle is being controlled with CNC.) |
Distinguishes by DO signal F034#2,#1 and #0 which CNC outputs. |
In case of gear selection mode M type of M system (The spindle is being controlled with PMC.) |
Specify by the argument(gear_no) of this function. |
In case of gear selection mode T type of M system and T system |
The gear number is notified by DI signal G028#2 and #1. |
- The maximum speed(rpm) to gear
In case of gear selection mode M type of M system (The spindle is being controlled with CNC.) |
F034#0=1 | Parameter No.3741 |
F034#1=1 | Parameter No.3742 | |
F034#2=1 | Parameter No.3743 | |
In case of gear selection mode M type of M system (The spindle is being controlled with PMC.) |
gera_no=1 | Parameter No.3741 |
gera_no=2 | Parameter No.3742 | |
gera_no=3 | Parameter No.3743 | |
In case of gear selection mode T type of M system and T system | G028#2=0, G028#1=0 | Parameter No.3741 |
G028#2=0, G028#1=1 | Parameter No.3742 | |
G028#2=1, G028#1=0 | Parameter No.3743 | |
G028#2=1, G028#1=1 | Parameter No.3744 |
* The gear selection mode of M system is shown as follows.
M type | without constant surface speed control option and Parameter No.3706#4=0 |
T type | with constant surface speed control option or Parameter No.3706#4=1 |
- When there is an option of the multi spindle
- Maximum speed(rpm) of spindle motor
No spindle switching function, main spindle with spindle switching function | 1st spindle | Parameter No.4020(S1) |
2nd spindle | Parameter No.4020(S2) | |
3rd spindle | Parameter No.4020(S3) | |
4tf spindle | Parameter No.4020(S4) | |
Sub spindle with spindle switching function | 1st spindle | Parameter No.4196(S1) |
2nd spindle | Parameter No.4196(S2) | |
3rd spindle | Parameter No.4196(S3) | |
4th spindle | Parameter No.4196(S4) |
- The using gear number
1st spindle | The gear number is notified by DI signal G028#2 and #1. |
2nd spindle | The gear number is notified by DI signal G029#0. |
3rd spindle | The gear number is notified by DI signal G029#2. |
4th spindle | The gear number is notified by DI signal G031#4. |
- The maximum speed(rpm) to gear
1st spindle | G028#2=0,G028#1=0 | Parameter No.3741 |
G028#2=0,G028#1=1 | Parameter No.3742 | |
G028#2=1,G028#1=0 | Parameter No.3743 | |
G028#2=1,G028#1=1 | Parameter No.3744 | |
2nd spindle | G029#0=0 | Parameter No.3811 |
G029#0=1 | Parameter No.3812 | |
3rd spindle | G029#2=0 | Parameter No.3831 |
G029#2=1 | Parameter No.3832 | |
4th spindle | G031#4=0 | Parameter No.3851 |
G031#4=1 | Parameter No.3852 |
Universal Fanuc Driver
Fanuc Focas Library CD
Declaration
Arguments : HSSB
Specify the library handle. See "Library handle" for details.
Specify the spindle number which wants to be acquired.
Specify -1 or spindle number(1-4).
When -1 is specified, the spindle speed(rpm) from 1st spindle
to the spindle setted by the parameter is acquired.
If the spindle number not set by the parameter is specified,
the return value becomes an error(EW_NUMBER).
Specify the gear number used by PMC spindle output control.
Specify the value of 1-3. If you specifies excepting 1-3, the return value becomes an error(EW_ATTRIB).
Moreover, only when all of undermentioned condition 1)-3) are
satisfied, this argument is used as a gear number.
-
1) No multi spindle option with M system
2) Select the gear selection mode M type
(Without constant surface speed control option, Parameter No.3706#4=0)
3) Signal G033#7 is 1. (The spindle is being controlled with PMC.)
Pointer to variable to store the spindle speed(rpm).
When you specify -1 for spindle number(spdl_no), prepare the
array for amounts of the spindle setted by the parameter, and
specify the top pointer.
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) |
|
(4) |
As for the other return codes or the details, see "Return status of Data window function"
CNC option
For HSSB connection,
CNC parameter
This function is related to the following CNC parameter.
See the manual of CNC parameter for details.
3701#5, #4 (influenced by setting)
3704#1 (influenced by setting)
3706#4 (influenced by setting)
4020 (influenced by setting)
4196 (influenced by setting)
3741 (influenced by setting)
3742 (influenced by setting)
3743 (influenced by setting)
3744 (influenced by setting)
3811 (influenced by setting)
3812 (influenced by setting)
3831 (influenced by setting)
3832 (influenced by setting)
3851 (influenced by setting)
3852 (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 |
"O" | : | Both Ethernet and HSSB | |
"E" | : | Ethernet | |
"H" | : | HSSB | |
"X" | : | Cannot be used | |
"-" | : | None |
Note) 0i-C does not support the HSSB function.