Description
Reads the work zero offset value specified by "number", "axis".
The offset value is stored in "data[0]" of "IODBZOFS" with signed binary format.
Reads the offset value for all axes once by specifying 'ALL_AXES' in 'axis'. The offset value for each axis is stored in "data" array of "IODBZOFS".
The place of decimal point can be got by cnc_getfigure function.
The unit of offset value is as follows.
- Series 15
1009#1 (ISE) |
1004#5 (ISD) |
1004#1 (ISF) |
1004#0 (ISR) |
Linear axis mm input [mm] |
Linear axis inch input [inch] |
Rotation axis [deg] |
|
---|---|---|---|---|---|---|---|
IS-A | 0 | 0 | 0 | 1 | 0.01 | 0.001 | 0.01 |
IS-B | 0 | 0 | 0 | 0 | 0.001 | 0.0001 | 0.001 |
IS-C | 0 | 0 | 1 | 0 | 0.0001 | 0.00001 | 0.0001 |
IS-D | 0 | 1 | 0 | 0 | 0.00001 | 0.000001 | 0.00001 |
IS-E | 1 | 0 | 0 | 0 | 0.000001 | 0.0000001 | 0.000001 |
- Series 15i
1012#3 (ISE) |
1012#2 (ISD) |
1012#1 (ISC) |
1012#0 (ISA) |
Linear axis mm input [mm] |
Linear axis inch input [inch] |
Rotation axis [deg] |
|
---|---|---|---|---|---|---|---|
IS-A | 0 | 0 | 0 | 1 | 0.01 | 0.001 | 0.01 |
IS-B | 0 | 0 | 0 | 0 | 0.001 | 0.0001 | 0.001 |
IS-C | 0 | 0 | 1 | 0 | 0.0001 | 0.00001 | 0.0001 |
IS-D | 0 | 1 | 0 | 0 | 0.00001 | 0.000001 | 0.00001 |
IS-E | 1 | 0 | 0 | 0 | 0.000001 | 0.0000001 | 0.000001 |
- Series 16/18/21, 16i/18i/21i, 0i-A/B/C
1004#1 (ISC) |
1004#0 (ISA) |
Linear axis mm input [mm] |
Linear axis inch input [inch] |
Rotation axis [deg] |
|
---|---|---|---|---|---|
IS-A | 0 | 1 | 0.01 | 0.001 | 0.01 |
IS-B | 0 | 0 | 0.001 | 0.0001 | 0.001 |
IS-C | 1 | 0 | 0.0001 | 0.00001 | 0.0001 |
- Series 30i
1013#3 (ISE) |
1013#2 (ISD) |
1013#1 (ISC) |
1013#0 (ISA) |
Linear axis mm input [mm] |
Linear axis inch input [inch] |
Rotation axis [deg] |
|
---|---|---|---|---|---|---|---|
IS-A | 0 | 0 | 0 | 1 | 0.01 | 0.001 | 0.01 |
IS-B | 0 | 0 | 0 | 0 | 0.001 | 0.0001 | 0.001 |
IS-C | 0 | 0 | 1 | 0 | 0.0001 | 0.00001 | 0.0001 |
IS-D | 0 | 1 | 0 | 0 | 0.00001 | 0.000001 | 0.00001 |
IS-E | 1 | 0 | 0 | 0 | 0.000001 | 0.0000001 | 0.000001 |
- Series 0i-D/F
1013#1 (ISC) |
1013#0 (ISA) |
Linear axis mm input [mm] |
Linear axis inch input [inch] |
Rotation axis [deg] |
|
---|---|---|---|---|---|
IS-A | 0 | 1 | 0.01 | 0.001 | 0.01 |
IS-B | 0 | 0 | 0.001 | 0.0001 | 0.001 |
IS-C | 1 | 0 | 0.0001 | 0.00001 | 0.0001 |
Universal Fanuc Driver
Fanuc Focas Library CD
Declaration
Arguments
Specify the library handle. See "Library handle" for details.
Specify the work zero offset number.
- Series 15/15i, 0i-D
0 | : | External work zero offset value | |
1,..,6 | : | Work zero offset value of G54 through G59 | |
7,..,54 | : | Work zero offset value of G54.1P1 through G54.1P48 |
- Series 16/18/21, 16i/18i/21i, 0i-A/B/C
M Series | 0 | : | External work zero offset value |
1,..,6 | : | Work zero offset value of G54 through G59 | |
7,..,306 | : | Work zero offset value of G54.1P1 through G54.1P300 | |
T Series | 0 | : | External work zero offset value |
1,..,6 | : | Work zero offset value of G54 through G59 |
- Series 0i-F, 30i
0 | : | External work zero offset value |
1,..,6 | : | Work zero offset value of G54 through G59 |
7,..,306 | : | Work zero offset value of G54.1P1 through G54.1P300 |
Specify the axis number.
ALL_AXES | : | assigns all axes(ALL_AXES=-1) |
1,..,m | : | assigns 1 axis(m=current controlled axes) |
Specify the data block length(size of IODBZOFS structure).
IODBZOFS
1 axis | all axis |
---|---|
- Series 15/15i, 30i, 0i-D/F
n = Maximum controlled axes
* The data for current controlled axes are valid.
- Series 16/18/21, 16i/18i/21i, 0i-A/B/C
n = Current controlled axes
Pointer to the IODBZOFS structure including the work zero offset value. The IODBZOFS structure is as follows.
typedef struct iodbzofs {
short datano; /* offset number */
short type; /* axis number */
long data[MAX_AXIS]; /* offset data value */
} IODBZOFS ; /* MAX_AXIS : max. controlled axes */
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 |
---|---|
(2) |
Size of IODBZOFS structure(length) is wrong. |
(3) |
Offset number(number) is wrong. |
(4) |
Axis number(axis) is wrong. |
(6) |
This function needs the work zero offset option. |
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 15/15i
- Series 16/18/21, 16i/18i/21i, 0i-A/B/C
- Series 0i-F
- Series 30i
Work zero offset 48 sets
M series
Work zero offset
Work zero offset 48 sets
Work zero offset 300 sets
T series
Work zero offset
Work zero offset 300 sets
Work zero offset
Work zero offset 48 sets
Work zero offset 300 sets
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 16i/18i/21i-B, 0i-B/C/D/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.
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
cnc_wrzofs cnc_rdzofsr cnc_wrzofsr cnc_rdzofsinfo
Example(C Language)
The following program displays the work zero offset values of the specified
number for all axes (number of axes = MAX_AXIS).
#include "fwlib32.h"
/* ofs is offset number to be displayed. */
void example( short ofs )
{
IODBZOFS zofs ;
unsigned short idx ;
cnc_rdzofs( h, ofs, -1, 4+4*MAX_AXIS, &zofs ) ;
for ( idx = 0 ; idx < MAX_AXIS ; idx++ )
printf( "%u:%8ld\n", idx, zofs.data[idx] ) ;
}
Example(C#)
The following program displays the work zero offset values of the specified
number for all axes (number of axes = MAX_AXIS).
class example
{
/* ofs is offset number to be displayed. */
public void sample(short ofs)
{
Focas1.IODBZOFS zofs = new Focas1.IODBZOFS();
ushort idx;
Focas1.cnc_rdzofs(h, ofs, -1, 4 + 4 * Focas1.MAX_AXIS, zofs);
for (idx = 0; idx < Focas1.MAX_AXIS; idx++)
{
Console.WriteLine("{0}:{1,8}", idx, zofs.data[idx]);
}
}
}