Description
The coordinate value must be stored in "data" array of "IODBINT" with signed binary format.
All value can be written at a time by specifying ALL_AXES for "type".
The unit of coordinate value is the same as "Read work zero offset value( cnc_rdzofs )". See the description of cnc_rdzofs function.
Universal Fanuc Driver
Fanuc Focas Library CD
Declaration
Arguments
Specify the library handle. See "Library handle" for details.
Specify the data block length (size of IODBINT structure).
(8+4*(number of coordinate)*(number of data))
T series
IODBINT
1 coordinate | all coordinate |
---|---|
M series
IODBINT
1 coordinate | all coordinate |
---|---|
Pointer to the IODBINT structure for the coordinate value of interference check data. The IODBINT structure is as follows.
typedef struct iodbint {
short datano_s; /* start data number */
short type; /* coordinate type */
short datano_e; /* end data number */
long data[8*K]; /* coordinate value */
} IODBINT ; /* K : number of data to be written */
- datano_s
- Specify the start interference check data number.
The available number of interference check data can be got by cnc_rdintinfo function. - datano_e
- Specify the end interference check data number.
- type
- Specify the type of coordinate.
ALL_AXES : assigns all coordinates(ALL_AXES=-1) 1,..,m : assigns 1 coordinate(TT:m=7, MM:m=5) In case of 1 coordinate, 'type' is as follows.
T series type coordinate 0 X (area 1) 1 Z (area 1) 2 I (area 1) 3 K (area 1) 4 X (area 2) 5 Z (area 2) 6 I (area 2) 7 K (area 2) M series type coordinate 0 X 1 Y 2 Z 3 I 4 J 5 K - data
- Specify the coordinate value of interference check data.
Refer to description of length, type for the storing sequence of data.
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 |
---|---|
(1) |
This function cannot be used without 2 path control function. |
(2) |
Size of IODBINT structure(length) is wrong. |
(3) |
Type of coordinate(type) is wrong. |
(4) |
Type of coordinate(type) is wrong. |
(5) |
Coordinate value of interference check area (data) is out of range. In order to get more information for this err_no return value, execute cnc_getdtailerr function. Data number will be set onto the member of err_no of ODBERR structure and type of coordinate will be set onto the member of err_dtno of ODBERR structure. |
(6) |
The tool post interference check option (T series) or the multi-path interference check option (M series), and the extended driver/library function are 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.
This function also needs the tool post interference check option (T series) or the multi-path interference check option (M series).
And this function is related to the following CNC option.
- Series 15 T series Tool offset extension (16)/32/80 sets(each path)
- Series 16/18, 16i/18i, 0i-F, 30i T series Tool offset extension (16)/32/64 sets(each path)
* () : Basic
For HSSB connection,
For Ethernet connection,
The Ethernet function and the extended driver/library function are necessary. However, in case of Series 16i/18i-B, 0i-F and 30i, 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.
7682,7683
1004#0,#1,#5, 1009#1
8151,8152
8141,..,8149
0000#2, 1004#1
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