Description
Reads the effective setting range of work coordinate shift value
        specified by "axis".
The effective setting range is stored in "data_min", "data_max" of ODBDATRNG with signed binary format.
The places of decimal points can be got by cnc_getfigure function.
The unit of work coordinate shift value is as follows.
- Series 30i
- Series 0i-D/F
| 1013#3 (ISE) | 1013#2 (ISD) | 1013#1 (ISC) | 1013#0 (ISA) | Linear axis mm input [mm] | Linear axis inch input [inch] | |
|---|---|---|---|---|---|---|
| IS-A | 0 | 0 | 0 | 1 | 0.01 | 0.001 | 
| IS-B | 0 | 0 | 0 | 0 | 0.001 | 0.0001 | 
| IS-C | 0 | 0 | 1 | 0 | 0.0001 | 0.00001 | 
| IS-D | 0 | 1 | 0 | 0 | 0.00001 | 0.000001 | 
| IS-E | 1 | 0 | 0 | 0 | 0.000001 | 0.0000001 | 
| 1013#1 (ISC) | 1013#0 (ISA) | Linear axis mm input [mm] | Linear axis inch input [inch] | |
|---|---|---|---|---|
| IS-A | 0 | 1 | 0.01 | 0.001 | 
| IS-B | 0 | 0 | 0.001 | 0.0001 | 
| IS-C | 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 axis number to be read.
| 1,..,m | : | assigns 1 axis(m=current controlled axes) | 
Specify the pointer of the ODBDATRNG structure that stores the upper and lower limit of work coordinate shift 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 | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| (1) | This function cannot be used at M series. | |||||||||
| (4) | Axis number(axis) is wrong. | |||||||||
| (6) | The extended driver/library function is necessary. | |||||||||
| (9) | CNC parameter '1201#6' must be 0. | |||||||||
| (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
 
IS-C, IS-D, IS-E 
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 and Series 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.
                1201#6=0 (must be set)
            
                1201#6=0 (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 | X | 
| "O" | : | Both Ethernet and HSSB | |
| "E" | : | Ethernet | |
| "H" | : | HSSB | |
| "X" | : | Cannot be used | |
| "-" | : | None | 
Note) 0i-C does not support the HSSB function.