Description
Writes tuning data(parameter input) 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 IODBHPPR structure for the tuning data(parameterinput) for high-speed and high-precision machining. The IODBHPPR structure is as follows.
typedef struct iodbhppr {
struct {
short slct; /* flag of valid data */
short diff; /* (not used) */
short fine; /* fine level */
short acc_lv; /* acceleration/deceleration level*/
long max_f; /* maximum feed */
short bipl; /* time constant for before IPL */
short aipl; /* time constant for after IPL */
long corner; /* difference of corner feed */
short clamp; /* clamp by acceleration */
long radius; /* radius of feed clamp by radius*/
/* of circle*/
long max_cf; /* maximum feed of feed clamp by */
/* radius of circle*/
long min_cf; /* minimum feed of feed clamp by */
/* radius of circle*/
long foward; /* coefficient of feed forward */
long reserve[5]; /* (not used) */
}tune[3]
} IODBHPPR ;
hppr.tune[0].slct,...,hppr.tune[0].reserve
: tuning data for fine level
hppr.tune[1].slct,...,hppr.tune[1].reserve
: tuning data for medium level
hppr.tune[2].slct,...,hppr.tune[2].reserve
: tuning data for rough level
- slct
- Flag of valid data selection must be set.
bit 0 : fine level bit 1 : acceleration/deceleration level bit 2 : maximum feed bit 3 : time constant for before IPL bit 4 : time constant for after IPL bit 5 : difference of corner feed bit 6 : clamp by acceleration bit 7 : radius of feed clamp by radius of circle bit 8 : maximum feed of feed clamp by radius of circle bit 9 : minimum feed of feed clamp by radius of circle bit10 : coefficient of feed forward bit11,..,15 : (not used)
* In order to write the data to CNC, turn on the corresponding bit on this data. - diff
- (not used)
- fine
- Specify fine level.
- acc_lv
- Specify acceleration/deceleration level.
- max_f
- Specify maximum feed.
- bipl
- Specify time constant for before IPL.
- aipl
- Specify time constant for after IPL.
- corner
- Specify difference of corner feed.
- clamp
- Specify clamp by acceleration.
- radius
- Specify radius of feed clamp by radius of circle.
- max_cf
- Specify maximum feed of feed clamp by radius of circle.
- min_cf
- Specify minimum feed of feed clamp by radius of circle.
- foward
- Specify coefficient of feed forward.
- reserve[5]
- (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) |
Tuning data for high-speed and high-precision machining(IODBHPPR) 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
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_wrhpccset cnc_rdhpcctupr cnc_rdhpcctuac cnc_wrhpcctuac