Description
Writes setting data for high-speed and high-precision machining.
This function is not supported on Series 15i. The function which
writes CNC parameter ( cnc_wrparam or cnc_wrparas ) can be substituted for this function.
Refer to CNC operator's manual and CNC parameter manual in order to
know CNC parameters which correspond to the data to be written by this
function.
Universal Fanuc Driver
Fanuc Focas Library CD
Declaration
Arguments : HSSB
Specify the library handle. See "Library handle" for details.
Pointer to the IODBHPST structure for the setting data for High-speed and high-precision machining. The IODBHPST structure is as follows.
typedef struct iodbhpst {
short slct; /* flag of valid data */
short hpcc; /* high precision contour control */
short multi; /* multi buffer */
short ovr1; /* override by Z-axis down */
short ign_f; /* ignore feed at program */
short foward; /* feed forward */
long max_f; /* maximum feed of high precision */
/* contour control */
short ovr2; /* override at area 2 */
short ovr3; /* override at area 3 */
short ovr4; /* override at area 4 */
long reserve[7]; /* (not used) */
} IODBHPST ;
- slct
- Flag of valid data selection must be set.
bit 0 : high precision contour control bit 1 : multi buffer bit 2 : override by Z-axis down bit 3 : ignore feed at program bit 4 : feed forward bit 5 : maximum feed of high precision contour control bit 6 : override at area 2 bit 7 : override at area 3 bit 8 : override at area 4 bit 9,..,15 : (not used)
* In order to write the data to CNC, turn on the corresponding bit on this data. - hpcc
- Specify valid/invalid of high precision contour control.
0 : invalid 1 : valid - multi
- Specify valid/invalid of multi buffer.
0 : invalid 1 : valid - ovr1
- Specify valid/invalid of override by Z-axis down.
0 : invalid 1 : valid - ign_f
- Specify valid/invalid of ignore feed at program.
0 : invalid 1 : valid - foward
- Specify valid/invalid of feed forward.
0 : invalid 1 : valid - max_f
- Specify maximum feed of high precision contour control.
- ovr2
- Specify override at area 2.
- ovr3
- Specify override at area 3.
- ovr4
- Specify override at area 4.
- reserve[7]
- (not used)
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 T Series. |
|||||||||||||||||||||||||||
(5) |
Setting data for high-speed and high-precision machining(IODBHPST) is wrong. In order to get more information for this err_no return value, execute cnc_getdtailerr function. The following details status will be set onto the member, err_no of ODBERR structure.
|
|||||||||||||||||||||||||||
(6) |
The extended driver/library function is necessary. |
|||||||||||||||||||||||||||
(7) |
- Protection KEY(DI/KEY2) is off. - CNC parameter is a state of write-protection. |
|||||||||||||||||||||||||||
(12) |
The mode is not in MDI. |
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.
It is influenced by the high precision contour control option and the RISC option.
For HSSB connection,
CNC parameter
This function is not related to CNC parameter.
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_rdhpccset cnc_rdhpcctupr cnc_wrhpcctupr cnc_rdhpcctuac cnc_wrhpcctuac