Description
Reads tuning data(parameter input) for high-speed and high-precision machining. The data is stored in each member of "IODBHPPR".
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 IODBHPPR structure for the tuning data(parameter input) 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; /* flag of data status */
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 is 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)
* 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,..,3 : (not used) bit 4 : time constant for after IPL bit 5 : difference of corner feed bit 6 : clamp by acceleration bit 7,..,9 : (not used) bit10 : coefficient of feed forward bit11,..,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.
- max_f
- Maximum feed is set.
- bipl
- Time constant for before IPL is set.
- aipl
- Time constant for after IPL is set.
- corner
- Difference of corner feed is set.
- clamp
- Clamp by acceleration is set.
- radius
- Radius of feed clamp by radius of circle is set.
- max_cf
- Maximum feed of feed clamp by radius of circle is set.
- min_cf
- Minimum feed of feed clamp by radius of circle is set.
- foward
- Coefficient of feed forward is set.
- 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. |
(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_wrhpcctupr cnc_rdhpcctuac cnc_wrhpcctuac