Description
Reads tuning data(acc./dec. input) for high-speed and high-precision machining. The data is stored in each member of "IODBHPAC".
This function is not supported on Series 15i. The function which reads
CNC parameter ( cnc_rdparam or cnc_rdparar ) 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 which are read 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; /* flag of data status */
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 cercle*/
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 is 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)
* When a bit is 0, it means the CNC does not have the related option, then the corresponding data has no meaning. - diff
- Each bit indicates whether the corresponding
data is common for all axes, or not.
bit 0,..,2 : (not used) bit 3 : time constant for after IPL bit 4 : difference of corner feed bit 5 : acceleration for clamp bit 6 : (not used) bit 7 : coefficient of feed forward bit 8,..,15 : (not used)
* When the bit value is 0, it means the corresponding data is applied commonly to all axes. - fine
- Fine level is set.
- acc_lv
- Acceleration/deceleration level is set.
- bipl
- Acceleration for before IPL is set.
- aipl
- Time constant for after IPL is set.
- corner
- Difference of corner feed is set.
- clamp
- Acceleration for clamp is set.
- c_acc
- Acceleration of feed clamp by radius of circle is set.
- foward
- Coefficient of feed forward is set.
- 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. |
(6) |
The extended driver/library function is necessary. |
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
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_rdhpccset cnc_wrhpccset cnc_rdhpcctupr cnc_wrhpcctupr cnc_wrhpcctuac