Description
Writes tuning data(acc./dec. 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 IODBHPAC structure for the tuning data(acc./dec. input) for high-speed and high-precision machining. The IODBHPAC structure is as follows.
typedef struct iodbhpac {
struct {
short slct; /* flag of valid data */
short diff; /* (not used) */
short fine; /* fine level */
short acc_lv; /* acceleration/deceleration level*/
long bipl; /* acceleration for before IPL */
short aipl; /* time constant for after IPL */
long corner; /* difference of corner feed */
long clamp; /* acceleration for clamp */
long c_acc; /* acceleration of feed clamp by */
/* radius of circle*/
long foward; /* coefficient of feed forward */
long reserve[8]; /* (not used) */
}tune[3]
} IODBHPAC ;
hpac.tune[0].slct,...,hpac.tune[0].reserve
: tuning data for fine level
hpac.tune[1].slct,...,hpac.tune[1].reserve
: tuning data for medium level
hpac.tune[2].slct,...,hpac.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 : acceleration for before IPL bit 3 : time constant for after IPL bit 4 : difference of corner feed bit 5 : acceleration for clamp bit 6 : acceleration of feed clamp by radius of circle bit 7 : coefficient of feed forward bit 8,..,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.
- bipl
- Specify acceleration for before IPL.
- aipl
- Specify time constant for after IPL.
- corner
- Specify difference of corner feed.
- clamp
- Specify acceleration for clamp.
- c_acc
- Specify acceleration of feed clamp by radius of circle.
- foward
- Specify coefficient of feed forward.
- reserve[8]
- (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(IODBHPAC) 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_wrhpcctupr cnc_rdhpcctuac