Description
Reads the work coordinate shift measured value specified by "axis". The work coordinate shift measured value are stored in "data" array of "IODBWCSF" with signed binary format.
The value for all axes can be read at a time by specifying ALL_AXES for "axis".
The places of decimal points can be got by cnc_getfigure function.
The unit of work coordinate shift measured value is the same as "Read work coordinate shift value( cnc_rdwkcdshft )". See the description of cnc_rdwkcdshft function.
Universal Fanuc Driver
Fanuc Focas Library CD
Declaration
Arguments
Specify the library handle. See "Library handle" for details.
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 IODBWCSF structure).
IODBWCSF
1 axis | all axes |
---|---|
n = Maximum controlled axes (The data for current controlled axes are valid.) |
- Series 30i, 0i-D/F
- Series 16/18/21, 16i/18i/21i, 0i-A/B/C
n = Maximum controlled axes (The data for current controlled axes are valid.)
n = Current controlled axes
Pointer to the IODBWCSF structure for the work coordinate shift measured value. The IODBWCSF structure is as follows.
typedef struct iodbwcsf {
short dummy; /* (not used) */
short type; /* axis number */
long data[MAX_AXIS];/* work coordinate shift */
/* measured value */
} IODBWCSF ; /* 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 |
---|---|
(1) |
This function cannot be used at M series. |
(2) |
Size of IODBWCSF structure(length) is wrong. |
(4) |
Axis number(axis) is wrong. |
(6) |
The extended driver/library function is necessary. |
(9) |
CNC parameter '1201#6' must be 0. |
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 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.
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.
See Also
cnc_rdwkcdshft cnc_wrwkcdshft cnc_wrwkcdsfms