Description
Reads the effective setting range of tool offset value specified by
"number", "type".
The effective setting range is stored in "data_min", "data_max" of
ODBDATRNG with signed binary format.
The unit of offset value is as follows.
- Series 30i
5042#3 (OFE) |
5042#2 (OFD) |
5042#1 (OFC) |
5042#0 (OFA) |
Linear axis mm input [mm] |
Linear axis inch input [inch] |
---|---|---|---|---|---|
0 | 0 | 0 | 1 | 0.01 | 0.001 |
0 | 0 | 0 | 0 | 0.001 | 0.0001 |
0 | 0 | 1 | 0 | 0.0001 | 0.00001 |
0 | 1 | 0 | 0 | 0.00001 | 0.000001 |
1 | 0 | 0 | 0 | 0.000001 | 0.0000001 |
- Series 0i-D/F
5042#1 (OFC) |
5042#0 (OFA) |
Linear axis mm input [mm] |
Linear axis inch input [inch] |
---|---|---|---|
0 | 1 | 0.01 | 0.001 |
0 | 0 | 0.001 | 0.0001 |
1 | 0 | 0.0001 | 0.00001 |
Universal Fanuc Driver
Fanuc Focas Library CD
Declaration
Arguments
Specify the library handle. See "Library handle" for details.
Specify the tool offset number.
The available number of tool offset can be got by cnc_rdtofsinfo function.
Specify the tool offset type.(see the following table)
- Machining Center Series (M series)
- Lathe Series (T series)
- Lathe Series/2nd geometry compensation
Cutter radius | Tool length | Imaginary tool nose | |
Wear | 0 | 2 | 6 |
Geometry | 1 | 3 | 7 |
X axis | Z axis | Nose R | Imaginary tool nose | Y axis | |
Wear | 0 | 2 | 4 | 6 | 8 |
Geometry | 1 | 3 | 5 | 7 | 9 |
X axis | Z axis | Y axis | |
Wear | 100 | 101 | 102 |
Specify the pointer of the ODBDATRNG structure that stores the upper and lower limit of tool offset value. The ODBDATRNG structure is as follows.
typedef struct odbdatrng {
long data_min ; /* lower limit */
long data_max ; /* upper limit */
long status; /* status of setting value */
} ODBDATRNG ;
- data_min
- lower limit of effective setting range
- data_max
- upper limit of effective setting range
- status
- status of setting value
0 : in-range of effective setting range 1 : out-range of effective setting range
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) |
Offset number(number) is wrong. |
||||||||||||
(4) |
Offset type(type) is wrong. |
||||||||||||
(5) |
In order to get more information for this return value, execute cnc_getdtailerr function. The following detail status will be set onto the member, err_no of ODBERR structure.
|
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.
- Series 30i
- Series 0i-D/F
* () : Basic
M
Tool offset extension
(32)/64/99/200/400/499/999/2000 sets
Tool offset memory
(A)/B/C
Tool radius/Cutter radius compensation
The complex machining tool offset
T
Tool offset extension
(32)/64/99/200/400/499/999/2000 sets
Geometry/wear offset
Tool radius/Cutter radius compensation
Y axis offset
2nd geometry tool offset
4th/5th Axis Offset Function
The changing active offset
The complex machining tool offset
M
Tool offset extension
32/(400) sets
Tool offset memory
A/(C)
T
Tool offset extension
32/(99) sets
Geometry/wear offset
Cutter radius compensation
Y axis offset
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, 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.
5009#5(only M series)
5024
5009#5(only M series)
5024
5009#5(only M series)
5024
8132#1=1 (must be set)
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.